compiler-warnings: Drop -Waggregate-return
authorColin Walters <walters@verbum.org>
Mon, 12 Nov 2012 17:09:57 +0000 (12:09 -0500)
committerColin Walters <walters@verbum.org>
Mon, 12 Nov 2012 19:43:22 +0000 (14:43 -0500)
This trips up gnome-desktop using things like XSyncValue, and while
it's possible to avoid, we shouldn't punish people who are pushed to
use structures as return values by external APIs.

Returning a two-element structure is not a big deal.

macros2/gnome-compiler-flags.m4

index 09c4fc0..992ad5c 100644 (file)
@@ -30,7 +30,6 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
        warning_flags="\
        -Wall \
        -Wstrict-prototypes \
-       -Waggregate-return \
        -Werror=missing-prototypes \
        -Werror=implicit-function-declaration \
        -Werror=pointer-arith \
@@ -43,7 +42,6 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
        warning_flags="\
        -Wall \
        -Wstrict-prototypes \
-       -Waggregate-return \
        -Wdeclaration-after-statement \
        -Werror=missing-prototypes \
        -Werror=implicit-function-declaration \