Skip to content

Commit 9eacab4

Browse files
committed
Don't treat compiler warnings as errors
While compiling on a Raspberry Pi5 with Raspberry Pi OS based on Debian 12, and on ARM, what normally is seen as a compiler warning was there treated as an error. Passing a flag to the compiler to not treat a warning as an error.
1 parent f6f20c6 commit 9eacab4

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,9 @@ generate_LDADD = libbibledit.a
647647
AM_CFLAGS = -g
648648
AM_CFLAGS += $(OPENSSL_CFLAGS)
649649

650-
AM_CXXFLAGS = -fno-var-tracking -g
650+
# Compiling on some systems may treat warnings as errors.
651+
# Pass a flag to the compiler to treat a warning not as an error
652+
AM_CXXFLAGS = -fno-var-tracking -g -Wno-error
651653
if COMPILERWARNINGS
652654
AM_CFLAGS += -Wall -Wno-unknown-pragmas -Wextra -pedantic -Wno-pragmas
653655
AM_CXXFLAGS += -Wall -Wno-unknown-pragmas -Wextra -pedantic -Wshadow -Warray-bounds -Wcast-align -Wcast-qual -Wconversion -Wctor-dtor-privacy -Wdelete-non-virtual-dtor -Weffc++ -Wextra-semi -Wfloat-equal -Wformat=2 -Wmissing-include-dirs -Wmissing-noreturn -Wnull-dereference -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wsign-promo -Wsuggest-override -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused-but-set-parameter -Wunused-macros -Wunused-parameter -Wvla -Wzero-as-null-pointer-constant -Wmismatched-tags

Makefile.in

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,9 +1731,12 @@ generate_SOURCES = \
17311731

17321732
generate_LDADD = libbibledit.a
17331733
AM_CFLAGS = -g $(OPENSSL_CFLAGS) $(am__append_1) $(am__append_5)
1734+
1735+
# Compiling on some systems may treat warnings as errors.
1736+
# Pass a flag to the compiler to treat a warning not as an error
17341737
# AM_CXXFLAGS += $(TIDY_CFLAGS) -I/usr/include/tidy
1735-
AM_CXXFLAGS = -fno-var-tracking -g $(am__append_2) $(am__append_3) \
1736-
$(CURL_CFLAGS) $(OPENSSL_CFLAGS) $(GTK_CFLAGS) \
1738+
AM_CXXFLAGS = -fno-var-tracking -g -Wno-error $(am__append_2) \
1739+
$(am__append_3) $(CURL_CFLAGS) $(OPENSSL_CFLAGS) $(GTK_CFLAGS) \
17371740
$(WEBKIT2GTK_CFLAGS) $(ICU_CFLAGS) $(XML2_CFLAGS) \
17381741
$(UTF8PROC_CFLAGS) $(PUGIXML_CFLAGS) $(GTEST_CFLAGS) \
17391742
$(am__append_4)

config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
#define PACKAGE_PREFIX_DIR "NONE"
9393

9494
/* Define to the full name and version of this package. */
95-
#define PACKAGE_STRING "bibledit 5.1.032"
95+
#define PACKAGE_STRING "bibledit 5.1.033"
9696

9797
/* Define to the one symbol short name of this package. */
9898
#define PACKAGE_TARNAME "bibledit"
@@ -101,15 +101,15 @@
101101
#define PACKAGE_URL ""
102102

103103
/* Define to the version of this package. */
104-
#define PACKAGE_VERSION "5.1.032"
104+
#define PACKAGE_VERSION "5.1.033"
105105

106106
/* Define to 1 if all of the C89 standard headers exist (not just the ones
107107
required in a freestanding environment). This macro is provided for
108108
backward compatibility; new code need not use it. */
109109
#define STDC_HEADERS 1
110110

111111
/* Version number of package */
112-
#define VERSION "5.1.032"
112+
#define VERSION "5.1.033"
113113

114114
/* Define whether to compile on Windows */
115115
/* #undef WIN32 */

