summaryrefslogtreecommitdiff
path: root/va
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2016-04-09 11:00:06 -0700
committerXiang, Haihao <haihao.xiang@intel.com>2016-04-25 10:15:39 +0800
commit4cb6d787bd8270bbba8f8334991db974c592c5c2 (patch)
tree0ad0cf2a649b8ce0ee0878d69ebabb6c7f715753 /va
parent2339d10b9a39ba4f7173053b9eab8d6a151717a5 (diff)
downloadlibva-4cb6d787bd8270bbba8f8334991db974c592c5c2.tar.gz
gcc suggests not putting ; at end of if statements
dri2_util.c: In function 'dri2Close': dri2_util.c:171:33: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] if (dri_state->base.fd >= 0); ^ Introduced-by: commit fffeffb8a78fffbb6a May 30 2011 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'va')
-rw-r--r--va/x11/dri2_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/va/x11/dri2_util.c b/va/x11/dri2_util.c
index d076fb3..1245432 100644
--- a/va/x11/dri2_util.c
+++ b/va/x11/dri2_util.c
@@ -168,7 +168,7 @@ dri2Close(VADriverContextP ctx)
free_drawable_hashtable(ctx);
- if (dri_state->base.fd >= 0);
+ if (dri_state->base.fd >= 0)
close(dri_state->base.fd);
}