https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808

--- Comment #3 from sduguay <s_gcc_bugzilla at binarez dot com> ---
(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 around this by wrapping the pragma in a preprocessor
> conditional

Hi, thanks for adding a minimal test case. I tried:

#if 1
#pragma once
#endif

but I'm still getting the warning.

Reply via email to