--- a/dump/main.c +++ b/dump/main.c @@ -498,7 +498,7 @@ main(int argc, char *argv[]) { int i; - char *n; + const char *n; if ((n = strchr(tapeprefix, ':'))) { for (i = 0; i < (n - tapeprefix); i++) { --- a/configure.ac +++ b/configure.ac @@ -40,9 +40,13 @@ AC_SUBST([DATE], ["10 Jun 2026"]) CPPFLAGS="${CPPFLAGS} -D_USE_BSD_SIGNAL "'-D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\"' -CFLAGS="${CFLAGS} -W -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wcast-qual -Wdiscarded-qualifiers -Wwrite-strings" +# az [2026-08-18 Tue 18:32] +# doesn't survive gcc16/glibc2.43 with -Wdiscarded-qualifiers and w/o the +# two -wno-error=format... exceptions +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" CXXFLAGS="${CXXFLAGS} -W -Wall -std=c++20" + dnl dnl Handle --disable-werror dnl --- a/restore/xattr.c +++ b/restore/xattr.c @@ -53,6 +53,10 @@ #include "restore.h" #include "restore_globals.h" +#if BYTE_ORDER == BIG_ENDIAN +#include "tape.h" +#endif + /* * Data structures below taken from the kernel */