diff options
author | Cyril Brulebois <kibi@debian.org> | 2011-01-31 06:22:36 +0100 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2011-03-16 20:15:52 +0000 |
commit | 15155469ef328588c1aeabdb9ac7258ccd863d2e (patch) | |
tree | 9a31d5eb28fdb90fb13e4ca02dd02acd9664b25c | |
parent | 79e3d6226147cdd4d5322e6296048f156be5f11c (diff) |
xvmc: Silence gcc, add parentheses around assignment.
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@debian.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 1b9349bceb9172d9bf01638b2df10b9b79e883b4)
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r-- | 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 974bcbb0..d22d311a 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) { |