test: use g_assert_not_reached () instead of asserting FALSE
authorLubomir Rintel <lkundrak@v3.sk>
Fri, 12 Feb 2016 08:05:27 +0000 (09:05 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Fri, 12 Feb 2016 08:05:27 +0000 (09:05 +0100)
commit4c3e69f9e91fdecbbcc657e03bec7d7fc086cd1a
tree8a8c4723e116c90da09f2ae24ced4d9cd2cac78f
parent87edaa2a429a63cb1813fa39363b22d6940702af
test: use g_assert_not_reached () instead of asserting FALSE

It's declared as never returning, making do a better at understanding control
flow. Otherwise it makes a poor guess:

  In file included from test-crypto.c:37:
  ../../shared/nm-test-utils.h:1344:3: error: variable 'family' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
                  g_assert (FALSE);
                  ^~~~~~~~~~~~~~~~
shared/nm-test-utils.h