Commit 448597ca authored by unknown's avatar unknown

Fix netware compile failure

Remove other warnings about unused variables

parent bd18a1ad
...@@ -1087,12 +1087,13 @@ my_bool is_const_init(UDF_INIT *initid, UDF_ARGS *args, char *message) ...@@ -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"); strmov(message, "IS_CONST accepts only one argument");
return 1; return 1;
} }
initid->ptr= (args->args[0] != NULL) ? 1 : 0; initid->ptr= (char*)((args->args[0] != NULL) ? 1 : 0);
return 0; return 0;
} }
char * is_const(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long char * is_const(UDF_INIT *initid, UDF_ARGS *args __attribute__((unused)),
*length, char *is_null, char *error) char *result, unsigned long *length,
char *is_null, char *error __attribute__((unused)))
{ {
if (initid->ptr != 0) { if (initid->ptr != 0) {
sprintf(result, "const"); sprintf(result, "const");
......
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