diff options
author | Leesoo Ahn <yisooan@fedoraproject.org> | 2019-05-21 13:10:37 +0900 |
---|---|---|
committer | Leesoo Ahn <yisooan@fedoraproject.org> | 2019-05-21 13:10:37 +0900 |
commit | 76fec04362bd7ddaf4e77aeb2571dbaaaa9ddd40 (patch) | |
tree | a3d56eaa8ed090eb3bcbe816dd80a11479da342c | |
parent | cadf08bdc119259762c5a5093e89235fa60c43c2 (diff) | |
download | libgfbgraph-76fec04362bd7ddaf4e77aeb2571dbaaaa9ddd40.tar.gz |
tests/gtestutils: Replace unused attribute with G_GNUC_UNUSED macro
The macro will do nothing if a compiler doesn't support the GNU
compiler extension instead of raising an error.
-rw-r--r-- | tests/gtestutils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gtestutils.c b/tests/gtestutils.c index af76870..7fd8d78 100644 --- a/tests/gtestutils.c +++ b/tests/gtestutils.c @@ -174,7 +174,7 @@ gfbgraph_test_fixture_setup (GFBGraphTestFixture *fixture, gconstpointer user_da } static void -gfbgraph_test_fixture_teardown (GFBGraphTestFixture *fixture, __attribute__ ((unused)) gconstpointer user_data) +gfbgraph_test_fixture_teardown (GFBGraphTestFixture *fixture, G_GNUC_UNUSED gconstpointer user_data) { SoupSession *ssession; SoupMessage *smessage; @@ -199,7 +199,7 @@ gfbgraph_test_fixture_teardown (GFBGraphTestFixture *fixture, __attribute__ ((un } static void -gfbgraph_test_me (GFBGraphTestFixture *fixture, __attribute__ ((unused)) gconstpointer user_data) +gfbgraph_test_me (GFBGraphTestFixture *fixture, G_GNUC_UNUSED gconstpointer user_data) { GFBGraphUser *me; GError *error = NULL; @@ -216,7 +216,7 @@ gfbgraph_test_me (GFBGraphTestFixture *fixture, __attribute__ ((unused)) gconstp } static void -gfbgraph_test_album (GFBGraphTestFixture *fixture, __attribute__ ((unused)) gconstpointer user_data) +gfbgraph_test_album (GFBGraphTestFixture *fixture, G_GNUC_UNUSED gconstpointer user_data) { GFBGraphUser *me; GFBGraphAlbum *album; |