Merge lp:~bregma/grail/lp-1537161 into lp:grail

Proposed by Stephen M. Webb
Status: Merged
Approved by: Christopher Townsend
Approved revision: 257
Merged at revision: 257
Proposed branch: lp:~bregma/grail/lp-1537161
Merge into: lp:grail
Diff against target: 21 lines (+3/-2)
1 file modified
tools/grail-test-atomic.c (+3/-2)
To merge this branch: bzr merge lp:~bregma/grail/lp-1537161
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+283703@code.launchpad.net

Commit message

put braces around a test case to fix a FTBFS using GCC-6

Description of the change

Puts braces around an else-clause in a test case that was lacking them.

Fixes a FTBFS with GCC-6.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

This is now correct.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tools/grail-test-atomic.c'
--- tools/grail-test-atomic.c 2012-12-04 11:32:11 +0000
+++ tools/grail-test-atomic.c 2016-01-22 21:58:03 +0000
@@ -143,15 +143,16 @@
143 print_device_added(frame_handle, event);143 print_device_added(frame_handle, event);
144 status = frame_event_get_property(event, UFEventPropertyDevice,144 status = frame_event_get_property(event, UFEventPropertyDevice,
145 &device);145 &device);
146 if (status != UFStatusSuccess)146 if (status != UFStatusSuccess) {
147 fprintf(stderr, "Error: failed to get device from event\n");147 fprintf(stderr, "Error: failed to get device from event\n");
148 else148 } else {
149 subscribe(grail_handle, device, subscribe_window, subscriptions, 2,149 subscribe(grail_handle, device, subscribe_window, subscriptions, 2,
150 2);150 2);
151 subscribe(grail_handle, device, subscribe_window, subscriptions, 3,151 subscribe(grail_handle, device, subscribe_window, subscriptions, 3,
152 1);152 1);
153 subscribe(grail_handle, device, subscribe_window, subscriptions, 4,153 subscribe(grail_handle, device, subscribe_window, subscriptions, 4,
154 1);154 1);
155 }
155 break;156 break;
156 }157 }
157158

Subscribers

People subscribed via source and target branches