projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e42038
)
amd/addrlib: fix optimized build warnings
author
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 2 Apr 2017 17:22:21 +0000
(20:22 +0300)
committer
Marek Olšák
<marek.olsak@amd.com>
Sun, 2 Apr 2017 22:48:26 +0000
(
00:48
+0200)
All the -Wunused-but-set-variable ones.
Found a way to do it with a oneliner.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/amd/addrlib/core/addrcommon.h
patch
|
blob
|
history
diff --git
a/src/amd/addrlib/core/addrcommon.h
b/src/amd/addrlib/core/addrcommon.h
index 7645c505c45ca2cc25603525cf264c7786f9ef15..907b9f4eaeb4ee54bb313715136b0716f0cef950 100644
(file)
--- 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