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) {

Reply via email to