From: Uwe Hermann Date: Tue, 8 Jan 2019 21:48:07 +0000 (+0100) Subject: configure.ac: Add -Wformat-security to the default flags. X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=374fd24fe2bf7f20351f65d726b42b77ba43cfeb;hp=45e6e688b16d4653e8b8f2707f1e2c1e041b7261;p=libsigrokflow.git configure.ac: Add -Wformat-security to the default flags. --- diff --git a/configure.ac b/configure.ac index 687e144..e637b68 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,7 @@ SR_ARG_OPT_PKG([libsigrokcxx], [LIBSIGROKCXX], , [libsigrokcxx >= 0.5.1]) SR_ARG_OPT_PKG([libsigrokdecode], [LIBSIGROKDECODE], , [libsigrokdecode >= 0.5.1]) AC_LANG([C++]) -SR_ARG_ENABLE_WARNINGS([SRF_WXXFLAGS], [-Wall], [-Wall -Wextra]) +SR_ARG_ENABLE_WARNINGS([SRF_WXXFLAGS], [-Wall], [-Wall -Wextra -Wformat-security]) # Check if the C++ compiler supports the C++11 standard. AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])