diff options
author | monty@mysql.com/nosik.monty.fi <> | 2006-11-27 18:16:08 +0200 |
---|---|---|
committer | monty@mysql.com/nosik.monty.fi <> | 2006-11-27 18:16:08 +0200 |
commit | 0e149b717029cf5ee5b34b3f7c5249cc534a3e1c (patch) | |
tree | 20c7910ad3251fb39027f6528cd4c0524220a1a0 /sql/parse_file.h | |
parent | 313f23a93af801ca368fd5f3123f952ab2b8da68 (diff) | |
download | mariadb-git-0e149b717029cf5ee5b34b3f7c5249cc534a3e1c.tar.gz |
Removed compiler warnings
Ensure that my_size_t is always unsigned (to get predictiable results from system to system)
Removed some %lld, as these are not portable
Diffstat (limited to 'sql/parse_file.h')
-rw-r--r-- | sql/parse_file.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sql/parse_file.h b/sql/parse_file.h index 5fb65b4c7ec..0a02bf7eb75 100644 --- a/sql/parse_file.h +++ b/sql/parse_file.h @@ -106,21 +106,4 @@ public: MEM_ROOT *mem_root, bool bad_format_errors); }; - - -/* - Custom version of standard offsetof() macro which can be used to get - offsets of members in class for non-POD types (according to the current - version of C++ standard offsetof() macro can't be used in such cases and - attempt to do so causes warnings to be emitted, OTOH in many cases it is - still OK to assume that all instances of the class has the same offsets - for the same members). - - This is temporary solution which should be removed once File_parser class - and related routines are refactored. -*/ - -#define my_offsetof(TYPE, MEMBER) \ - ((size_t)((char *)&(((TYPE *)0x10)->MEMBER) - (char*)0x10)) - #endif /* _PARSE_FILE_H_ */ |