diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-08-11 23:25:46 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-08-13 13:29:03 +0200 |
commit | 0c5db07cd6cc3c19b926da21a46599f97592b20f (patch) | |
tree | 7f9e731067e7bc75524837b04ab245e3300ee18b /kernel | |
parent | c851dc13108021834533094a8a3236da6d9e0161 (diff) | |
download | yosys-0c5db07cd6cc3c19b926da21a46599f97592b20f.tar.gz yosys-0c5db07cd6cc3c19b926da21a46599f97592b20f.tar.bz2 yosys-0c5db07cd6cc3c19b926da21a46599f97592b20f.zip |
Fix various NDEBUG compiler warnings, closes #1255
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/log.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/log.h b/kernel/log.h index 3e1facae8..5f53f533a 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -91,7 +91,7 @@ YS_NORETURN void log_cmd_error(const char *format, ...) YS_ATTRIBUTE(format(prin static inline bool ys_debug(int n = 0) { if (log_force_debug) return true; log_debug_suppressed += n; return false; } # define log_debug(...) do { if (ys_debug(1)) log(__VA_ARGS__); } while (0) #else -static inline bool ys_debug(int n = 0) { return false; } +static inline bool ys_debug(int = 0) { return false; } # define log_debug(_fmt, ...) do { } while (0) #endif |