public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] autoconf: Silence void pointer arithmetic warnings
@ 2019-03-01 10:32 Tvrtko Ursulin
  2019-03-01 10:32 ` [igt-dev] [PATCH i-g-t 2/2] automake: Make librt mandatory Tvrtko Ursulin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Tvrtko Ursulin @ 2019-03-01 10:32 UTC (permalink / raw)
  To: igt-dev; +Cc: Intel-gfx, Tvrtko Ursulin

From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Meson build does it so make the two symmetrical in this respect.

v2:
 * Do it properly. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 4f55ea5d0f89..e22703d03198 100644
--- a/configure.ac
+++ b/configure.ac
@@ -256,6 +256,9 @@ AC_ARG_ENABLE(werror,
 			     [Fail on warnings]),
 	      [], [enable_werror=no])
 
+# disable "warning: pointer of type ‘void *’ used in arithmetic"
+AS_COMPILER_FLAG([-Wno-pointer-arith], [CWARNFLAGS+=" -Wno-pointer-arith"], [])
+
 if test "x$enable_debug" = xyes; then
 	AS_COMPILER_FLAG([-g3], [DEBUG_CFLAGS="-g3"], [DEBUG_CFLAGS="-g"])
 	AS_COMPILER_FLAG([-Og], [DEBUG_CFLAGS+=" -Og -Wno-maybe-uninitialized"], # disable maybe-uninitialized due to false positives
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-03-01 16:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-01 10:32 [igt-dev] [PATCH i-g-t 1/2] autoconf: Silence void pointer arithmetic warnings Tvrtko Ursulin
2019-03-01 10:32 ` [igt-dev] [PATCH i-g-t 2/2] automake: Make librt mandatory Tvrtko Ursulin
2019-03-01 10:44   ` Chris Wilson
2019-03-01 10:38 ` [igt-dev] [PATCH i-g-t 1/2] autoconf: Silence void pointer arithmetic warnings Chris Wilson
2019-03-01 13:19 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] " Patchwork
2019-03-01 16:17 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox