Commit be4cea7e authored by Michael Widenius's avatar Michael Widenius

Fixed compiler warnings

sql/rpl_mi.cc:
  Fixed compiler warning
support-files/compiler_warnings.supp:
  Supress warning about offsetof macro. (ok in this case)
parent 1ab7dfe5
...@@ -666,7 +666,8 @@ void create_logfile_name_with_suffix(char *res_file_name, uint length, ...@@ -666,7 +666,8 @@ void create_logfile_name_with_suffix(char *res_file_name, uint length,
length-= (suffix->length - ext_pos); /* Leave place for extension */ length-= (suffix->length - ext_pos); /* Leave place for extension */
p= res_file_name + ext_pos; p= res_file_name + ext_pos;
*p++= '-'; /* Add separator */ *p++= '-'; /* Add separator */
p= strmake(p, res, min(length - (p - res_file_name), res_length)); p= strmake(p, res, min((size_t) (length - (p - res_file_name)),
res_length));
/* Add back extension. We have checked above that there is space for it */ /* Add back extension. We have checked above that there is space for it */
strmov(p, ext); strmov(p, ext);
} }
......
...@@ -193,6 +193,8 @@ ma_packrec\.c : .*result of 32-bit shift implicitly converted to 64 bits.* : 550 ...@@ -193,6 +193,8 @@ ma_packrec\.c : .*result of 32-bit shift implicitly converted to 64 bits.* : 550
# #
.* : .*no matching operator delete found; memory will not be freed if initialization throws an exception.* .* : .*no matching operator delete found; memory will not be freed if initialization throws an exception.*
ctype-simple\.c : .*unary minus operator applied to unsigned type, result still unsigned.* ctype-simple\.c : .*unary minus operator applied to unsigned type, result still unsigned.*
sql/sys_vars\.cc : invalid access to non-static data member
sql/sys_vars\.cc : perhaps the 'offsetof' macro was used incorrectly
# Wrong warning due to GCC bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29478 # Wrong warning due to GCC bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29478
regexec\.c : passing argument 3 of.*matcher.* discards qualifiers from pointer target type regexec\.c : passing argument 3 of.*matcher.* discards qualifiers from pointer target type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment