This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PCH bug] anonymous variadic macros were introduced in C99 warning at pch using


>
> "Vladimir Merzliakov" <wanderer at rsu dot ru> writes:
>
> > simple test.c test.h files compile without using pch
> > and generate strange warning if use test.h.gch
> >
> > All case with options: g++ -ansi -pedantic -Werror -Winvalid-pch
>
> > Warning generated at line in concept_check.h:52 :
> >
> > #define __glibcpp_function_requires(...)
>
> I get:
>
> t.c:1:37: warning: anonymous variadic macros were introduced in C99
>
> which is not exactly clear, but it is true; and I get it whether or
> not I use PCH.
>
Hmm...
script
----8X----------------------------------
#!/bin/sh -
#
rm *.gch
echo !!! Compile without gch
g++ -ansi -Werror -pedantic -Winvalid-pch -o test.o -c test.cc
echo !!! GCH generation
g++ -ansi -Werror -pedantic -Winvalid-pch -o test.h.gch -c test.h
echo !!! Compile with gch
g++ -ansi -Werror -pedantic -Winvalid-pch -o test.o -c test.cc

----X8----------------------------------
generate for me output:

rm: *.gch: No such file or directory
!!! Compile without gch
!!! GCH generation
!!! Compile with gch
test.cc:432:2: anonymous variadic macros were introduced in C99

May be this is platform specific case (FreeBSD 4.7)
I also don't link file position in my case.
I compile many my programs with same options and first recive this warning
only with PCH.

Vladimir



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]