diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2013-01-08 17:07:47 +0530 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-01-09 11:13:59 +0200 |
commit | 4c4872c0bd2d36ef7e87afa89cfe9d34722679bc (patch) | |
tree | d0d4537912326b92c733250ea89552953ef030e3 /unit/test-mgmt.c | |
parent | c112d459c6c952e1c63941fb7a6ab38766cd4870 (diff) | |
download | bluez-4c4872c0bd2d36ef7e87afa89cfe9d34722679bc.tar.gz |
unit: Replace g_test_fail() with g_assert_not_reached()
g_test_fail() is introduced in Glib v2.30 and we are using Glib v2.28 as
the minimum requirement for the build. This patch resolves the
compilation error that happen with Glib v2.28.
Error log:
CC unit/test-mgmt.o
unit/test-mgmt.c: In function ‘check_actions’:
unit/test-mgmt.c:100:2: error: implicit declaration of
function ‘g_test_fail’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [unit/test-mgmt.o] Error 1
make: *** [all] Error 2
Diffstat (limited to 'unit/test-mgmt.c')
-rw-r--r-- | unit/test-mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit/test-mgmt.c b/unit/test-mgmt.c index 2d1a5d66b..f9dcb007c 100644 --- a/unit/test-mgmt.c +++ b/unit/test-mgmt.c @@ -97,7 +97,7 @@ static void check_actions(struct context *context, } g_test_message("Command not handled\n"); - g_test_fail(); + g_assert_not_reached(); } static gboolean server_handler(GIOChannel *channel, GIOCondition cond, |