0c23cad Disable -Werror on s390x on Fedora 33 only

Authored and Committed by ngompa 3 years ago
1 file changed. 8 lines added. 0 lines removed.
    Disable -Werror on s390x on Fedora 33 only
    
    There's a puzzling failure that only occurs there:
    
    /bin/sh ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../..    -Wall -Werror -Wextra -Wno-unused-parameter -std=c99 -Wpedantic -I../../../src -I../../.. -DINI_MAX_LINE=1024 -DINI_INITIAL_ALLOC=1024 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o ini.lo ini.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -Wall -Werror -Wextra -Wno-unused-parameter -std=c99 -Wpedantic -I../../../src -I../../.. -DINI_MAX_LINE=1024 -DINI_INITIAL_ALLOC=1024 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c ini.c  -fPIC -DPIC -o .libs/ini.o
    make[4]: Leaving directory '/builddir/build/BUILD/snoopy-2.4.14/lib/inih/src'
    In file included from /usr/include/string.h:519,
                     from ini.c:16:
    In function 'strncpy',
        inlined from 'strncpy0' at ini.c:73:5,
        inlined from 'snoopy_ini_parse_stream' at ini.c:202:17:
    /usr/include/bits/string_fortified.h:91:10: error: 'strncpy' output may be truncated copying 49 bytes from a string of length 1023 [-Werror=stringop-truncation]
       91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    
    It looks like it's something goofy from the standard library, and
    doesn't show up in Fedora 34+, so just ignore it there for now.
    
        
file modified
+8 -0