Skip to content
Snippets Groups Projects
Commit 89f657f0 authored by Damien George's avatar Damien George
Browse files

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.
parent aca498c2
Branches
No related tags found
No related merge requests found
...@@ -175,7 +175,7 @@ void mp_native_raise(mp_obj_t o); ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment