The remaining gotos mostly follow standard patterns, like breaking out of nested loops/switches, or cleaning up allocated resources before returning.
With -Wall -Wextra -pedantic -Wno-parentheses -Wno-implicit-fallthrough -Wno-dangling-else -Wno-sign-compare -Wno-pointer-sign -Wno-unused-parameter, the only warnings that occur are:
-Wmaybe-uninitialized complains about found in find_PNG_reference, and about red, green, blue, alpha, gray in plum_load_image
-Wclobbered complains about out and buffer in plum_store_image
The remaining
goto
s mostly follow standard patterns, like breaking out of nested loops/switches, or cleaning up allocated resources before returning.With
-Wall -Wextra -pedantic -Wno-parentheses -Wno-implicit-fallthrough -Wno-dangling-else -Wno-sign-compare -Wno-pointer-sign -Wno-unused-parameter
, the only warnings that occur are:-Wmaybe-uninitialized
complains aboutfound
infind_PNG_reference
, and aboutred, green, blue, alpha, gray
inplum_load_image
-Wclobbered
complains aboutout
andbuffer
inplum_store_image
Diff: https://github.com/aaaaaa123456789/libplum/pull/1/files?w=1