1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixed compiler errors and warnings

extra/jemalloc/src/ctl.c:
  Fixed compiler warning
include/mysql/service_logger.h:
  Fixed compile failure with clang compiler
storage/maria/ma_check.c:
  Fixed compiler warning
support-files/compiler_warnings.supp:
  Suppressed warnings in jemalloc
tests/bug25714.c:
  Fixed compiler warning
This commit is contained in:
Michael Widenius
2013-12-02 22:22:43 +02:00
parent 5a8bd446ad
commit bbda717e93
5 changed files with 10 additions and 3 deletions

View File

@@ -1109,7 +1109,7 @@ epoch_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
void *newp, size_t newlen) void *newp, size_t newlen)
{ {
int ret; int ret;
uint64_t newval; uint64_t newval __attribute__((unused));
malloc_mutex_lock(&ctl_mtx); malloc_mutex_lock(&ctl_mtx);
WRITE(newval, uint64_t); WRITE(newval, uint64_t);

View File

@@ -80,7 +80,7 @@ extern struct logger_service_st {
#define logger_rotate(log) (logger_service->rotate(log)) #define logger_rotate(log) (logger_service->rotate(log))
#define logger_vprintf(log, fmt, argptr) (logger_service->\ #define logger_vprintf(log, fmt, argptr) (logger_service->\
vprintf(log, fmt, argptr)) vprintf(log, fmt, argptr))
#define logger_printf logger_service->printf #define logger_printf (*logger_service->printf)
#define logger_write(log, buffer, size) \ #define logger_write(log, buffer, size) \
(logger_service->write(log, buffer, size)) (logger_service->write(log, buffer, size))
#else #else

View File

@@ -1862,6 +1862,8 @@ static int check_block_record(HA_CHECK *param, MARIA_HA *info, int extend,
uint UNINIT_VAR(row_count), real_row_count, empty_space, page_type, bitmap_pattern; uint UNINIT_VAR(row_count), real_row_count, empty_space, page_type, bitmap_pattern;
uint bitmap_for_page; uint bitmap_for_page;
LINT_INIT(empty_space);
if (_ma_killed_ptr(param)) if (_ma_killed_ptr(param))
{ {
_ma_scan_end_block_record(info); _ma_scan_end_block_record(info);

View File

@@ -160,6 +160,11 @@ include/pwdbased\.hpp: comparison of unsigned expression
/usr/include/sys/feature_tests.h : this is the location of the previous definition /usr/include/sys/feature_tests.h : this is the location of the previous definition
.*auth_pam\.c : initialization from incompatible pointer type : 100-200 .*auth_pam\.c : initialization from incompatible pointer type : 100-200
#
# jemalloc
#
jemalloc/src/jemalloc\.c: always_inline function might not be inlinable
# #
# Unexplanable (?) stuff # Unexplanable (?) stuff
# #

View File

@@ -23,7 +23,7 @@
int main (int argc, char **argv) int main (int argc, char **argv)
{ {
MYSQL conn; MYSQL conn;
int OK; int OK __attribute__((unused));
const char* query4= "INSERT INTO federated.t1 SET Value=54"; const char* query4= "INSERT INTO federated.t1 SET Value=54";
const char* query5= "INSERT INTO federated.t1 SET Value=55"; const char* query5= "INSERT INTO federated.t1 SET Value=55";