The -Wimplicit-fallthrough flag can be used to check for implicit fallthroughs, which are a common source of errors.
I've added and used STBI_FALLTHROUGH which maps to __attribute__((fallthrough)), which the compiler uses to determine whether a fallthrough is explicit or not.
The
-Wimplicit-fallthrough
flag can be used to check for implicit fallthroughs, which are a common source of errors.I've added and used
STBI_FALLTHROUGH
which maps to__attribute__((fallthrough))
, which the compiler uses to determine whether a fallthrough is explicit or not.