diff options
author | Ralph Boehme <slow@samba.org> | 2016-04-25 13:20:31 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2016-04-26 04:44:44 +0200 |
commit | 3e3e72ff9b722eb5aedd7a72d43719c47a4a8145 (patch) | |
tree | a743f2ecbd71440f72563fa051cdba0a76494a2f /source3 | |
parent | 81ca7eac3dd45ba245de2526187f76c665aae11e (diff) | |
download | samba-3e3e72ff9b722eb5aedd7a72d43719c47a4a8145.tar.gz |
s3/rpc_server: mdssvc: suppress compiler warnings from glib headers
Several glib headers produce cast-qual warnings, eg:
/usr/include/glib-2.0/gio/gliststore.h: In function ‘G_LIST_STORE’:
/usr/include/glib-2.0/gio/gliststore.h:36:382: error: cast discards
‘const’ qualifier from pointer target type [-Werror=cast-qual]
/usr/include/glib-2.0/gio/gliststore.h: In function ‘G_IS_LIST_STORE’:
/usr/include/glib-2.0/gio/gliststore.h:36:550: error: cast discards
‘const’ qualifier from pointer target type [-Werror=cast-qual]
cc1: all warnings being treated as errors
This break compiling with --picky-developer, so lets suppress the
warning for glibs in order to see our own --picky-developer compiler
diagnostics.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Apr 26 04:44:44 CEST 2016 on sn-devel-144
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/mdssvc/mdssvc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/mdssvc/mdssvc.h b/source3/rpc_server/mdssvc/mdssvc.h index 2c9dc833121..091cd971f1f 100644 --- a/source3/rpc_server/mdssvc/mdssvc.h +++ b/source3/rpc_server/mdssvc/mdssvc.h @@ -33,8 +33,11 @@ */ #undef TRUE #undef FALSE +/* allow building with --picky-developer */ +#pragma GCC diagnostic ignored "-Wcast-qual" #include <gio/gio.h> #include <tracker-sparql.h> +#pragma GCC diagnostic pop #define MAX_SL_FRAGMENT_SIZE 0xFFFFF #define MAX_SL_RESULTS 100 |