mirror of https://github.com/GNOME/gimp.git
build: Add -Werror=missing-prototypes to CFLAGS where possible
This commit is contained in:
parent
7aa91bdae3
commit
1b5a0f9d9d
|
@ -330,6 +330,12 @@ CFLAGS="$CFLAGS $extra_warnings"
|
|||
GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-prototypes')
|
||||
CFLAGS="$CFLAGS $extra_warnings"
|
||||
|
||||
# We really don't want anyone using code with missing prototypes, which
|
||||
# can cause random behavior. If compile breaks due to the following,
|
||||
# come to us and we will point you to a newer version which works.
|
||||
GIMP_DETECT_CFLAGS(extra_warnings, '-Werror=missing-prototypes')
|
||||
CFLAGS="$CFLAGS $extra_warnings"
|
||||
|
||||
GIMP_DETECT_CFLAGS(extra_warnings, '-Wstrict-prototypes')
|
||||
CFLAGS="$CFLAGS $extra_warnings"
|
||||
|
||||
|
|
Loading…
Reference in New Issue