projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a7493a
)
util: Define dump_cpu only for DEBUG builds.
author
Vinson Lee
<vlee@vmware.com>
Sun, 22 Aug 2010 06:28:52 +0000
(23:28 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 22 Aug 2010 06:28:52 +0000
(23:28 -0700)
dump_cpu is used only when DEBUG is defined.
Fixes the following GCC warning on builds without DEBUG defined.
util/u_cpu_detect.c:76: warning: 'debug_get_option_dump_cpu' defined but not used
src/gallium/auxiliary/util/u_cpu_detect.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_cpu_detect.c
b/src/gallium/auxiliary/util/u_cpu_detect.c
index f33d6b346179cd8898c1545f43b849a52e47c926..5d0b16d28e162cd9490d95f10cdf833fda5a3b40 100644
(file)
--- a/
src/gallium/auxiliary/util/u_cpu_detect.c
+++ b/
src/gallium/auxiliary/util/u_cpu_detect.c
@@
-73,7
+73,9
@@
#endif
+#if DEBUG
DEBUG_GET_ONCE_BOOL_OPTION(dump_cpu, "GALLIUM_DUMP_CPU", FALSE)
+#endif
struct util_cpu_caps util_cpu_caps;