public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113873] New: false warning about #pragma once
@ 2024-02-11  9:45 jadexradex at gmail dot com
  2024-02-11  9:54 ` [Bug c++/113873] " sjames at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jadexradex at gmail dot com @ 2024-02-11  9:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113873
           Summary: false warning about #pragma once
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jadexradex at gmail dot com
  Target Milestone: ---

If you create an empty file with C/C++ extension and write "#pragma once", it
will show warning "#pragma once in main file".

However, this file does not have any code or entry point. So this message may
be misleading.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-11 10:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-11  9:45 [Bug c++/113873] New: false warning about #pragma once jadexradex at gmail dot com
2024-02-11  9:54 ` [Bug c++/113873] " sjames at gcc dot gnu.org
2024-02-11 10:28 ` [Bug preprocessor/113873] " pinskia at gcc dot gnu.org
2024-02-11 10:28 ` pinskia at gcc dot gnu.org
2024-02-11 10:32 ` jadexradex at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).