[pcre-dev] [Bug 2519] New: Pedantic GCC compiler warning -W…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2519] New: Pedantic GCC compiler warning -Woverlength-strings in pcre2_error.c
https://bugs.exim.org/show_bug.cgi?id=2519

            Bug ID: 2519
           Summary: Pedantic GCC compiler warning -Woverlength-strings in
                    pcre2_error.c
           Product: PCRE
           Version: 10.34 (PCRE2)
          Hardware: x86
                OS: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: girgias@???
                CC: pcre-dev@???


This was discovered by compiling php-src with the -Wpedantic flag with GCC
7.4.0.

/mnt/c/Dev/php-src/ext/pcre/pcre2lib/pcre2_error.c:189:3: warning: string
length ‘4309’ is greater than the length ‘4095’ ISO C99 compilers are required
to support [-Woverlength-strings]
;
^


I tried to look in the documentation if there were explicit mentions of which C
standard version were supported but couldn't find anything.

This warning also doesn't seem easy to fix as (from my brief glimpse) it would
require rewriting how the error messages are provided.

Moreover, as it is just a pedantic warning closing this ticket as "Won"t fix"
is perfectly reasonable.

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