From 355507e7ad13e1b7e4b345f93eab32e9015b0338 Mon Sep 17 00:00:00 2001 From: Konstantin Kushnir Date: Thu, 30 May 2024 20:35:37 +0000 Subject: [PATCH] Treat compiler warnings as errors --- ChangeLog | 1 + configure | 2 +- configure.in | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 77b67e7..c475250 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * Fix multiple memory leaks * Add feature to build without Tcl commands * Add support for Tcl 9.0 + * Treat compiler warnings as errors 2024-05-29 Konstantin Kushnir * Fix a regression when register volume and unregister with vfs::unmount diff --git a/configure b/configure index 5967539..8c79d1b 100755 --- a/configure +++ b/configure @@ -5431,7 +5431,7 @@ printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - PKG_CFLAGS="$PKG_CFLAGS -Wall -Wextra -pedantic -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -fvisibility=hidden" + PKG_CFLAGS="$PKG_CFLAGS -Wall -Wextra -pedantic -Werror -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -fvisibility=hidden" diff --git a/configure.in b/configure.in index a6f0b20..a714296 100644 --- a/configure.in +++ b/configure.in @@ -56,7 +56,7 @@ TEA_ADD_SOURCES([cookfs.c common.c md5.h bindata.c hashes.c]) TEA_ADD_HEADERS([]) TEA_ADD_INCLUDES([-I\"`${CYGPATH} ${srcdir}/generic`\"]) TEA_ADD_LIBS([]) -TEA_ADD_CFLAGS([-Wall -Wextra -pedantic -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -fvisibility=hidden]) +TEA_ADD_CFLAGS([-Wall -Wextra -pedantic -Werror -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -fvisibility=hidden]) TEA_ADD_STUB_SOURCES([]) TEA_ADD_TCL_SOURCES([ scripts/writerchannel.tcl