diff options
author | msvensson@neptunus.(none) <> | 2006-11-23 20:07:53 +0100 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2006-11-23 20:07:53 +0100 |
commit | c99678df03090bb2e9672c374934d44ca9304860 (patch) | |
tree | d7e006b8ce04790bfaa509060011996475bf7e31 /sql/udf_example.c | |
parent | 8c2efdf4bde0da30f42d63193ab547ba86f1345b (diff) | |
download | mariadb-git-c99678df03090bb2e9672c374934d44ca9304860.tar.gz |
Fix netware compile failure
Remove other warnings about unused variables
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r-- | sql/udf_example.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/udf_example.c b/sql/udf_example.c index a4f7eddd302..bbab47e253d 100644 --- a/sql/udf_example.c +++ b/sql/udf_example.c @@ -1087,12 +1087,13 @@ my_bool is_const_init(UDF_INIT *initid, UDF_ARGS *args, char *message) strmov(message, "IS_CONST accepts only one argument"); return 1; } - initid->ptr= (args->args[0] != NULL) ? 1 : 0; + initid->ptr= (char*)((args->args[0] != NULL) ? 1 : 0); return 0; } -char * is_const(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long - *length, char *is_null, char *error) +char * is_const(UDF_INIT *initid, UDF_ARGS *args __attribute__((unused)), + char *result, unsigned long *length, + char *is_null, char *error __attribute__((unused))) { if (initid->ptr != 0) { sprintf(result, "const"); |