Closed vishwin closed 1 year ago
Reverting these back to g_return_if_fail
fixes the build.
In your build remove -Werror flag and that should fix it. What platform are you building on
The platform doesn't matter, but I'm on FreeBSD. We use LLVM/Clang, which in recent versions has always been strict about stuff like this no matter the -Werror
. This error is correct no matter how it is sliced, since void
functions are not to return values (but can just return;
ie exit) anyway and the glib macro reflects that.
Hi. Same issue on OpenMandriva with Clang 14. I can confirm that it compile with gcc without any problems.
I think in commit 6501be4983bcff152bb5a6b0b8b9ab7cf3c7c81c the author reverted the fix since it was already fixed beforehand in commit 206a909a30f5905ac25100698d1c6cc4cdfe5d7d
gvc_channel_map_set_balance
,gvc_channel_map_set_fade
andgvc_channel_map_set_lfe
are allvoid
functions yetg_return_val_if_fail (GVC_IS_CHANNEL_MAP (map), NULL);
is in each. This causes the build to fail: