[exim-dev] [Bug 3107] New: Patch to remove unused-value warn…

Página Inicial
Delete this message
Reply to this message
Autor: Exim Bugzilla
Data:  
Para: exim-dev
Assunto: [exim-dev] [Bug 3107] New: Patch to remove unused-value warning from tls-gnu.c
https://bugs.exim.org/show_bug.cgi?id=3107

            Bug ID: 3107
           Summary: Patch to remove unused-value warning from tls-gnu.c
           Product: Exim
           Version: 4.97
          Hardware: All
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: TLS
          Assignee: jgh146exb@???
          Reporter: exim@???
                CC: exim-dev@???

Created attachment 1486
  --> https://bugs.exim.org/attachment.cgi?id=1486&action=edit
Patch to remove unused-value warning from tls-gnu.c

Patch to remove unused-value warning from tls-gnu.c

# gcc -Wall -Wno-parentheses -Wno-dangling-else -Wno-unused-function
-Wno-unused-result -Wno-address -Wno-format -Wno-format-truncation
-Wno-format-extra-args -Wno-unused-but-set-variable -Wno-unused-variable
-Wno-maybe-uninitialized -Wno-misleading-indentation -Wno-sign-compare
-Wno-old-style-declaration -Wno-unused-parameter -Wno-empty-body
-Wno-missing-field-initializers -Wno-implicit-fallthrough tls.c -c
In file included from tls.c:473:
tls-gnu.c: In function ‘peer_status’:
tls-gnu.c:2317:17: warning: value computed is not used [-Wunused-value]
 2317 |       for (*++s && ++s; (c = *s) && c != ')'; s++)
      |                 ^~

a simple patch; I think this is the first time I've come across a for-loop
initial block that calculated something but didn't but save the result.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/