[Intel-gfx] [PATCH 2/5] xvmc: Silence gcc, add parentheses around assignment.
Cyril Brulebois
kibi at debian.org
Mon Jan 31 06:22:36 CET 2011
Get rid of the following with CFLAGS="-Wall -Werror":
| CC intel_xvmc_dump.lo
| cc1: warnings being treated as errors
| intel_xvmc_dump.c: In function ‘intel_xvmc_dump_open’:
| intel_xvmc_dump.c:41: error: suggest parentheses around assignment used as truth value
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
src/xvmc/intel_xvmc_dump.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xvmc/intel_xvmc_dump.c b/src/xvmc/intel_xvmc_dump.c
index 974bcbb..d22d311 100644
--- a/src/xvmc/intel_xvmc_dump.c
+++ b/src/xvmc/intel_xvmc_dump.c
@@ -38,7 +38,7 @@ void intel_xvmc_dump_open(void)
if (xvmc_dump)
return;
- if (d = getenv("INTEL_XVMC_DUMP"))
+ if ((d = getenv("INTEL_XVMC_DUMP")))
xvmc_dump = 1;
if (xvmc_dump) {
--
1.7.2.3
More information about the Intel-gfx
mailing list