util: Define dump_cpu only for DEBUG builds.

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
This commit is contained in:
Vinson Lee 2010-08-21 23:28:52 -07:00
parent 2a7493ada4
commit 0f3b3751b8

View file

@ -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;