GCC 4.6 warnings

Bug #878164 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Undecided
Laurynas Biveinis
5.1
Fix Released
Undecided
Laurynas Biveinis
5.5
Fix Released
Undecided
Laurynas Biveinis

Bug Description

GCC 4.6 has expanded diagnostics. New warnings reported:

Probably related to the dynamic row format patch:

/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_delete.c: In function ‘heap_delete’:
/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_delete.c:25:8: warning: variable ‘rec_length’ set but not used [-Wunused-but-set-variable]

/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_write.c: In function ‘heap_write’:
/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_write.c:37:8: warning: variable ‘rec_length’ set but not used [-Wunused-but-set-variable]
/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_update.c: In function ‘heap_update’:
/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_update.c:26:20: warning: variable ‘new_length’ set but not used [-Wunused-but-set-variable]
/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_update.c:26:8: warning: variable ‘old_length’ set but not used [-Wunused-but-set-variable]

/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_test2.c: In function ‘main’:
/home/laurynas/percona/src/percona-server/Percona-Server/storage/heap/hp_test2.c:48:8: warning: variable ‘mem_per_keys’ set but not used [-Wunused-but-set-variable]

Probably related to the slow query log patches (or upstream):

/home/laurynas/percona/src/percona-server/Percona-Server/sql/log.cc: In member function ‘bool LOGGER::slow_log_print(THD*, const char*, uint, ulonglong)’:
/home/laurynas/percona/src/percona-server/Percona-Server/sql/log.cc:1212:12: warning: variable ‘current_time’ set but not used [-Wunused-but-set-variable]

Related branches

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Regressed:

- sql/log.cc: In function ‘void mysql_bin_log_commit_pos(THD*, ulonglong*, const char**)’:
  sql/log.cc:7116:15: error: converting to non-pointer type ‘ulonglong
  {aka long long unsigned int}’ from NULL [-Werror=conversion-null]

- storage/innobase/btr/btr0sea.c: In function
  ‘btr_search_drop_page_hash_index’:
  storage/innobase/btr/btr0sea.c:1070:16: error: unused parameter
  ‘index_in’ [-Werror=unused-parameter]

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

storage/innobase/buf/buf0buf.c: In function ‘buf_pool_watch_set’:
storage/innobase/buf/buf0buf.c:1607: warning: ‘block_mutex’ may be used uninitialized in this function

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2699

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.