diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 14:47:58 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 16:49:23 +0200 |
commit | 06cbdd80e087a117669383d4afb9be12bbf6add0 (patch) | |
tree | b931588e2a73bac5cf95aa3f4f0ef8798f98c430 | |
parent | 9a3567d5c0f6c451d008da003e64c5ba91e53842 (diff) | |
download | gobject-introspection-06cbdd80e087a117669383d4afb9be12bbf6add0.tar.gz |
build: enable -Wincompatible-pointer-types
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | girepository/gitypelib.c | 2 | ||||
-rw-r--r-- | tests/scanner/annotation.c | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index d35337cb..bf3e2403 100644 --- a/configure.ac +++ b/configure.ac @@ -67,7 +67,6 @@ AX_APPEND_COMPILE_FLAGS([-Wno-duplicated-branches -Wno-switch-enum]) # FIXME: Fix the warnings and remove the flags AX_APPEND_COMPILE_FLAGS([-Wno-redundant-decls -Wno-switch-default -Wno-shadow -Wno-deprecated-declarations -Wno-cast-function-type -Wno-type-limits]) AX_APPEND_COMPILE_FLAGS([-Wno-implicit-fallthrough -Wno-suggest-attribute=format -Wno-double-promotion -Wno-sign-compare]) -AX_APPEND_COMPILE_FLAGS([-Wno-incompatible-pointer-types]) WARN_CFLAGS_PYTHON="$WARN_CFLAGS" AX_APPEND_COMPILE_FLAGS([-Wno-discarded-qualifiers], [WARN_CFLAGS_PYTHON]) diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c index 8ad13604..f2b20607 100644 --- a/girepository/gitypelib.c +++ b/girepository/gitypelib.c @@ -324,7 +324,7 @@ g_typelib_matches_gtype_name_prefix (GITypelib *typelib, { Header *header = (Header *)typelib->data; const char *c_prefix; - gchar *prefix; + const gchar *prefix; gboolean ret = FALSE; StrSplitIter split_iter; gsize gtype_name_len; diff --git a/tests/scanner/annotation.c b/tests/scanner/annotation.c index 0f3858f2..fb8b48f4 100644 --- a/tests/scanner/annotation.c +++ b/tests/scanner/annotation.c @@ -400,7 +400,7 @@ regress_annotation_object_get_objects (RegressAnnotationObject *object) GObject* regress_annotation_object_create_object (RegressAnnotationObject *object) { - return g_object_ref (object); + return G_OBJECT (g_object_ref (object)); } /** |