public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/99553] New: libgo/misc/cgo/testcarchive/testdata/main_unix.c:39: suspicious compare ?
@ 2021-03-11 15:55 dcb314 at hotmail dot com
  2021-03-11 23:11 ` [Bug go/99553] " ian at airs dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2021-03-11 15:55 UTC (permalink / raw)
  To: gcc-bugs

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

            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 

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") == "" && (osa.sa_flags&SA_ONSTACK) == 0) {

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

end of thread, other threads:[~2021-03-13  4:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 15:55 [Bug go/99553] New: libgo/misc/cgo/testcarchive/testdata/main_unix.c:39: suspicious compare ? dcb314 at hotmail dot com
2021-03-11 23:11 ` [Bug go/99553] " ian at airs dot com
2021-03-13  4:06 ` cvs-commit at gcc dot gnu.org
2021-03-13  4:29 ` ian at airs 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).