summaryrefslogtreecommitdiff
path: root/tests/glx
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2016-06-14 15:53:56 -0700
committerVinson Lee <vlee@freedesktop.org>2016-06-21 16:55:27 -0700
commit1d52edc0dac4ee57dfb9561aef7c09eb8015b0e8 (patch)
treed4a1d78191385a8954d9c3cfda6c53b05edb8bd0 /tests/glx
parentec946a4b5b3be034d258c372743e940dc2002a3e (diff)
glx-swap-event: Fix logical-not-parentheses warning.
glx-swap-event.c:161:26: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if ( ! Intel_swap_event == 0 ) { ^ ~~ glx-swap-event.c:161:26: note: add parentheses after the '!' to evaluate the comparison first if ( ! Intel_swap_event == 0 ) { ^ ( ) glx-swap-event.c:161:26: note: add parentheses around left hand side expression to silence this warning if ( ! Intel_swap_event == 0 ) { ^ ( ) Fixes: b6a0fc0fe54e8 ("glx: Add test for glx swap event's receive and its asynchronization.") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/glx')
-rw-r--r--tests/glx/glx-swap-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/glx/glx-swap-event.c b/tests/glx/glx-swap-event.c
index 74a16cc5c..7519a51ff 100644
--- a/tests/glx/glx-swap-event.c
+++ b/tests/glx/glx-swap-event.c
@@ -158,7 +158,7 @@ draw_frame(Display *dpy, Window win)
if (Automatic) {
if (message_count==2) {
if (test_events) {
- if ( ! Intel_swap_event == 0 ) {
+ if ( Intel_swap_event != 0 ) {
if (verbose) {
printf("glXSwapBuffers is called %d times and there\
is %d Intel_swap_event received in past %3.1f seconds.\n", swap_count,