summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2016-04-16 04:00:10 +0300
committerIan Romanick <[email protected]>2016-04-25 12:23:10 +0200
commite4fc06a2f8be2de3a08d4adfa4a26df2ae0b5cae (patch)
treedd79c0ef687e1189bdfe3ac655e592a95180c48a /src/gallium/drivers
parent787a53988cc6bb7a0f2b43c216837d683336b33f (diff)
util: add MAYBE_UNUSED for config dependent variables
This is mostly for variables that are only used in asserts and cause unused-but-set-variable warnings in release builds. Could just use UNUSED directly, but MAYBE_UNUSED should be less confusing and is similar to what the Linux kernel has. And yes __attribute__((unused)) can be used on variables on both GCC 4.2 (oldest supported by mesa) and clang 3.0 (just some random old version, not sure what's the minimum for mesa). Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Reviewed-by: Chad Versace <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions