Closed pprindeville closed 7 months ago
Hmm... it's going to complain in a lot of places that the format string is empty, even though that's valid C...
In what way complain?
In what way complain?
In file included from ../../lib/clixon/clixon.h:79,
from netconf_rpc.c:71:
netconf_rpc.c: In function ‘netconf_notification_cb’:
netconf_rpc.c:462:37: warning: zero-length gnu_printf format string [-Wformat-zero-length]
462 | clixon_debug(CLIXON_DBG_CLIENT, "");
| ^~
../../lib/clixon/clixon_debug.h:68:97: note: in definition of macro ‘clixon_debug’
68 | #define clixon_debug(l, _fmt, args...) clixon_debug_fn(NULL, __FUNCTION__, __LINE__, (l), NULL, _fmt, ##args)
| ^~~~
Okay, fixed the warnings by using _Pragma()
expansions as part of the macro.
Trying to copy what
clixon_log_fn()
does.