[Bug preprocessor/89808] An option to disable warning "#pragma once in main file"

2019-03-25 Thread s_gcc_bugzilla at binarez dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808 --- Comment #8 from sduguay --- (In reply to Jonathan Wakely from comment #6) > In any case, I agree with confirming this as a bug: all warnings should be > controllable by a -Wxxx option. > > Adding such an option is quite easy, and a good firs

[Bug preprocessor/89808] An option to disable warning "#pragma once in main file"

2019-03-25 Thread s_gcc_bugzilla at binarez dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808 --- Comment #4 from sduguay --- (In reply to Jakub Jelinek from comment #2) > You haven't explained why do you need to use #pragma once in the main cpp > source file, are you sometimes including it as a header and other times > compiling it as th

[Bug preprocessor/89808] An option to disable warning "#pragma once in main file"

2019-03-25 Thread s_gcc_bugzilla at binarez dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808 --- Comment #3 from sduguay --- (In reply to Richard Biener from comment #1) > Testcase: > > #pragma once > int main() {} > > > g++ t.C -S > t.C:1:9: warning: #pragma once in main file > #pragma once > ^~~~ > > > you could work aro

[Bug c++/89808] New: Disable "#pragma once in main file"

2019-03-24 Thread s_gcc_bugzilla at binarez dot com
mponent: c++ Assignee: unassigned at gcc dot gnu.org Reporter: s_gcc_bugzilla at binarez dot com Target Milestone: --- I am building an environnement to execute c++ code and I do need to use #pragma once in my main cpp source code (and all cpp files actually). When I compile, I get th