The reasons of this warning are -DNDEBUG and -Wall.
I don't want to build it without -Wall(I want to get all dangerous warnings).
I can add a fictive usage of "status", for exampe
1 2 3 4 5
{
bool status = func_call();
assert(status);
(void)status;
}
Can anyone help me to give a 'beautiful' solution to this problem?