diff options
author | unknown <monty@mysql.com/narttu.mysql.fi> | 2007-02-22 20:20:49 +0200 |
---|---|---|
committer | unknown <monty@mysql.com/narttu.mysql.fi> | 2007-02-22 20:20:49 +0200 |
commit | 77db97540964830edd35906aa8447d4beb776ad8 (patch) | |
tree | 282a43707215f718f7a0d61080e3cc44269b622d | |
parent | 50bd97a9436afe01606ad0cef323e7bda4d77e9b (diff) | |
download | mariadb-git-77db97540964830edd35906aa8447d4beb776ad8.tar.gz |
Portability fix
Suppress compiler warnings from bdb and (for the moment) warnings from ndb
client/mysqltest.c:
Portability fix for windows (windows doesn't have mode_t)
support-files/compiler_warnings.supp:
Suppress warnings from bdb and (for the moment) warnings from ndb
-rw-r--r-- | client/mysqltest.c | 2 | ||||
-rw-r--r-- | support-files/compiler_warnings.supp | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 616077fea9b..28de470769e 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -1864,7 +1864,7 @@ void do_chmod_file(struct st_command *command) die("You must write a 4 digit octal number for mode"); DBUG_PRINT("info", ("chmod %o %s", (uint)mode, ds_file.str)); - handle_command_error(command, chmod(ds_file.str, (mode_t) mode)); + handle_command_error(command, chmod(ds_file.str, mode)); dynstr_free(&ds_mode); dynstr_free(&ds_file); DBUG_VOID_RETURN; diff --git a/support-files/compiler_warnings.supp b/support-files/compiler_warnings.supp index 9e18bee0f9e..8f5f3408b44 100644 --- a/support-files/compiler_warnings.supp +++ b/support-files/compiler_warnings.supp @@ -5,8 +5,22 @@ DbtupExecQuery.cpp : .*unused variable.* : 1448-1449 sql_yacc.cc : .*switch statement contains 'default' but no 'case' labels.* # +# bdb is not critical to keep up to date +# +.*/bdb/.* : .*discards qualifiers from pointer target type.* +.*/bdb/.* : .*unused parameter.* +.*/bdb/.* : .*may be used uninitialized.* +.*/bdb/.* : .*empty body in an if-statement.* +db_vrfy.c : .*comparison is always false due to limited range of data type.* + +# # Ignore all conversion warnings on windows 64 # (Is safe as we are not yet supporting strings >= 2G) # .* : conversion from 'size_t' to .*int'.* .* : conversion from '__int64' to .*int'.* + +# +# The following should be fixed by the ndb team +# +.*/ndb/.* : .*used uninitialized in this function.* |