diff options
author | Eric Anholt <[email protected]> | 2015-07-10 17:00:34 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-07-14 11:39:28 -0700 |
commit | cd7dd45bfec9ad68719c5e4e04b66ea4bcc1a2c1 (patch) | |
tree | 4f36da58f8ce43869330dd5b4759070d90482fe7 /src/gallium/drivers/vc4/vc4_qpu_validate.c | |
parent | 1e80c9fab98d7de216937a47f8e231f3beb78403 (diff) |
vc4: Fix compiler warnings on release builds.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qpu_validate.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qpu_validate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qpu_validate.c b/src/gallium/drivers/vc4/vc4_qpu_validate.c index 8471edbf62c..9cf6841f41c 100644 --- a/src/gallium/drivers/vc4/vc4_qpu_validate.c +++ b/src/gallium/drivers/vc4/vc4_qpu_validate.c @@ -23,6 +23,13 @@ #include "vc4_qpu.h" +#ifdef NDEBUG +/* Since most of our code is used in assert()s, don't warn about dead code. */ +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#pragma GCC diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Wunused-function" +#endif + static bool writes_reg(uint64_t inst, uint32_t w) { |