diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-03-16 19:24:49 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-03-27 22:51:37 +0100 |
commit | f97d879bf890fe1d93c459f46410e2be8d26d3b6 (patch) | |
tree | 948a0951ebc0b32f9ed4b61aebf7143355a7a815 /storage/spider | |
parent | 1a4746e1285bbe03d616310cd49c3548825d5a1a (diff) | |
download | mariadb-git-f97d879bf890fe1d93c459f46410e2be8d26d3b6.tar.gz |
cmake: re-enable -Werror in the maintainer mode
now we can afford it. Fix -Werror errors. Note:
* old gcc is bad at detecting uninit variables, disable it.
* time_t is int or long, cast it for printf's
Diffstat (limited to 'storage/spider')
-rw-r--r-- | storage/spider/spd_table.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/spider/spd_table.cc b/storage/spider/spd_table.cc index 130edc5ee8a..5f7e59b47da 100644 --- a/storage/spider/spd_table.cc +++ b/storage/spider/spd_table.cc @@ -7027,7 +7027,7 @@ int spider_get_sts( int sts_sync_level, uint flag ) { - int get_type; + int get_type __attribute__ ((unused)); int error_num = 0; DBUG_ENTER("spider_get_sts"); @@ -7149,7 +7149,7 @@ int spider_get_crd( #endif int crd_sync_level ) { - int get_type; + int get_type __attribute__ ((unused)); int error_num = 0; DBUG_ENTER("spider_get_crd"); @@ -8379,7 +8379,7 @@ int spider_discover_table_structure( #ifdef WITH_PARTITION_STORAGE_ENGINE partition_info *part_info = thd->work_part_info; #endif - uint str_len; + uint str_len __attribute__ ((unused)); char buf[MAX_FIELD_WIDTH]; spider_string str(buf, sizeof(buf), system_charset_info); DBUG_ENTER("spider_discover_table_structure"); |