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
1=== modified file 'tools/grail-test-atomic.c'
2--- tools/grail-test-atomic.c 2012-12-04 11:32:11 +0000
3+++ tools/grail-test-atomic.c 2016-01-22 21:58:03 +0000
4@@ -143,15 +143,16 @@
5 print_device_added(frame_handle, event);
6 status = frame_event_get_property(event, UFEventPropertyDevice,
7 &device);
8- if (status != UFStatusSuccess)
9+ if (status != UFStatusSuccess) {
10 fprintf(stderr, "Error: failed to get device from event\n");
11- else
12+ } else {
13 subscribe(grail_handle, device, subscribe_window, subscriptions, 2,
14 2);
15 subscribe(grail_handle, device, subscribe_window, subscriptions, 3,
16 1);
17 subscribe(grail_handle, device, subscribe_window, subscriptions, 4,
18 1);
19+ }
20 break;
21 }
22

Subscribers

People subscribed via source and target branches