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.
pull/1/head
Damien George 2017-09-13 20:33:55 +10:00
parent aca498c2b0
commit 89f657f073
1 changed files with 1 additions and 1 deletions

View File

@ -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