• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Révision4cb6d787bd8270bbba8f8334991db974c592c5c2 (tree)
l'heure2016-04-25 11:15:39
AuteurAlan Coopersmith <alan.coopersmith@orac...>
CommiterXiang, Haihao

Message de Log

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>

Change Summary

Modification

--- 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