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:
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 #if MICROPY_WARNINGS
void mp_warning(const char *msg, ...); void mp_warning(const char *msg, ...);
#else #else
#define mp_warning(msg, ...) #define mp_warning(...)
#endif #endif
#endif // MICROPY_INCLUDED_PY_RUNTIME_H #endif // MICROPY_INCLUDED_PY_RUNTIME_H