diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-09-16 18:34:11 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-09-16 18:34:11 +0200 |
commit | bcf39eb79a8252b9f9b0c31311c7951abc8520ee (patch) | |
tree | 55d795f06769134601f017f50d505a6c8904d398 /src/utilities | |
parent | 163474e17193268f9f29eebda6b264d1a951b4ee (diff) |
Fixed a compilation error and warning under MacOS
Diffstat (limited to 'src/utilities')
-rw-r--r-- | src/utilities/utilities.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/utilities/utilities.hpp b/src/utilities/utilities.hpp index 1ba3ab03..e45c606c 100644 --- a/src/utilities/utilities.hpp +++ b/src/utilities/utilities.hpp @@ -123,11 +123,14 @@ constexpr auto kBufScalar = "Scalar"; // ================================================================================================= +#ifdef VERBOSE inline void log_debug(const std::string &log_string) { - #ifdef VERBOSE - printf("[DEBUG] %s\n", log_string.c_str()); - #endif + printf("[DEBUG] %s\n", log_string.c_str()); } +#else +inline void log_debug(const std::string&) { } +#endif + // ================================================================================================= |