msys2-runtime-3.3: add -Wno-error for additional warning on i686 build

/t/r/msys2-runtime-3.3/src/msys2-runtime/winsup/cygwin/fhandler_proc.cc: In function 'off_t format_proc_swaps(void*, char*&)':
/t/r/msys2-runtime-3.3/src/msys2-runtime/winsup/cygwin/fhandler_proc.cc:1964:43: error: '%s' directive writing 4 bytes into a region of size between 1 and 2147483606 [-Werror=format-overflow=]
 1964 |           bufptr += sprintf (bufptr, "%s%s%s\t\t%llu%s\t%llu%s\t%d\n",
      |                                           ^~
......
 1967 |                                         "file",
      |                                         ~~~~~~
/t/r/msys2-runtime-3.3/src/msys2-runtime/winsup/cygwin/fhandler_proc.cc:1964:38: note: directive argument in the range [0, 18014398501093376]
 1964 |           bufptr += sprintf (bufptr, "%s%s%s\t\t%llu%s\t%llu%s\t%d\n",
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/t/r/msys2-runtime-3.3/src/msys2-runtime/winsup/cygwin/fhandler_proc.cc:1964:38: note: directive argument in the range [0, 18014398501093376]
/t/r/msys2-runtime-3.3/src/msys2-runtime/winsup/cygwin/fhandler_proc.cc:1964:29: note: 'sprintf' output between 54 and 2147483693 bytes into a destination of size 2147483647
 1964 |           bufptr += sprintf (bufptr, "%s%s%s\t\t%llu%s\t%llu%s\t%d\n",
      |                     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1965 |                                     filename,
      |                                     ~~~~~~~~~
 1966 |                                     tabo < 5 ? "\t\t\t\t\t" + tabo : " ",
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1967 |                                         "file",
      |                                         ~~~~~~~
 1968 |                                             total >> 10,
      |                                             ~~~~~~~~~~~~
 1969 |                                             total < 10000000000 ? "\t" : "",
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1970 |                                                 used  >> 10,
      |                                                 ~~~~~~~~~~~~
 1971 |                                                 used  < 10000000000 ? "\t" : "",
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1972 |                                                                 0);
      |                                                                 ~~
This commit is contained in:
Jeremy Drake 2024-02-15 12:43:24 -08:00
parent 2a9d91b312
commit f4cd0f0e7f

View File

@ -4,7 +4,7 @@
pkgbase=msys2-runtime-3.3
pkgname=('msys2-runtime-3.3' 'msys2-runtime-3.3-devel')
pkgver=3.3.6
pkgrel=6
pkgrel=8
pkgdesc="Cygwin POSIX emulation engine"
arch=('i686' 'x86_64')
url="https://www.cygwin.com/"
@ -247,8 +247,8 @@ build() {
OPTIM="-O2"
fi
CFLAGS="$OPTIM -pipe -ggdb -Wno-error=deprecated -Wno-error=stringop-truncation -Wno-error=missing-attributes -Wno-error=maybe-uninitialized" #-Wno-error=class-memaccess
CXXFLAGS="$OPTIM -pipe -ggdb -Wno-error=deprecated -Wno-error=stringop-truncation -Wno-error=missing-attributes -Wno-error=maybe-uninitialized -Wno-error=overloaded-virtual -Wno-narrowing" #-Wno-error=class-memaccess
CFLAGS="$OPTIM -pipe -ggdb -Wno-error=deprecated -Wno-error=stringop-truncation -Wno-error=missing-attributes -Wno-error=maybe-uninitialized -Wno-error=format-overflow" #-Wno-error=class-memaccess
CXXFLAGS="$OPTIM -pipe -ggdb -Wno-error=deprecated -Wno-error=stringop-truncation -Wno-error=missing-attributes -Wno-error=maybe-uninitialized -Wno-error=format-overflow -Wno-error=overloaded-virtual -Wno-narrowing" #-Wno-error=class-memaccess
(cd "${srcdir}/msys2-runtime/winsup" && ./autogen.sh)