[exim-dev] [Bug 3076] New: Patch three clang warnings

Top Pagina
Delete this message
Reply to this message
Auteur: Exim Bugzilla
Datum:  
Aan: exim-dev
Onderwerp: [exim-dev] [Bug 3076] New: Patch three clang warnings
https://bugs.exim.org/show_bug.cgi?id=3076

            Bug ID: 3076
           Summary: Patch three clang warnings
           Product: Exim
           Version: N/A
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Unfiled
          Assignee: unallocated@???
          Reporter: exim@???
                CC: exim-dev@???


Created attachment 1469
--> https://bugs.exim.org/attachment.cgi?id=1469&action=edit
Fix three clang warnings

Patch to silence three clang warnings:

dnslookup.c:476:1: warning: '/*' within block comment [-Wcomment]
  476 | /* End of routers/dnslookup.c */
      | ^
1 warning generated.


search.c:685:1: warning: unused label 'out' [-Wunused-label]
  685 | out:
      | ^~~~
1 warning generated.


In file included from tls.c:466:
./tls-gnu.c:1189:1: warning: non-void function does not return a value
[-Wreturn
-type]
 1189 | }
      | ^
1 warning generated.


The first is straightforward.
The second is not beautiful.
The last requires gnutls and I made an executive decision about the return
value.

I use
CC=/usr/bin/clang-19 -Wall -Wextra -Wno-constant-logical-operand
-Wno-dangling-else -Wno-format -Wno-format-extra-args
-Wno-format-insufficient-args -Wno-format-invalid-specifier
-Wno-misleading-indentation -Wno-missing-field-initializers -Wno-parentheses
-Wno-self-assign -Wno-sign-compare -Wno-unused-but-set-variable
-Wno-unused-function -Wno-unused-parameter -Wno-unused-variable

--
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/