diff options
author | gkodinov/kgeorge@macbook.gmz <> | 2008-03-21 17:23:17 +0200 |
---|---|---|
committer | gkodinov/kgeorge@macbook.gmz <> | 2008-03-21 17:23:17 +0200 |
commit | ff0aac178d8092cc78f77d332b1a68f4100e282c (patch) | |
tree | d2f43f2618b402fbb8989716aacea8b5cb8eb442 /include/my_global.h | |
parent | 3bff5b59c669fa14645fb4705b2406bd2ba0e120 (diff) | |
download | mariadb-git-ff0aac178d8092cc78f77d332b1a68f4100e282c.tar.gz |
Bug #26461: Intrinsic data type bool (1 byte) redefined to BOOL (4 bytes)
The bool data type was redefined to BOOL (4 bytes on windows).
Removed the #define and fixed some of the warnings that were uncovered
by this.
Note that the fix also disables 2 warnings :
4800 : 'type' : forcing value to bool 'true' or 'false' (performance warning)
4805: 'operation' : unsafe mix of type 'type' and type 'type' in operation
These warnings will be handled in a separate bug, as they are performance related or bogus.
Fixed to int the return type of functions that return more than
2 distinct values.
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h index 08877300d8a..f0f33a7de8b 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -980,7 +980,7 @@ typedef int myf; /* Type of MyFlags in my_funcs */ typedef char byte; /* Smallest addressable unit */ #endif typedef char my_bool; /* Small bool */ -#if !defined(bool) && !defined(bool_defined) && (!defined(HAVE_BOOL) || !defined(__cplusplus)) +#if !defined(bool) && (!defined(HAVE_BOOL) || !defined(__cplusplus)) typedef char bool; /* Ordinary boolean values 0 1 */ #endif /* Macros for converting *constants* to the right type */ |