When compiling code that uses DRFL API with -Wpendantic -Wextra -Wall options I get the following warnings:
In file included from GL010116/include/DRFLEx.h:62:0,
GL010116/include/DRFL.h:295:6: warning: extra ‘;’ [-Wpedantic]
};
^
GL010116/include/DRFLEx.h:479:6: warning: extra ‘;’ [-Wpedantic]
};
^
GL010116/include/DRFLEx.h: In member function ‘bool DRAFramework::CDRFLEx::set_safe_stop_reset_type(SAFE_STOP_RESET_TYPE)’:
GL010116/include/DRFLEx.h:650:154: warning: no return statement in function returning non-void [-Wreturn-type]
bool set_safe_stop_reset_type(SAFE_STOP_RESET_TYPE eResetType = SAFE_STOP_RESET_TYPE_DEFAULT) { _set_safe_stop_reset_type(_rbtCtrl, eResetType); }
Is this okay? I think that a missing return statement is not good.
When compiling code that uses DRFL API with
-Wpendantic -Wextra -Wall
options I get the following warnings:Is this okay? I think that a missing return statement is not good.