X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=configure.ac;h=56dce1047496148521bfd29216b880d6562d26b0;hp=a5335a5479be44ec45091a855f7a710b7168a034;hb=c78eeef14ff4c23d021adf7c439ea173a651db7e;hpb=702fa251997d8e6ac4f71837e1e89d3d537df42a diff --git a/configure.ac b/configure.ac index a5335a5..56dce10 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,9 @@ AH_TOP([#ifndef SRD_CONFIG_H #define SRD_CONFIG_H /* To stop multiple inclusions. */]) AH_BOTTOM([#endif /* SRD_CONFIG_H */]) -CFLAGS="-g -Wall -Wextra" +# Enable more compiler warnings via -Wall and -Wextra. Add -fvisibility=hidden +# and enforce use of SRD_API to explicitly mark all public API functions. +CFLAGS="$CFLAGS -Wall -Wextra -fvisibility=hidden" # Checks for programs. AC_PROG_CXX