[exim-dev] [Bug 3052] New: Compiler warning: 'extern’ is not…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Exim Bugzilla
Ημερομηνία:  
Προς: exim-dev
Αντικείμενο: [exim-dev] [Bug 3052] New: Compiler warning: 'extern’ is not at beginning of declaration [-Wold-style-declaration]
https://bugs.exim.org/show_bug.cgi?id=3052

            Bug ID: 3052
           Summary: Compiler warning: 'extern’ is not at beginning of
                    declaration [-Wold-style-declaration]
           Product: Exim
           Version: 4.97
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Unfiled
          Assignee: unallocated@???
          Reporter: exim@???
                CC: exim-dev@???

Created attachment 1455
  --> https://bugs.exim.org/attachment.cgi?id=1455&action=edit
extern before const

GCC (at least back to version 7.50) prefers "extern const" to "const extern"

globals.h:324:1: warning: ‘extern’ is not at beginning of declaration
[-Wold-style-declaration]
 const extern pcre2_code *regex_PRDR;         /* For recognizing PRDR settings
*/
 ^~~~~

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