From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D865A388E813; Thu, 11 Mar 2021 15:55:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D865A388E813 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/99553] New: libgo/misc/cgo/testcarchive/testdata/main_unix.c:39: suspicious compare ? Date: Thu, 11 Mar 2021 15:55:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 15:55:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99553 Bug ID: 99553 Summary: libgo/misc/cgo/testcarchive/testdata/main_unix.c:39: suspicious compare ? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: dcb314 at hotmail dot com CC: cmang at google dot com Target Milestone: --- Static analyzer cppcheck says=20 trunk.git/libgo/misc/cgo/testcarchive/testdata/main_unix.c:39:22: warning: String literal compared with variable 'getenv("GCCGO")'. Did you intend to = use strcmp() instead? [literalWithCharPtrCompare] Source code is if (getenv("GCCGO") =3D=3D "" && (osa.sa_flags&SA_ONSTACK) =3D=3D 0= ) {=