]> sigrok.org Git - libsigrok.git/blobdiff - configure.ac
sr: Mark API functions with SR_API/SR_PRIV.
[libsigrok.git] / configure.ac
index be5137b54d77e9addb8cab97b77615a984b3c8cb..afa88f60d26f01f254476454fe62ad6d47103730 100644 (file)
@@ -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