Mesa (master): amd/addrlib: fix optimized build warnings
Marek Olšák
mareko at kemper.freedesktop.org
Sun Apr 2 22:49:30 UTC 2017
Module: Mesa
Branch: master
Commit: a0f0f3958e012335e8b1c30e4a10ed1141c7758c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0f0f3958e012335e8b1c30e4a10ed1141c7758c
Author: Grazvydas Ignotas <notasas at gmail.com>
Date: Sun Apr 2 20:22:21 2017 +0300
amd/addrlib: fix optimized build warnings
All the -Wunused-but-set-variable ones.
Found a way to do it with a oneliner.
Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
src/amd/addrlib/core/addrcommon.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/addrlib/core/addrcommon.h b/src/amd/addrlib/core/addrcommon.h
index 7645c505c4..907b9f4eae 100644
--- a/src/amd/addrlib/core/addrcommon.h
+++ b/src/amd/addrlib/core/addrcommon.h
@@ -68,7 +68,7 @@
#if defined(_WIN32) && (_MSC_VER >= 1400)
#define ADDR_ANALYSIS_ASSUME(expr) __analysis_assume(expr)
#else
- #define ADDR_ANALYSIS_ASSUME(expr) do { } while (0)
+ #define ADDR_ANALYSIS_ASSUME(expr) do { (void)(expr); } while (0)
#endif
#if DEBUG
More information about the mesa-commit
mailing list