Merge lp:~3v1n0/compiz/fttb-wily-unused-var into lp:compiz/0.9.12

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Andrea Azzarone
Approved revision: 3978
Merged at revision: 3978
Proposed branch: lp:~3v1n0/compiz/fttb-wily-unused-var
Merge into: lp:compiz/0.9.12
Diff against target: 11 lines (+1/-1)
1 file modified
src/privatescreen/tests/test-privatescreen.cpp (+1/-1)
To merge this branch: bzr merge lp:~3v1n0/compiz/fttb-wily-unused-var
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Andrea Azzarone Approve
Review via email: mp+272194@code.launchpad.net

Commit message

TestPrivateScreen: ignore unused init const.

That's just a workaround to call a static function, so we don't care about the result.

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) :
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
1=== modified file 'src/privatescreen/tests/test-privatescreen.cpp'
2--- src/privatescreen/tests/test-privatescreen.cpp 2014-12-02 18:08:41 +0000
3+++ src/privatescreen/tests/test-privatescreen.cpp 2015-09-23 23:21:27 +0000
4@@ -352,7 +352,7 @@
5 // tell GLib not to use the slice-allocator implementation
6 // and avoid spurious valgrind reporting
7 void glib_nice_for_valgrind() { setenv("G_SLICE", "always-malloc", true); }
8-int const init = (glib_nice_for_valgrind(), 0);
9+__attribute__((unused)) int const init = (glib_nice_for_valgrind(), 0);
10
11 PluginFilesystem const* PluginFilesystem::instance = 0;
12

Subscribers

People subscribed via source and target branches