Merge lp:~bregma/geis/deb-811933 into lp:geis

Proposed by Stephen M. Webb
Status: Merged
Approved by: Christopher Townsend
Approved revision: 337
Merged at revision: 337
Proposed branch: lp:~bregma/geis/deb-811933
Merge into: lp:geis
Diff against target: 55 lines (+10/-4)
3 files modified
libgeis/backend/grail/geis_grail_backend.c (+6/-2)
libgeis/geis_subscription.c (+2/-0)
libs/geis-util/geis_bag.h (+2/-2)
To merge this branch: bzr merge lp:~bregma/geis/deb-811933
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Christopher Townsend Approve
Review via email: mp+283980@code.launchpad.net

Commit message

fix error revealed by GCC-6

Description of the change

Fix errors detected by rebuilding with GCC-6.

(1) unused constants in a header (replaced with #define)
(2) bracing error in an if-statement (may have caused memory leaks)

Fixes Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811933

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

Yep, looks correct.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libgeis/backend/grail/geis_grail_backend.c'
--- libgeis/backend/grail/geis_grail_backend.c 2015-07-22 20:20:25 +0000
+++ libgeis/backend/grail/geis_grail_backend.c 2016-01-26 15:37:29 +0000
@@ -1431,7 +1431,9 @@
1431 _grail_be_grail_fd_callback,1431 _grail_be_grail_fd_callback,
1432 gbe);1432 gbe);
14331433
1434 gbe->devices = geis_bag_new(sizeof(UFDevice), 2, 2.0f);1434 gbe->devices = geis_bag_new(sizeof(UFDevice),
1435 geis_bag_default_init_alloc,
1436 geis_bag_default_growth_factor);
1435 if (!gbe->devices)1437 if (!gbe->devices)
1436 {1438 {
1437 geis_error("failed to create UFDevices store");1439 geis_error("failed to create UFDevices store");
@@ -1447,7 +1449,9 @@
1447 goto unwind_devices;1449 goto unwind_devices;
1448 }1450 }
14491451
1450 gbe->slice_states = geis_bag_new(sizeof(struct _GeisSliceState), 2, 1.5f);1452 gbe->slice_states = geis_bag_new(sizeof(struct _GeisSliceState),
1453 geis_bag_default_init_alloc,
1454 geis_bag_default_growth_factor);
1451 if (!gbe->slice_states)1455 if (!gbe->slice_states)
1452 {1456 {
1453 geis_error("failed to create slice times store");1457 geis_error("failed to create slice times store");
14541458
=== modified file 'libgeis/geis_subscription.c'
--- libgeis/geis_subscription.c 2012-12-04 12:39:16 +0000
+++ libgeis/geis_subscription.c 2016-01-26 15:37:29 +0000
@@ -238,8 +238,10 @@
238 for (i = 0; i < bag->sub_store_size; ++i)238 for (i = 0; i < bag->sub_store_size; ++i)
239 {239 {
240 if (bag->sub_store[i])240 if (bag->sub_store[i])
241 {
241 _subscription_unref(bag->sub_store[i]);242 _subscription_unref(bag->sub_store[i]);
242 bag->sub_store[i] = NULL;243 bag->sub_store[i] = NULL;
244 }
243 }245 }
244}246}
245247
246248
=== modified file 'libs/geis-util/geis_bag.h'
--- libs/geis-util/geis_bag.h 2011-12-21 17:35:47 +0000
+++ libs/geis-util/geis_bag.h 2016-01-26 15:37:29 +0000
@@ -52,8 +52,8 @@
52};52};
5353
5454
55static const GeisSize geis_bag_default_init_alloc = 2;55#define geis_bag_default_init_alloc 2
56static const GeisFloat geis_bag_default_growth_factor = 1.5f;56#define geis_bag_default_growth_factor 1.5f
5757
5858
59/**59/**

Subscribers

People subscribed via source and target branches