https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113873
--- Comment #4 from Jadex Radex <jadexradex at gmail dot com> --- (In reply to Sam James from comment #1) > (In reply to Jadex Radex from comment #0) > > If you create an empty file with C/C++ extension and write "#pragma once", > > it will show warning "#pragma once in main file". > > > > What is "it" here? Is it "g++ foo.cxx', or is it 'g++ -c foo.cxx', or > something else? Sorry for my ambiguous explanation. I meant the warning inside a code editor (micro in my case). It doesn't appears at compilation stage.