From 7dc9060383f65d3513d953d7d3d8ae2baad5b24c Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Tue, 7 May 2024 17:10:38 +0200 Subject: [PATCH] Only -Werror in debug mode Ticket: None Changelog: None Signed-off-by: Lars Erik Wik --- configure.ac | 2 +- lib/Makefile.am | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 37889dd5..6133344e 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.63]) -AC_INIT([leech], [0.1.19], [https://github.com/larsewi/leech/issues], [leech], +AC_INIT([leech], [0.1.20], [https://github.com/larsewi/leech/issues], [leech], [https://github.com/larsewi/leech]) AC_CONFIG_SRCDIR([lib/leech.h]) diff --git a/lib/Makefile.am b/lib/Makefile.am index 77487fc4..30f1d6d5 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,4 +1,7 @@ -AM_CFLAGS = -Wall -Wextra -Werror -Wconversion -Wformat +AM_CFLAGS = -Wall -Wextra -Wconversion -Wformat +if !NDEBUG +AM_CFLAGS += -Werror +endif AM_CPPFLAGS = -include config.h include_HEADERS = $(top_builddir)/lib/leech.h