diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-30 17:33:10 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-30 17:33:10 -0300 |
commit | 9899e690f06e275e8c7b2e39dba96b46701fd949 (patch) | |
tree | 1a9767a3084652e439db979604526e25c1ac24f6 /mysys/stacktrace.c | |
parent | 655d913bfcda4155a8158fd311bf8dd72f3bee92 (diff) | |
download | mariadb-git-9899e690f06e275e8c7b2e39dba96b46701fd949.tar.gz |
Bug#45288: pb2 returns a lot of compilation warnings on linux
Fix compiler warnings.
mysys/stacktrace.c:
Tag unused parameters.
sql/sql_lex.cc:
Variable becomes unused in non-debug builds. Also, no need to
assert the obvious.
Diffstat (limited to 'mysys/stacktrace.c')
-rw-r--r-- | mysys/stacktrace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mysys/stacktrace.c b/mysys/stacktrace.c index 75fda93b56e..7bac8017324 100644 --- a/mysys/stacktrace.c +++ b/mysys/stacktrace.c @@ -86,7 +86,9 @@ void my_print_stacktrace(uchar* stack_bottom __attribute__((unused)), #if BACKTRACE_DEMANGLE -char __attribute__ ((weak)) *my_demangle(const char *mangled_name, int *status) +char __attribute__ ((weak)) * +my_demangle(const char *mangled_name __attribute__((unused)), + int *status __attribute__((unused))) { return NULL; } |