Debian Codegraph @

debian/patches/c23mess

raw
1 --- a/dump/main.c
2 +++ b/dump/main.c
3 @@ -498,7 +498,7 @@ main(int argc, char *argv[])
4
5 {
6 int i;
7 - char *n;
8 + const char *n;
9
10 if ((n = strchr(tapeprefix, ':'))) {
11 for (i = 0; i < (n - tapeprefix); i++) {
12 --- a/configure.ac
13 +++ b/configure.ac
14 @@ -40,9 +40,13 @@ AC_SUBST([DATE], ["10 Jun 2026"])
15
16 CPPFLAGS="${CPPFLAGS} -D_USE_BSD_SIGNAL "'-D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\"'
17
18 -CFLAGS="${CFLAGS} -W -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wcast-qual -Wdiscarded-qualifiers -Wwrite-strings"
19 +# az [2026-08-18 Tue 18:32]
20 +# doesn't survive gcc16/glibc2.43 with -Wdiscarded-qualifiers and w/o the
21 +# two -wno-error=format... exceptions
22 +CFLAGS="${CFLAGS} -W -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wcast-qual -Wno-error=discarded-qualifiers -Wwrite-strings -Wno-error=format= -Wno-error=format-security"
23 CXXFLAGS="${CXXFLAGS} -W -Wall -std=c++20"
24
25 +
26 dnl
27 dnl Handle --disable-werror
28 dnl
29 --- a/restore/xattr.c
30 +++ b/restore/xattr.c
31 @@ -53,6 +53,10 @@
32 #include "restore.h"
33 #include "restore_globals.h"
34
35 +#if BYTE_ORDER == BIG_ENDIAN
36 +#include "tape.h"
37 +#endif
38 +
39 /*
40 * Data structures below taken from the kernel
41 */