Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libva: Commit

hardware/intel/libva


Commit MetaInfo

Revision4cb6d787bd8270bbba8f8334991db974c592c5c2 (tree)
Zeit2016-04-25 11:15:39
AutorAlan Coopersmith <alan.coopersmith@orac...>
CommiterXiang, Haihao

Log Message

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>

Ändern Zusammenfassung

Diff

--- a/va/x11/dri2_util.c
+++ b/va/x11/dri2_util.c
@@ -168,7 +168,7 @@ dri2Close(VADriverContextP ctx)
168168
169169 free_drawable_hashtable(ctx);
170170
171- if (dri_state->base.fd >= 0);
171+ if (dri_state->base.fd >= 0)
172172 close(dri_state->base.fd);
173173 }
174174
Show on old repository browser