diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-03-02 09:14:28 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-11-11 09:54:21 +0100 |
commit | 732df7d9cb709f6fd96099654fb83a00d99f26cf (patch) | |
tree | ad1a49ddc776f04f76ed671f1439fa1dd9f65e0c /configure.ac | |
parent | d96310532f8244f89213a78db459d542f95686a7 (diff) | |
download | glibmm-732df7d9cb709f6fd96099654fb83a00d99f26cf.tar.gz |
Try to disable -Wunused-function for the glibmm_interface_move test.
To deal with this clang warning when building with --enable-warnings=fatal.
TODO: However, this doesn't actually seem to disable the error.
glibmm_interface_move/main.cc:9:1: error: unused function 'glib_autoptr_cleanup_TestIface' [-Werror,-Wunused-function]
G_DECLARE_INTERFACE(TestIface, test_Iface, TEST, IFACE, GObject)
^
/opt/gnome/include/glib-2.0/gobject/gtype.h:1565:3: note: expanded from macro 'G_DECLARE_INTERFACE'
_GLIB_DEFINE_AUTOPTR_CHAINUP (ModuleObjName, PrerequisiteName) \
^
/opt/gnome/include/glib-2.0/glib/gmacros.h:421:22: note: expanded from macro '_GLIB_DEFINE_AUTOPTR_CHAINUP'
static inline void _GLIB_AUTOPTR_FUNC_NAME(ModuleObjName) (ModuleObjName **_ptr) { \
^
/opt/gnome/include/glib-2.0/glib/gmacros.h:415:43: note: expanded from macro '_GLIB_AUTOPTR_FUNC_NAME'
^
<scratch space>:224:1: note: expanded from here
glib_autoptr_cleanup_TestIface
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d30f67f6..03d994a4 100644 --- a/configure.ac +++ b/configure.ac @@ -114,10 +114,16 @@ MM_ARG_WITH_TAGFILE_DOC([libsigc++-2.0.tag], [sigc++-2.0]) # Check whether --enable-debug-refcounting was given. GLIBMM_ARG_ENABLE_DEBUG_REFCOUNTING +glibmm_warnings_fatal='-pedantic -Wall -Wextra -Wformat-security -Wsuggest-override -Wshadow -Wno-long-long' # Evaluate the --enable-warnings=level option. MM_ARG_ENABLE_WARNINGS([GLIBMM_WXXFLAGS], [-Wall], - [-pedantic -Wall -Wextra -Wformat-security -Wsuggest-override -Wshadow -Wno-long-long], + [$glibmm_warnings_fatal], + [G SIGCXX]) + +MM_ARG_ENABLE_WARNINGS([GLIBMM_INTERFACE_TEST_WXXFLAGS], + [-Wall], + [$glibmm_warnings_fatal -Wno-unused-function], [G SIGCXX]) # Offer the ability to omit some API from the library, |