diff options
author | Matt Austern <austern@apple.com> | 2003-05-19 19:19:46 +0000 |
---|---|---|
committer | Matt Austern <austern@gcc.gnu.org> | 2003-05-19 19:19:46 +0000 |
commit | a01fff59e70fba464453852c561213c3a24fb2c7 (patch) | |
tree | db823fd432e76eee10d350bcaede94deebaa3066 /gcc/c-common.h | |
parent | eab1ff73c813a9eb0f7e6e8c784d8d41b37af687 (diff) | |
download | gcc-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.h')
-rw-r--r-- | gcc/c-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index f43f6d6..425a9ea 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -777,6 +777,10 @@ extern int flag_abi_version; extern int warn_abi; +/* Nonzero means warn about invalid uses of offsetof. */ + +extern int warn_invalid_offsetof; + /* Nonzero means warn about implicit declarations. */ extern int warn_implicit; |