bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66343] building with -Wstring-compare triggers severe warnings


From: anonymous
Subject: [bug #66343] building with -Wstring-compare triggers severe warnings
Date: Thu, 17 Oct 2024 07:10:44 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?66343>

                 Summary: building with -Wstring-compare triggers severe
warnings
                   Group: make
               Submitter: None
               Submitted: Thu 17 Oct 2024 11:10:41 AM UTC
                Severity: 3 - Normal
              Item Group: Build/Install
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.4.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 17 Oct 2024 11:10:41 AM UTC By: Anonymous
attempting to build make with clang-17 -Wstring-compare triggers severe
warnings:


 * src/main.c:872:11: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/main.c:874:16: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/main.c:876:16: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/main.c:878:16: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/main.c:1540:13: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/read.c:1902:30: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/read.c:1918:32: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/read.c:1925:25: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/read.c:1992:7: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:411:47: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:1142:33: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:1146:29: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:1153:33: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:1166:37: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:1194:34: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:1251:7: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:1254:12: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/variable.c:1421:21: warning: result of comparison against a string
literal is unspecified (use an explicit string comparison function instead)
[-Wstring-compare]
 * src/posixos.c:876:7: warning: result of comparison against a string literal
is unspecified (use an explicit string comparison function instead)
[-Wstring-compare] 









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66343>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]