diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-02-16 14:42:43 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-02-16 14:42:43 +0000 |
commit | 974ab3dd887985e3aa347f3c6521f819296396a0 (patch) | |
tree | 802fb82c9f8ec8acd7a60fba7824c2df6f0073ad /lib/verify.h | |
parent | 8e7ba70eba02f88d4f3ba12e07ab9c7bdf32240a (diff) | |
download | coreutils-974ab3dd887985e3aa347f3c6521f819296396a0.tar.gz |
Imported Upstream version 8.21upstream/8.21
Diffstat (limited to 'lib/verify.h')
-rw-r--r-- | lib/verify.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/verify.h b/lib/verify.h index cef14ad1..cb8e90b5 100644 --- a/lib/verify.h +++ b/lib/verify.h @@ -1,6 +1,6 @@ /* Compile-time assert-like macros. - Copyright (C) 2005-2006, 2009-2012 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -125,7 +125,7 @@ extern int (*dummy (void)) [sizeof (struct {...})]; * GCC warns about duplicate declarations of the dummy function if - -Wredundant_decls is used. GCC 4.3 and later have a builtin + -Wredundant-decls is used. GCC 4.3 and later have a builtin __COUNTER__ macro that can let us generate unique identifiers for each dummy function, to suppress this warning. @@ -133,6 +133,10 @@ which do not support _Static_assert, also do not warn about the last declaration mentioned above. + * GCC warns if -Wnested-externs is enabled and verify() is used + within a function body; but inside a function, you can always + arrange to use verify_expr() instead. + * In C++, any struct definition inside sizeof is invalid. Use a template type to work around the problem. */ |