shithub: sox

Download patch

ref: ad5ad532f9d5f8e0374109f56de2501069a9b601
parent: c24cef3604881210fd050dcd54b2745e0f233555
author: Mans Rullgard <mans@mansr.com>
date: Sat Aug 15 19:01:54 EDT 2020

build: add warning options whenever supported

Other compilers support gcc-style warning options.  Use them whenever
possible.

--- a/configure.ac
+++ b/configure.ac
@@ -81,11 +81,7 @@
 fi
 
 AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong])
-
-dnl Extra CFLAGS if we have gcc
-if test "$GCC" = "yes"; then
-    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
-fi
+AX_APPEND_COMPILE_FLAGS([-Wall -Wmissing-prototypes -Wstrict-prototypes])
 
 AC_ARG_WITH(distro,
     AS_HELP_STRING([--with-distro=name], [Provide distribution name]),