ref: 179edfda1f77023a6c99c9f32ee541299ab3e0a3
parent: b8b964961812cd3ce1b0fbadfa6580e5418223a8
author: Mans Rullgard <mans@mansr.com>
date: Wed Aug 12 07:16:49 EDT 2020
build: remove unused variable WARN_CFLAGS Nothing is ever assigned to WARN_CFLAGS. Remove all references.
--- a/configure.ac
+++ b/configure.ac
@@ -179,7 +179,6 @@
esac
fi
AC_SUBST(APP_LDFLAGS)
-AC_SUBST(WARN_CFLAGS)
AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=distro], [Provide distribution name]))
if test "x$with_distro" != "x"; then
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,6 @@
RM = rm -f
AM_CPPFLAGS = -DLADSPA_PATH="\"@LADSPA_PATH@\""
-AM_CFLAGS = @WARN_CFLAGS@ #-Werror
if HAVE_LIBLTDL
# This is being used as a short cut to turn off versioning of ALL dynamic
@@ -90,7 +89,7 @@
libsox_la_LIBADD += @MAGIC_LIBS@
endif
-libsox_la_CFLAGS = @WARN_CFLAGS@
+libsox_la_CFLAGS =
libsox_la_LDFLAGS = @APP_LDFLAGS@ -version-info @SHLIB_VERSION@ \
-export-symbols-regex '^(sox_.*|lsx_(([cm]|re)alloc.*|check_read_params|(close|open)_dllibrary|(debug(_more|_most)?|fail|report|warn)_impl|eof|error|fail_errno|filelength|find_(enum_(text|value)|file_extension)|flush|getopt(_init)?|lpc10_(create_(de|en)coder_state|(de|en)code)|raw(read|write)|read(_b_buf|buf|chars)|rewind|seeki|sigfigs3p?|strcasecmp|strdup|tell|unreadb|write(b|_b_buf|buf|s)))$$'
--- a/src/optional-fmts.am
+++ b/src/optional-fmts.am
@@ -270,34 +270,34 @@
endif
else
libsox_fmt_sndfile_la_SOURCES = sndfile.c
-libsox_fmt_sndfile_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_sndfile_la_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_sndfile_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_caf_la_SOURCES = caf.c sndfile.c
-libsox_fmt_caf_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_caf_la_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_caf_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_mat4_la_SOURCES = mat4.c sndfile.c
-libsox_fmt_mat4_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_mat4_la_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_mat4_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_mat5_la_SOURCES = mat5.c sndfile.c
-libsox_fmt_mat5_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_mat5_la_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_mat5_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_paf_la_SOURCES = paf.c sndfile.c
-libsox_fmt_paf_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_paf_la_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_paf_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_fap_la_SOURCES = fap.c sndfile.c
-libsox_fmt_fap_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_fap_la_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_fap_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_w64_la_SOURCES = w64.c sndfile.c
-libsox_fmt_w64_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_w64_la_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_w64_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_xi_la_SOURCES = xi.c sndfile.c
-libsox_fmt_wi_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_wi_la_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_xi_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_pvf_la_SOURCES = pvf.c sndfile.c
-libsox_fmt_pvf_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_pvf_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_pvf_la_LIBADD = libsox.la @SNDFILE_LIBS@
libsox_fmt_sd2_la_SOURCES = sd2.c sndfile.c
-libsox_fmt_sd2_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@
+libsox_fmt_sd2_CFLAGS = @SNDFILE_CFLAGS@
libsox_fmt_sd2_la_LIBADD = libsox.la @SNDFILE_LIBS@
pkglib_LTLIBRARIES += libsox_fmt_sndfile.la libsox_fmt_caf.la libsox_fmt_mat4.la libsox_fmt_mat5.la libsox_fmt_paf.la libsox_fmt_fap.la libsox_fmt_w64.la libsox_fmt_xi.la libsox_fmt_pvf.la libsox_fmt_sd2.la
endif