r600: silence the signed overflow warning like radeonsi
authorMarek Olšák <marek.olsak@amd.com>
Wed, 18 Jul 2018 21:47:54 +0000 (17:47 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 18 Jul 2018 21:48:48 +0000 (17:48 -0400)
r600_gpu_load.c: In function ‘r600_gpu_load_thread’:
../../../../src/util/os_time.h:82:7: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow]
    if (start <= end)

src/gallium/drivers/r600/Makefile.am

index bf45fbf7b20711a143c3723306925234bf46cb30..1138de985dd861a1fdaf072399dd8805ae8c0cda 100644 (file)
@@ -10,7 +10,7 @@ AM_CFLAGS = \
        $(GALLIUM_DRIVER_CFLAGS) \
        $(RADEON_CFLAGS) \
        $(LIBELF_CFLAGS) \
-       -I$(top_srcdir)/src/amd/common
+       -I$(top_srcdir)/src/amd/common -Wstrict-overflow=0
 
 AM_CXXFLAGS = \
        $(GALLIUM_DRIVER_CXXFLAGS) \