diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2000-03-15 18:46:09 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-03-15 18:46:09 +0000 |
commit | 1690826f332db8489e14f8c95bf0aef4e09acef8 (patch) | |
tree | b373d3996e1502203a16ca74cd83e30588fc6e8d /gcc/cpphash.c | |
parent | f03eebe32515fc0a60deb6e42602300f737a98a8 (diff) | |
download | gcc-1690826f332db8489e14f8c95bf0aef4e09acef8.zip gcc-1690826f332db8489e14f8c95bf0aef4e09acef8.tar.gz gcc-1690826f332db8489e14f8c95bf0aef4e09acef8.tar.bz2 |
cpphash.c (collect_formal_parameters): Do not complain about parameter names that just start with `__VA_ARGS__'.
* cpphash.c (collect_formal_parameters): Do not complain about
parameter names that just start with `__VA_ARGS__'.
From-SVN: r32563
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r-- | gcc/cpphash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 8d0b570..7fe58d9 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -599,7 +599,8 @@ collect_formal_parameters (pfile) continue; } if (CPP_PEDANTIC (pfile) && CPP_OPTIONS (pfile)->c99 - && !strncmp (tok, "__VA_ARGS__", sizeof "__VA_ARGS__" - 1)) + && len == sizeof "__VA_ARGS__" - 1 + && !strncmp (tok, "__VA_ARGS__", len)) cpp_pedwarn (pfile, "C99 does not permit use of `__VA_ARGS__' as a macro argument name"); namebuf = (U_CHAR *) xrealloc (namebuf, argslen + len + 1); |