aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorMatt Austern <austern@apple.com>2003-05-19 19:19:46 +0000
committerMatt Austern <austern@gcc.gnu.org>2003-05-19 19:19:46 +0000
commita01fff59e70fba464453852c561213c3a24fb2c7 (patch)
treedb823fd432e76eee10d350bcaede94deebaa3066 /gcc/c-common.c
parenteab1ff73c813a9eb0f7e6e8c784d8d41b37af687 (diff)
downloadgcc-a01fff59e70fba464453852c561213c3a24fb2c7.zip
gcc-a01fff59e70fba464453852c561213c3a24fb2c7.tar.gz
gcc-a01fff59e70fba464453852c561213c3a24fb2c7.tar.bz2
Add a new flag...
Add a new flag, -W(no-)invalid-offsetof, to control whether or not the compiler warns about incorrect use of the offsetof macro in C++. By default the warning is on. From-SVN: r66972
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 2bef8dc..fe196b1 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -612,6 +612,10 @@ int flag_abi_version = 1;
int warn_abi = 0;
+/* Nonzero means warn about invalid uses of offsetof. */
+
+int warn_invalid_offsetof = 1;
+
/* Nonzero means warn about implicit declarations. */
int warn_implicit = 1;