mirror of
https://github.com/Z3Prover/z3
synced 2025-04-16 13:58:45 +00:00
Added return value to bool-typed function
It seems that without this, the build fails with a default Visual C++ on Windows; see https://docs.microsoft.com/en-gb/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4716 Another option would be to add the #pragma directive mentioned there.
This commit is contained in:
parent
c5a282dadb
commit
d6a3afd2a1
|
@ -51,7 +51,8 @@ void finalize_trace();
|
|||
static inline void enable_trace(const char * tag) {}
|
||||
static inline void enable_all_trace(bool flag) {}
|
||||
static inline void disable_trace(const char * tag) {}
|
||||
static inline bool is_trace_enabled(const char * tag) {}
|
||||
// On a default Visual C++ build on Windows, a non-void function either needs to return a value, or we have to add: #pragma warning(default:4716)
|
||||
static inline bool is_trace_enabled(const char * tag) { return false; }
|
||||
static inline void close_trace() {}
|
||||
static inline void open_trace() {}
|
||||
static inline void finalize_trace() {}
|
||||
|
|
Loading…
Reference in a new issue