py/runtime.h: Change empty mp_warning macro so var-args are non empty.
Variable arguments in a macro should take at least 1 argument.
This commit is contained in:
parent
aca498c2b0
commit
89f657f073
|
@ -175,7 +175,7 @@ void mp_native_raise(mp_obj_t o);
|
|||
#if MICROPY_WARNINGS
|
||||
void mp_warning(const char *msg, ...);
|
||||
#else
|
||||
#define mp_warning(msg, ...)
|
||||
#define mp_warning(...)
|
||||
#endif
|
||||
|
||||
#endif // MICROPY_INCLUDED_PY_RUNTIME_H
|
||||
|
|
Loading…
Reference in New Issue