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:
@@ -1109,7 +1109,7 @@ epoch_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
|
||||
void *newp, size_t newlen)
|
||||
{
|
||||
int ret;
|
||||
uint64_t newval;
|
||||
uint64_t newval __attribute__((unused));
|
||||
|
||||
malloc_mutex_lock(&ctl_mtx);
|
||||
WRITE(newval, uint64_t);
|
||||
|
@@ -80,7 +80,7 @@ extern struct logger_service_st {
|
||||
#define logger_rotate(log) (logger_service->rotate(log))
|
||||
#define logger_vprintf(log, fmt, argptr) (logger_service->\
|
||||
vprintf(log, fmt, argptr))
|
||||
#define logger_printf logger_service->printf
|
||||
#define logger_printf (*logger_service->printf)
|
||||
#define logger_write(log, buffer, size) \
|
||||
(logger_service->write(log, buffer, size))
|
||||
#else
|
||||
|
@@ -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 bitmap_for_page;
|
||||
|
||||
LINT_INIT(empty_space);
|
||||
|
||||
if (_ma_killed_ptr(param))
|
||||
{
|
||||
_ma_scan_end_block_record(info);
|
||||
|
@@ -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
|
||||
.*auth_pam\.c : initialization from incompatible pointer type : 100-200
|
||||
|
||||
#
|
||||
# jemalloc
|
||||
#
|
||||
jemalloc/src/jemalloc\.c: always_inline function might not be inlinable
|
||||
|
||||
#
|
||||
# Unexplanable (?) stuff
|
||||
#
|
||||
|
@@ -23,7 +23,7 @@
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
MYSQL conn;
|
||||
int OK;
|
||||
int OK __attribute__((unused));
|
||||
|
||||
const char* query4= "INSERT INTO federated.t1 SET Value=54";
|
||||
const char* query5= "INSERT INTO federated.t1 SET Value=55";
|
||||
|
Reference in New Issue
Block a user