[gnome-common] compiler-warnings: Drop -Waggregate-return
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-common] compiler-warnings: Drop -Waggregate-return
- Date: Mon, 12 Nov 2012 19:44:12 +0000 (UTC)
commit 502387df492d0c2b302a892d4cc59e3b246b8490
Author: Colin Walters <walters verbum org>
Date: Mon Nov 12 12:09:57 2012 -0500
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 files changed, 0 insertions(+), 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 \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]