configure

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.72 for bibledit 5.1.032.
3+
# Generated by GNU Autoconf 2.72 for bibledit 5.1.033.
44
#
55
# Report bugs to <https://bibledit.org>.
66
#
@@ -603,8 +603,8 @@ MAKEFLAGS=
603603
# Identity of this package.
604604
PACKAGE_NAME='bibledit'
605605
PACKAGE_TARNAME='bibledit'
606-
PACKAGE_VERSION='5.1.032'
607-
PACKAGE_STRING='bibledit 5.1.032'
606+
PACKAGE_VERSION='5.1.033'
607+
PACKAGE_STRING='bibledit 5.1.033'
608608
PACKAGE_BUGREPORT='https://bibledit.org'
609609
PACKAGE_URL=''
610610

@@ -1366,7 +1366,7 @@ if test "$ac_init_help" = "long"; then
13661366
# Omit some internal or obsolete options to make the list less imposing.
13671367
# This message is too long to be a string in the A/UX 3.1 sh.
13681368
cat <<_ACEOF
1369-
'configure' configures bibledit 5.1.032 to adapt to many kinds of systems.
1369+
'configure' configures bibledit 5.1.033 to adapt to many kinds of systems.
13701370
13711371
Usage: $0 [OPTION]... [VAR=VALUE]...
13721372
@@ -1436,7 +1436,7 @@ fi
14361436

14371437
if test -n "$ac_init_help"; then
14381438
case $ac_init_help in
1439-
short | recursive ) echo "Configuration of bibledit 5.1.032:";;
1439+
short | recursive ) echo "Configuration of bibledit 5.1.033:";;
14401440
esac
14411441
cat <<\_ACEOF
14421442
@@ -1561,7 +1561,7 @@ fi
15611561
test -n "$ac_init_help" && exit $ac_status
15621562
if $ac_init_version; then
15631563
cat <<\_ACEOF
1564-
bibledit configure 5.1.032
1564+
bibledit configure 5.1.033
15651565
generated by GNU Autoconf 2.72
15661566
15671567
Copyright (C) 2023 Free Software Foundation, Inc.
@@ -1761,7 +1761,7 @@ cat >config.log <<_ACEOF
17611761
This file contains any messages produced by compilers while
17621762
running configure, to aid debugging if configure makes a mistake.
17631763
1764-
It was created by bibledit $as_me 5.1.032, which was
1764+
It was created by bibledit $as_me 5.1.033, which was
17651765
generated by GNU Autoconf 2.72. Invocation command line was
17661766
17671767
$ $0$ac_configure_args_raw
@@ -3454,7 +3454,7 @@ fi
34543454

34553455
# Define the identity of the package.
34563456
PACKAGE='bibledit'
3457-
VERSION='5.1.032'
3457+
VERSION='5.1.033'
34583458

34593459

34603460
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -8389,7 +8389,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
83898389
# report actual input values of CONFIG_FILES etc. instead of their
83908390
# values after options handling.
83918391
ac_log="
8392-
This file was extended by bibledit $as_me 5.1.032, which was
8392+
This file was extended by bibledit $as_me 5.1.033, which was
83938393
generated by GNU Autoconf 2.72. Invocation command line was
83948394
83958395
CONFIG_FILES = $CONFIG_FILES
@@ -8457,7 +8457,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
84578457
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
84588458
ac_cs_config='$ac_cs_config_escaped'
84598459
ac_cs_version="\\
8460-
bibledit config.status 5.1.032
8460+
bibledit config.status 5.1.033
84618461
configured by $0, generated by GNU Autoconf 2.72,
84628462
with options \\"\$ac_cs_config\\"
84638463

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([bibledit],[5.1.032],[https://bibledit.org])
1+
AC_INIT([bibledit],[5.1.033],[https://bibledit.org])
22
AM_INIT_AUTOMAKE([tar-ustar subdir-objects])
33
AC_CANONICAL_BUILD
44
ac_default_prefix=/usr

0 commit comments

Comments
 (0)