diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-03 18:28:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-03 18:28:32 +0300 |
commit | 7b350fbf497d737c12cc03ddd888bb6a0ee486e4 (patch) | |
tree | 55902d4e252f365f511137d4022670ccfad59a62 /src | |
parent | 33e4f2773b43a04b388a5769d65d9173acdc992d (diff) | |
download | hercules-7b350fbf497d737c12cc03ddd888bb6a0ee486e4.tar.gz hercules-7b350fbf497d737c12cc03ddd888bb6a0ee486e4.tar.bz2 hercules-7b350fbf497d737c12cc03ddd888bb6a0ee486e4.tar.xz hercules-7b350fbf497d737c12cc03ddd888bb6a0ee486e4.zip |
Replace all warnings to errors if build bot configure option enabled.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/showmsg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/showmsg.h b/src/common/showmsg.h index 7b48d0df2..303c8dd28 100644 --- a/src/common/showmsg.h +++ b/src/common/showmsg.h @@ -130,7 +130,11 @@ struct showmsg_interface { #define ShowSQL(fmt, ...) (showmsg->showSQL((fmt), ##__VA_ARGS__)) #define ShowInfo(fmt, ...) (showmsg->showInfo((fmt), ##__VA_ARGS__)) #define ShowNotice(fmt, ...) (showmsg->showNotice((fmt), ##__VA_ARGS__)) +#ifdef BUILDBOT +#define ShowWarning(fmt, ...) (showmsg->showError((fmt), ##__VA_ARGS__)) +#else // BUILDBOT #define ShowWarning(fmt, ...) (showmsg->showWarning((fmt), ##__VA_ARGS__)) +#endif // BUILDBOT #define ShowDebug(fmt, ...) (showmsg->showDebug((fmt), ##__VA_ARGS__)) #define ShowError(fmt, ...) (showmsg->showError((fmt), ##__VA_ARGS__)) #define ShowFatalError(fmt, ...) (showmsg->showFatalError((fmt), ##__VA_ARGS__)) |