X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=afa88f60d26f01f254476454fe62ad6d47103730;hb=1a081ca67d63a0bd933a3d715792d85afd437296;hp=be5137b54d77e9addb8cab97b77615a984b3c8cb;hpb=0146970797e809555b2feea9fdbc3933f9e24e8b;p=libsigrok.git diff --git a/configure.ac b/configure.ac index be5137b5..afa88f60 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,9 @@ AH_TOP([#ifndef LIBSIGROK_CONFIG_H #define LIBSIGROK_CONFIG_H /* To stop multiple inclusions. */]) AH_BOTTOM([#endif /* LIBSIGROK_CONFIG_H */]) -CFLAGS="-g -Wall -Wextra" +# Enable more compiler warnings via -Wall and -Wextra. Add -fvisibility=hidden +# and enforce use of SR_API to explicitly mark all public API functions. +CFLAGS="-g -Wall -Wextra -fvisibility=hidden" # Checks for programs. AC_PROG_CXX