From 502387df492d0c2b302a892d4cc59e3b246b8490 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 12 Nov 2012 12:09:57 -0500 Subject: [PATCH] compiler-warnings: Drop -Waggregate-return 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/macros2/gnome-compiler-flags.m4 b/macros2/gnome-compiler-flags.m4 index 09c4fc0..992ad5c 100644 --- a/macros2/gnome-compiler-flags.m4 +++ b/macros2/gnome-compiler-flags.m4 @@ -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 \ -- 2.7.4