target-ppc: Fix compiler warning
commit5417d915f6a1cd34501e64e61f7130bb21d6f247
authorStefan Weil <sw@weilnetz.de>
Tue, 17 Jun 2014 17:15:50 +0000 (17 19:15 +0200)
committerStefan Weil <sw@weilnetz.de>
Tue, 17 Jun 2014 17:15:50 +0000 (17 19:15 +0200)
tree93ec5dbb1d4f5a43e2bd91ec6583bdd401169c6a
parent20d7c95a2dbd32751e14ec766a69d3f472c6384b
target-ppc: Fix compiler warning

gcc reports a warning which is usually wrong:

target-ppc/dfp_helper.c: In function ‘dfp_get_digit’:
target-ppc/dfp_helper.c:417:1: warning:
 control reaches end of non-void function [-Wreturn-type]

The compiler shows the warning if assert is not marked with the noreturn
attribute or if the code is compiled with -DNDEBUG.

Using g_assert_not_reached better documents the intention and does not
have these problems.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
target-ppc/dfp_helper.c