From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3CD873857C41; Thu, 24 Aug 2023 06:30:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3CD873857C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692858627; bh=TE9ns57xtPoPT+PP1KrEZqLt9CkumRCrKtatvc391vI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pmP1KyjC8Hamkj5zXyiouinHZxmT1BMpbPKYdETkV/JhBhYtKXknwpgjwpVWwiM+Q 6kGMMX5P8zvfMh1/5hFWHaKkbVwCR2A90bnQN17w53JxQQ6NjumLDHfdUj8gMXJ4SV 5LhxcELoAwLDlxlXj8j1PlxrHaaT3RgtYOyh3ctU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/89808] An option to disable warning "#pragma once in main file" Date: Thu, 24 Aug 2023 06:30:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 8.3.1 X-Bugzilla-Keywords: diagnostic, easyhack X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D89808 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D47857 --- Comment #14 from Andrew Pinski --- (In reply to Diego SC from comment #13) > Another use case. >=20 > We are using precompiled headers in our application, and that includes > headers which have "#pragma once". When generating the precompiled header= we > get this warning: >=20 > warning: #pragma once in main file >=20 > In that context the warning is actually invalid, so it would be really ni= ce > to be able to turn this warning off, without turning off all warnings. That is PR 47857 .=