meson, configure: add warning when using undefined preprocessor tokens
Subsystems (2)
PATCH 1/7 meson, configure: add warning when using undefined preprocessor tokens
--- configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
configure.ac +1 -1
@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked. So there's no need to do anything dnl else. If for any reason you need to force a recheck, just change dnl MAYBE_WARN in an ignorable way (like adding whitespace) -MAYBE_WARN="-Wall -Wextra \ +MAYBE_WARN="-Wall -Wextra -Wundef \ -Wsign-compare -Werror-implicit-function-declaration \ -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
meson.build +1 -1
@@ -203,7 +203,7 @@ if cc.has_function('open_memstream') endif warn_c_args = [] -foreach a : ['-Wall', '-Wextra', '-Wsign-compare', +foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef', '-Werror-implicit-function-declaration', '-Wpointer-arith', '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/7 nouveau: remove always-true #ifdef guards
DEBUG has always been defined since 292da616fe1f936ca78a3 "nouveau:
pull in major libdrm rewrite" in 2011
--- nouveau/Makefile.am | 3 +-- nouveau/nouveau.c | 4 ---- nouveau/private.h | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-)
nouveau/Makefile.am +1 -2
@@ -4,8 +4,7 @@ AM_CFLAGS = \ $(WARN_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ - -I$(top_srcdir)/include/drm \ - -DDEBUG + -I$(top_srcdir)/include/drm libdrm_nouveau_la_LTLIBRARIES = libdrm_nouveau.la libdrm_nouveau_ladir = $(libdir)
nouveau/nouveau.c +0 -4
@@ -50,7 +50,6 @@#include "nvif/ioctl.h" #include "nvif/unpack.h" -#ifdef DEBUG drm_private uint32_t nouveau_debug = 0; static void
@@ -62,7 +61,6 @@ debug_init(char *args) nouveau_debug = n; } } -#endif static int nouveau_object_ioctl (struct nouveau_object *obj,void *data,uint32_t size)
@@ -331,9 +329,7 @@ nouveau_drm_new(int fd, struct nouveau_drm **pdrm)struct nouveau_drm *drm;drmVersionPtr ver; -#ifdef DEBUG debug_init (getenv ("NOUVEAU_LIBDRM_DEBUG" )); -#endif if (!(drm =calloc (1 ,sizeof (*drm))))return -ENOMEM ;
nouveau/private.h +0 -5
@@ -9,17 +9,12 @@#include "nouveau.h" -#ifdef DEBUG drm_private uint32_t nouveau_debug;#define dbg_on (lvl) (nouveau_debug & (1 << lvl)) #define dbg(lvl, fmt, args...) do { \ if (dbg_on((lvl))) \ fprintf(stderr, "nouveau: "fmt, ##args); \ } while(0) -#else -#define dbg_on (lvl) (0) -#define dbg(lvl, fmt, args...) -#endif #define err(fmt, args...) fprintf(stderr, "nouveau: "fmt, ##args)struct nouveau_client_kref {
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/7 xf86drmHash: remove always-false #if guards
In reply to Eric Engestrom--- xf86drmHash.c | 6 ------ 1 file changed, 6 deletions(-)
xf86drmHash.c +0 -6
@@ -98,9 +98,6 @@ static unsigned long HashHash(unsigned long key) } hash %=HASH_SIZE ; -#if DEBUG -printf ("Hash(%lu) = %lu\n" , key, hash); -#endif return hash; }
@@ -201,9 +198,6 @@ int drmHashInsert(void *t, unsigned long key, void *value) bucket->value = value; bucket->next = table->buckets[hash]; table->buckets[hash] = bucket; -#if DEBUG -printf ("Inserted %lu at %lu/%p\n" , key, hash, bucket); -#endif return 0 ;/* Added to table */ }
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/7 configure: always define HAVE_LIBDRM_ATOMIC_PRIMITIVES and HAVE_LIB_ATOMIC_OPS
In reply to Eric EngestromFixes #if undefined warnings
--- configure.ac | 4 ++++ 1 file changed, 4 insertions(+)
configure.ac +4 -0
@@ -259,9 +259,13 @@ AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives, [ if test "x$drm_cv_atomic_primitives" = xIntel; then AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 1, [Enable if your compiler supports the Intel __sync_* atomic primitives]) +else + AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 0) fi if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed]) +else + AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 0) fi dnl Print out the approapriate message considering the value set be the
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/7 exynos/tests: use #ifdef for never-defined token
In reply to Eric Engestrom--- tests/exynos/exynos_fimg2d_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/exynos/exynos_fimg2d_test.c +2 -2
@@ -536,7 +536,7 @@ static int g2d_copy_with_scale_test(struct exynos_device *dev,return ret;; } -#if EXYNOS_G2D_USERPTR_TEST +#ifdef EXYNOS_G2D_USERPTR_TEST static int g2d_blend_test(struct exynos_device *dev, struct exynos_bo *src, struct exynos_bo *dst,
@@ -880,7 +880,7 @@ int main(int argc, char **argv)* * Disable the test for now, until the kernel code has been sanitized. */ -#if EXYNOS_G2D_USERPTR_TEST +#ifdef EXYNOS_G2D_USERPTR_TEST ret =g2d_blend_test (dev, src, bo,G2D_IMGBUF_USERPTR );if (ret <0 )fprintf (stderr,"failed to test blend operation.\n" );
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/7 meson, configure: turn undefined preprocessor tokens warnings into errors
In reply to Eric Engestrom--- configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
configure.ac +1 -1
@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked. So there's no need to do anything dnl else. If for any reason you need to force a recheck, just change dnl MAYBE_WARN in an ignorable way (like adding whitespace) -MAYBE_WARN="-Wall -Wextra -Wundef \ +MAYBE_WARN="-Wall -Wextra -Werror=undef \ -Wsign-compare -Werror-implicit-function-declaration \ -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
meson.build +1 -1
@@ -203,7 +203,7 @@ if cc.has_function('open_memstream') endif warn_c_args = [] -foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef', +foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', '-Werror-implicit-function-declaration', '-Wpointer-arith', '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 7/7 meson: cleanup whitespace
In reply to Eric Engestrom--- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meson.build +4 -4
@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', '-Werror-implicit-function-declaration', '-Wpointer-arith', '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wmissing-declarations', '-Wnested-externs', '-Wpacked', - '-Wswitch-enum', '-Wmissing-format-attribute', - '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', + '-Wswitch-enum', '-Wmissing-format-attribute', + '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', '-Wdeclaration-after-statement', '-Wold-style-definition'] if cc.has_argument(a) warn_c_args += a
@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', endforeach # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list # of options -foreach a : ['unused-parameter', 'attributes', 'long-long', +foreach a : ['unused-parameter', 'attributes', 'long-long', 'missing-field-initializers'] if cc.has_argument('-W@0@'.format(a)) warn_c_args += '-Wno-@0@'.format(a)
@@ -326,7 +326,7 @@ pkg.generate( version : meson.project_version(), description : 'Userspace interface to kernel DRM services', ) - + if with_libkms subdir('libkms') endif
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 24 lines · Eric Engestrom
Signed-off-by Eric Engestrom <[email protected]>--- configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)configure.ac +1
-1@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked. So there's no need to do anything dnl else. If for any reason you need to force a recheck, just change dnl MAYBE_WARN in an ignorable way (like adding whitespace) -MAYBE_WARN="-Wall -Wextra \ +MAYBE_WARN="-Wall -Wextra -Wundef \ -Wsign-compare -Werror-implicit-function-declaration \ -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \meson.build +0
-0
meson.build if cc.has_function('open_memstream') · line 206
Quoted 5 lines
meson.build +1
-1@@ -203,7 +203,7 @@ if cc.has_function('open_memstream') endif warn_c_args = [] -foreach a : ['-Wall', '-Wextra', '-Wsign-compare', +foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',
Unless we have [m]any undef warnings, I'd just make that Werror=undef, across build systems.
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 27 lines · Emil Velikov
Quoted 26 lines · Eric Engestrom
Signed-off-by Eric Engestrom <[email protected]>--- configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)configure.ac +1
-1@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked. So there's no need to do anything dnl else. If for any reason you need to force a recheck, just change dnl MAYBE_WARN in an ignorable way (like adding whitespace) -MAYBE_WARN="-Wall -Wextra \ +MAYBE_WARN="-Wall -Wextra -Wundef \ -Wsign-compare -Werror-implicit-function-declaration \ -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \meson.build +0
-0@@ -203,7 +203,7 @@ if cc.has_function('open_memstream') endif
Quoted 6 lines
meson.build if cc.has_function('open_memstream') · line 206
Quoted 3 lines
meson.build +1
-1warn_c_args = [] -foreach a : ['-Wall', '-Wextra', '-Wsign-compare', +foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',Unless we have [m]any undef warnings, I'd just make that Werror=undef, across build systems.
This is what patch 6/7 of this series does.
I chose to make it a two step thing, first enable the warning, fix the code, and then turn the warning into an error.
I guess I could just skip this patch, and introduce the warning as an error in 6/7.
Quoted 2 lines
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm 2/7] nouveau: remove always-true #ifdef guards
In reply to Eric EngestromQuoted 65 lines · Eric Engestrom
DEBUGhas always been defined since292da616fe1f936ca78a3"nouveau:
pull in major libdrm rewrite" in 2011Signed-off-by Eric Engestrom <[email protected]>--- nouveau/Makefile.am | 3 +-- nouveau/nouveau.c | 4 ---- nouveau/private.h | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-)nouveau/Makefile.am +1
-2@@ -4,8 +4,7 @@ AM_CFLAGS = \ $(WARN_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ - -I$(top_srcdir)/include/drm \ - -DDEBUG + -I$(top_srcdir)/include/drm libdrm_nouveau_la_LTLIBRARIES = libdrm_nouveau.la libdrm_nouveau_ladir = $(libdir)nouveau/nouveau.c +0
-4@@ -50,7 +50,6 @@#include "nvif/ioctl.h" #include "nvif/unpack.h" -#ifdef DEBUG drm_private uint32_t nouveau_debug = 0; static void@@ -62,7 +61,6 @@ debug_init(char *args) nouveau_debug = n; } } -#endif static int nouveau_object_ioctl (struct nouveau_object *obj,void *data,uint32_t size)@@ -331,9 +329,7 @@ nouveau_drm_new(int fd, struct nouveau_drm **pdrm)struct nouveau_drm *drm;drmVersionPtr ver; -#ifdef DEBUG debug_init (getenv ("NOUVEAU_LIBDRM_DEBUG" )); -#endif if (!(drm =calloc (1 ,sizeof (*drm))))return -ENOMEM ;nouveau/private.h +0
-1@@ -9,17 +9,12 @@#include "nouveau.h" -#ifdef DEBUG drm_private uint32_t nouveau_debug;#define dbg_on (lvl) (nouveau_debug & (1 << lvl))
nouveau/private.h line 19
Quoted 10 lines
nouveau/private.h +0
-4#define dbg(lvl, fmt, args...) do { \ if (dbg_on((lvl))) \ fprintf(stderr, "nouveau: "fmt, ##args); \ } while(0) -#else -#define dbg_on (lvl) (0) -#define dbg(lvl, fmt, args...) -#endif #define err(fmt, args...) fprintf(stderr, "nouveau: "fmt, ##args)
I've been meaning to ask Ben about the the DEBUG and SIMULATE bits in nouveau. The latter seems like a debug left-over (that we can drop), while the former is...
Ben can you shed some light?
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm 7/7] meson: cleanup whitespace
In reply to Eric EngestromQuoting Eric Engestrom (2018-01-26 03:30:47)
Quoted 46 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)meson.build +4
-4@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', '-Werror-implicit-function-declaration', '-Wpointer-arith', '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wmissing-declarations', '-Wnested-externs', '-Wpacked', - '-Wswitch-enum', '-Wmissing-format-attribute', - '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', + '-Wswitch-enum', '-Wmissing-format-attribute', + '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', '-Wdeclaration-after-statement', '-Wold-style-definition'] if cc.has_argument(a) warn_c_args += a@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', endforeach # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list # of options -foreach a : ['unused-parameter', 'attributes', 'long-long', +foreach a : ['unused-parameter', 'attributes', 'long-long', 'missing-field-initializers'] if cc.has_argument('-W@0@'.format(a)) warn_c_args += '-Wno-@0@'.format(a)@@ -326,7 +326,7 @@ pkg.generate( version : meson.project_version(), description : 'Userspace interface to kernel DRM services', ) - + if with_libkms subdir('libkms') endifSignature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoting Eric Engestrom (2018-01-26 09:17:43)
Quoted 35 lines · Emil Velikov
Quoted 27 lines · Eric Engestrom
Quoted 26 lines
Signed-off-by Eric Engestrom <[email protected]>--- configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)configure.ac +1
-1@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked. So there's no need to do anything dnl else. If for any reason you need to force a recheck, just change dnl MAYBE_WARN in an ignorable way (like adding whitespace) -MAYBE_WARN="-Wall -Wextra \ +MAYBE_WARN="-Wall -Wextra -Wundef \ -Wsign-compare -Werror-implicit-function-declaration \ -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \meson.build +0
-0@@ -203,7 +203,7 @@ if cc.has_function('open_memstream') endifQuoted 6 lines
meson.build if cc.has_function('open_memstream') · line 206
Quoted 3 lines
meson.build +1
-1warn_c_args = [] -foreach a : ['-Wall', '-Wextra', '-Wsign-compare', +foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',Unless we have [m]any undef warnings, I'd just make that Werror=undef, across build systems.
Quoted 9 lines
This is what patch 6/7 of this series does.
I chose to make it a two step thing, first enable the warning, fix the code, and then turn the warning into an error.I guess I could just skip this patch, and introduce the warning as an error in 6/7.
Quoted 2 lines
-Emil
I'd either leave 1/7 as-is or drop it completely, so we can bisect across this series. I don't care which.
Dylan
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm 7/7] meson: cleanup whitespace
In reply to Dylan BakerQuoted 1 line · Dylan Baker
Reviewed-by Dylan Baker <[email protected]>
Thanks :)
Is that for this patch or the series?
Quoted 44 lines
Quoting Eric Engestrom (2018-01-26 03:30:47)
Quoted 42 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)meson.build +4
-4@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', '-Werror-implicit-function-declaration', '-Wpointer-arith', '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wmissing-declarations', '-Wnested-externs', '-Wpacked', - '-Wswitch-enum', '-Wmissing-format-attribute', - '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', + '-Wswitch-enum', '-Wmissing-format-attribute', + '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', '-Wdeclaration-after-statement', '-Wold-style-definition'] if cc.has_argument(a) warn_c_args += a@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', endforeach # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list # of options -foreach a : ['unused-parameter', 'attributes', 'long-long', +foreach a : ['unused-parameter', 'attributes', 'long-long', 'missing-field-initializers'] if cc.has_argument('-W@0@'.format(a)) warn_c_args += '-Wno-@0@'.format(a)@@ -326,7 +326,7 @@ pkg.generate( version : meson.project_version(), description : 'Userspace interface to kernel DRM services', ) - + if with_libkms subdir('libkms') endifSignature · 2 lines
Cheers, Eric
Quoted 4 lines
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm 7/7] meson: cleanup whitespace
For the series :)
But please do get someone from nouveau (Emil CC'd Ben, so presumably him) before pushing the nouveau patch.
Dylan
Quoting Eric Engestrom (2018-01-29 02:54:47)
Quoted 50 lines · Dylan Baker
Quoted 1 line
Reviewed-by Dylan Baker <[email protected]>Thanks :)
Is that for this patch or the series?Quoted 44 lines
Quoting Eric Engestrom (2018-01-26 03:30:47)
Quoted 42 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)meson.build +4
-4@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', '-Werror-implicit-function-declaration', '-Wpointer-arith', '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wmissing-declarations', '-Wnested-externs', '-Wpacked', - '-Wswitch-enum', '-Wmissing-format-attribute', - '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', + '-Wswitch-enum', '-Wmissing-format-attribute', + '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', '-Wdeclaration-after-statement', '-Wold-style-definition'] if cc.has_argument(a) warn_c_args += a@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', endforeach # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list # of options -foreach a : ['unused-parameter', 'attributes', 'long-long', +foreach a : ['unused-parameter', 'attributes', 'long-long', 'missing-field-initializers'] if cc.has_argument('-W@0@'.format(a)) warn_c_args += '-Wno-@0@'.format(a)@@ -326,7 +326,7 @@ pkg.generate( version : meson.project_version(), description : 'Userspace interface to kernel DRM services', ) - + if with_libkms subdir('libkms') endifSignature · 2 lines
Cheers, Eric
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm 7/7] meson: cleanup whitespace
Quoted 1 line · Dylan Baker
For the series :)
Thanks :)
Quoted 4 lines
But please do get someone from nouveau (Emil CC'd Ben, so presumably him) before
pushing the nouveau patch.
I'm not pushing the nouveau patch until I get an ack, and the amdgpu sign patch needs a v2.
I'll push the rest tomorrow.
Quoted 36 lines
Dylan
Quoting Eric Engestrom (2018-01-29 02:54:47)
Quoted 13 lines · Dylan Baker
Quoted 1 line
Reviewed-by Dylan Baker <[email protected]>Thanks :)
Is that for this patch or the series?Quoted 7 lines
Quoting Eric Engestrom (2018-01-26 03:30:47)
Quoted 5 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)Quoted 5 lines
Quoted 5 lines
meson.build foreach a : ['-Wall', '-Wextra',
Quoted 5 lines
meson.build +0
-0@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra','-Wsign-compare', '-Werror=undef',
Quoted 1 line
Quoted 1 line
meson.build foreach a : ['-Wall', '-Wextra', · line 207
Quoted 1 line
meson.build +0
-0'-Werror-implicit-function-declaration','-Wpointer-arith',
Quoted 1 line
Quoted 1 line
meson.build foreach a : ['-Wall', '-Wextra', · line 208
Quoted 1 line
meson.build +0
-0'-Wwrite-strings', '-Wstrict-prototypes','-Wmissing-prototypes',
Quoted 1 line
Quoted 1 line
meson.build foreach a : ['-Wall', '-Wextra', · line 209
Quoted 1 line
meson.build +0
-0'-Wmissing-declarations', '-Wnested-externs','-Wpacked',
Quoted 2 lines
Quoted 2 lines
meson.build foreach a : ['-Wall', '-Wextra', · line 211
Quoted 2 lines
meson.build +0
-2- '-Wswitch-enum', '-Wmissing-format-attribute', - '-Wstrict-aliasing=2', '-Winit-self', '-Winline','-Wshadow',
Quoted 2 lines
Quoted 2 lines
meson.build foreach a : ['-Wall', '-Wextra', · line 211
Quoted 2 lines
meson.build +2
-0+ '-Wswitch-enum', '-Wmissing-format-attribute', + '-Wstrict-aliasing=2', '-Winit-self', '-Winline','-Wshadow',
Quoted 1 line
Quoted 1 line
meson.build foreach a : ['-Wall', '-Wextra', · line 212
Quoted 1 line
meson.build +0
-0'-Wdeclaration-after-statement',
Quoted 33 lines
'-Wold-style-definition']
Quoted 3 lines
Quoted 3 lines
meson.build foreach a : ['-Wall', '-Wextra',
Quoted 3 lines
meson.build +0
-0if cc.has_argument(a) warn_c_args += a@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra','-Wsign-compare', '-Werror=undef',
Quoted 2 lines
Quoted 2 lines
meson.build foreach a : ['-Wall', '-Wextra', · line 217
Quoted 2 lines
meson.build +0
-0endforeach # GCC will never error for -Wno-*, so check for -W* then add-Wno-* to the list
Quoted 25 lines
Quoted 23 lines
Quoted 23 lines
meson.build +2
-2# of options -foreach a : ['unused-parameter', 'attributes', 'long-long', +foreach a : ['unused-parameter', 'attributes', 'long-long', 'missing-field-initializers'] if cc.has_argument('-W@0@'.format(a)) warn_c_args += '-Wno-@0@'.format(a)@@ -326,7 +326,7 @@ pkg.generate( version : meson.project_version(), description : 'Userspace interface to kernel DRM services', ) - + if with_libkms subdir('libkms') endifSignature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel