mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
build: Add more useful warning flags
I found those on the interwebs and decided they are useful.
This commit is contained in:
parent
38dcc8f63b
commit
f6b11a5158
@ -28,7 +28,7 @@
|
|||||||
((c) >= 'a' && (c) <= 'f') ? ((c)-'a'+10) : \
|
((c) >= 'a' && (c) <= 'f') ? ((c)-'a'+10) : \
|
||||||
((c) >= '0' && (c) <= '9') ? ((c)-'0') : \
|
((c) >= '0' && (c) <= '9') ? ((c)-'0') : \
|
||||||
-1))
|
-1))
|
||||||
#define _GDK_RGBA_SELECT_COLOR(_str, index3, index6) _GDK_RGBA_DECODE (sizeof(_str) <= 4 ? (_str)[index3] : (_str)[index6])
|
#define _GDK_RGBA_SELECT_COLOR(_str, index3, index6) (sizeof(_str) <= 4 ? _GDK_RGBA_DECODE ((_str)[index3]) : _GDK_RGBA_DECODE ((_str)[index6]))
|
||||||
#define GDK_RGBA(str) ((GdkRGBA) {\
|
#define GDK_RGBA(str) ((GdkRGBA) {\
|
||||||
((_GDK_RGBA_SELECT_COLOR(str, 0, 0) << 4) | _GDK_RGBA_SELECT_COLOR(str, 0, 1)) / 255., \
|
((_GDK_RGBA_SELECT_COLOR(str, 0, 0) << 4) | _GDK_RGBA_SELECT_COLOR(str, 0, 1)) / 255., \
|
||||||
((_GDK_RGBA_SELECT_COLOR(str, 1, 2) << 4) | _GDK_RGBA_SELECT_COLOR(str, 1, 3)) / 255., \
|
((_GDK_RGBA_SELECT_COLOR(str, 1, 2) << 4) | _GDK_RGBA_SELECT_COLOR(str, 1, 3)) / 255., \
|
||||||
|
@ -238,12 +238,15 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
|||||||
test_cflags = [
|
test_cflags = [
|
||||||
'-fno-strict-aliasing',
|
'-fno-strict-aliasing',
|
||||||
'-Wcast-align',
|
'-Wcast-align',
|
||||||
|
'-Wduplicated-branches',
|
||||||
|
'-Wduplicated-cond',
|
||||||
'-Wformat=2',
|
'-Wformat=2',
|
||||||
'-Wformat-nonliteral',
|
'-Wformat-nonliteral',
|
||||||
'-Wformat-security',
|
'-Wformat-security',
|
||||||
'-Wignored-qualifiers',
|
'-Wignored-qualifiers',
|
||||||
'-Wimplicit-function-declaration',
|
'-Wimplicit-function-declaration',
|
||||||
'-Wlogical-op',
|
'-Wlogical-op',
|
||||||
|
'-Wmisleading-indentation',
|
||||||
'-Wmissing-format-attribute',
|
'-Wmissing-format-attribute',
|
||||||
'-Wmissing-include-dirs',
|
'-Wmissing-include-dirs',
|
||||||
'-Wmissing-noreturn',
|
'-Wmissing-noreturn',
|
||||||
|
Loading…
Reference in New Issue
Block a user