From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F1013858D20; Sun, 11 Feb 2024 10:32:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F1013858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707647571; bh=cU7mqO9xcoHfsoVB2zhzicQexzfuMNR8ArL7VTRS2jE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b39N8Y144n0oiI4ArDenap+vIFp00kHCdVEe9F2fw98WZjvX0p5VxsA5h4u+XyLPK Ru8EtjVO22sQFBi2+KTVPLUOX/w0/Z5DGdXwOzesqZANjXT9IrhRohxh226XLwQHLP o/qM5MhgcMBtgxJlFOEGjwwn+veQqyMDQOGBqq/E= From: "jadexradex at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/113873] false warning about #pragma once Date: Sun, 11 Feb 2024 10:32:51 +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: 12.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: jadexradex at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: 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=3D113873 --- Comment #4 from Jadex Radex --- (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 onc= e", > > it will show warning "#pragma once in main file". > >=20 >=20 > 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.=