1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix netware compile failure

Remove other warnings about unused variables
This commit is contained in:
unknown
2006-11-23 20:07:53 +01:00
parent bd18a1adfc
commit 448597ca72

View File

@ -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");