Skip to content

Commit 4e82005

Browse files
authored
Enable deprecation warnings (#2036)
1 parent 704337b commit 4e82005

File tree

5 files changed

+3
-18
lines changed

5 files changed

+3
-18
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ jobs:
9999
# Env var name DISTCHECK_CONFIGURE_FLAGS must be used, see #1881 and #1883
100100
run: |
101101
echo "DISTCHECK_CONFIGURE_FLAGS=${{ matrix.configure-args }}" >> $GITHUB_ENV
102-
- name: Set additional Linux configure arguments
103-
if: runner.os == 'Linux'
104-
# Silence all deprecated declarations on Linux due to auto_ptr making the build log too long
105-
run: |
106-
echo "DISTCHECK_CONFIGURE_FLAGS=$DISTCHECK_CONFIGURE_FLAGS CPPFLAGS=-Wno-deprecated-declarations" >> $GITHUB_ENV
107102
- name: Print configure command
108103
run: echo "./configure $DISTCHECK_CONFIGURE_FLAGS"
109104
- name: Configure

.travis-ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ else
294294
# Env var name DISTCHECK_CONFIGURE_FLAGS must be used, see #1881 and #1883
295295
if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
296296
# Silence all deprecated declarations on Linux due to auto_ptr making the build log too long
297-
export DISTCHECK_CONFIGURE_FLAGS='--enable-rdm-tests --enable-java-libs --enable-ja-rule --enable-e133 CPPFLAGS=-Wno-deprecated-declarations'
297+
export DISTCHECK_CONFIGURE_FLAGS='--enable-rdm-tests --enable-java-libs --enable-ja-rule --enable-e133'
298298
else
299299
export DISTCHECK_CONFIGURE_FLAGS='--enable-rdm-tests --enable-java-libs --enable-ja-rule --enable-e133'
300300
fi

Makefile.am

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,10 @@ if ! USING_WIN32
6565
if FATAL_WARNINGS
6666
COMMON_CXXFLAGS += -Werror
6767
COMMON_PROTOBUF_CXXFLAGS += -Werror -Wno-error=unused-parameter \
68-
-Wno-error=deprecated-declarations \
6968
-Wno-error=sign-compare \
7069
-Wno-error=ignored-qualifiers
7170
COMMON_TESTING_FLAGS += -Werror
72-
COMMON_TESTING_PROTOBUF_FLAGS += -Werror -Wno-error=unused-parameter \
73-
-Wno-error=deprecated-declarations
74-
75-
if GNU_PLUS_PLUS_11_DEPRECATIONS
76-
# We have to use gnu++11 for some reason, so stop it complaining about
77-
# auto_ptr
78-
COMMON_CXXFLAGS += -Wno-error=deprecated-declarations
79-
COMMON_TESTING_FLAGS += -Wno-error=deprecated-declarations
80-
endif
71+
COMMON_TESTING_PROTOBUF_FLAGS += -Werror -Wno-error=unused-parameter
8172
endif
8273
endif
8374

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ AS_IF([test "x$ac_cv_gnu_plus_plus_11" = xyes],
132132
])
133133
AS_IF([test "x$require_gnu_plus_plus_11" = xyes],
134134
[CXXFLAGS="$CXXFLAGS -std=gnu++11"])
135-
AM_CONDITIONAL([GNU_PLUS_PLUS_11_DEPRECATIONS], [test "x$require_gnu_plus_plus_11" = xyes])
136135

137136
# Checks for header files.
138137
AC_HEADER_DIRENT

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export VERBOSE=1
1414
dh $@ --parallel --with autotools_dev,autoreconf,bash_completion,python3
1515

1616
override_dh_auto_configure:
17-
dh_auto_configure -- --enable-python-libs --enable-rdm-tests CXXFLAGS='-Wno-error=deprecated-declarations -Wno-error=unused-parameter' pythondir='/usr/lib/python3/dist-packages'
17+
dh_auto_configure -- --enable-python-libs --enable-rdm-tests CXXFLAGS='-Wno-error=unused-parameter' pythondir='/usr/lib/python3/dist-packages'
1818

1919
override_dh_installinit:
2020
dh_installinit -p ola --name=olad

0 commit comments

Comments
 (0)