1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

added __attribute__((unused))

This commit is contained in:
Sergei Golubchik
2008-08-29 21:50:04 +02:00
parent 49aa944ffb
commit 2b917502c1
2 changed files with 6 additions and 3 deletions

View File

@ -92,8 +92,11 @@ int (*error_handler_hook)(uint error,const char *str,myf MyFlags)=
int (*fatal_error_handler_hook)(uint error,const char *str,myf MyFlags)=
my_message_no_curses;
static const char *proc_info_dummy(void *a, const char *b, const char *c,
const char *d, const unsigned int e)
static const char *proc_info_dummy(void *a __attribute__((unused)),
const char *b __attribute__((unused)),
const char *c __attribute__((unused)),
const char *d __attribute__((unused)),
const unsigned int e __attribute__((unused)))
{
return 0;
}

View File

@ -51,7 +51,7 @@ void test_concurrently(const char *test, pthread_handler handler, int n, int m)
ok(!bad, "tested %s in %g secs (%d)", test, ((double)now)/1e7, bad);
}
int main(int argc, char **argv)
int main(int argc __attribute__((unused)), char **argv)
{
MY_INIT("thd_template");