mariadb/storage/perfschema
Davi Arnaut 71e0ff64f0 Bug#12727287: Maintainer mode compilation fails with gcc 4.6
GCC 4.6 has new -Wunused-but-set-variable flag, which is enabled
by -Wall, that causes GCC to emit a warning whenever a local variable
is assigned to, but otherwise unused (aside from its declaration).

Since the maintainer mode uses -Wall and -Werror, source code which
triggers these warnings will be rejected. That is, these warnings
become hard errors.

The solution is to fix the code which triggers these specific warnings.
In most of the cases, this is a welcome cleanup as code which triggers
this warning is probably dead anyway.

dbug/dbug.c:
  Unused but set.
libmysqld/lib_sql.cc:
  Length is not necessary as the converted error message is always
  null-terminated.
sql/item_func.cc:
  Make get_var_with_binlog private to this compilation unit.
  If a error was raised, do not attempt to evaluate the user
  variable as the statement execution will be interrupted
  anyway.
sql/mysqld.cc:
  Use a void expression to silence the warning. Avoids the use of
  macros that would make the code more unreadable than it already is.
sql/protocol.cc:
  Length is not necessary as the converted error message is always
  null-terminated. Remove unnecessary casts and assignment.
sql/sql_class.h:
  Function is only used in a single compilation unit.
sql/sql_load.cc:
  Only use the variable outside of EMBEDDED_LIBRARY.
storage/innobase/btr/btr0cur.c:
  Do not retrieve field, only the record length is being used.
storage/perfschema/pfs.cc:
  Use a void expression to silence the warning.
tests/mysql_client_test.c:
  Unused but set.
unittest/mysys/lf-t.c:
  Unused but set.
2011-07-07 08:22:43 -03:00
..
unittest Updated/added copyright headers 2011-06-30 17:46:53 +02:00
CMakeLists.txt Bug#55416 Renaming of performance_schema tables for 5.5 2010-08-12 08:08:52 -06:00
ha_perfschema.cc Bug#53696 Performance schema engine violates the PSEA API by calling my_error() 2010-12-01 13:06:41 +01:00
ha_perfschema.h Bug#53696 Performance schema engine violates the PSEA API by calling my_error() 2010-12-01 13:06:41 +01:00
pfs.cc Bug#12727287: Maintainer mode compilation fails with gcc 4.6 2011-07-07 08:22:43 -03:00
pfs.h Fixed Copyright headers in storage/perfschema 2010-07-15 17:44:45 -06:00
pfs_atomic.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
pfs_atomic.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
pfs_check.cc Fixed Copyright headers in storage/perfschema 2010-07-15 17:44:45 -06:00
pfs_column_types.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
pfs_column_values.cc Fixed Copyright headers in storage/perfschema 2010-07-15 17:44:45 -06:00
pfs_column_values.h Fixed Copyright headers in storage/perfschema 2010-07-15 17:44:45 -06:00
pfs_engine_table.cc Bug#58798 SHOW ENGINE PERFORMANCE_SCHEMA STATUS: incorrect table lettercase 2010-12-07 21:00:33 +01:00
pfs_engine_table.h Bug#53148 Remove PFS_readonly_table 2010-07-15 18:06:33 -06:00
pfs_events_waits.cc Bug#55462 Performance schema: reduce the overhead of PFS_events_waits::m_wait_class 2010-08-12 03:51:58 -06:00
pfs_events_waits.h Bug#55462 Performance schema: reduce the overhead of PFS_events_waits::m_wait_class 2010-08-12 03:51:58 -06:00
pfs_global.cc Bug#53566 SHOW ENGINE PERFORMANCE_SCHEMA STATUS reports less memory than really used 2010-07-15 18:28:52 -06:00
pfs_global.h Bug#58003 Segfault on CHECKSUM TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG EXTENDED 2010-11-11 12:34:46 +01:00
pfs_instr.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
pfs_instr.h Bug#58003 Segfault on CHECKSUM TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG EXTENDED 2010-11-11 12:34:46 +01:00
pfs_instr_class.cc Bug#58003 Segfault on CHECKSUM TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG EXTENDED 2010-11-11 12:34:46 +01:00
pfs_instr_class.h Bug#58003 Segfault on CHECKSUM TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG EXTENDED 2010-11-11 12:34:46 +01:00
pfs_lock.h Bug#56760 PFS_lock::allocated_to_free() assert failures on osx10.5-x86-64bit 2010-11-16 09:36:42 +01:00
pfs_server.cc Fixed Copyright headers in storage/perfschema 2010-07-15 17:44:45 -06:00
pfs_server.h Bug#55576 Two perfschema tests failed on mysql-next-mr-innodb PB2 tests 2010-08-24 18:21:43 -06:00
pfs_stat.h Bug# 53874 "SETUP_INSTRUMENTS.TIMED='NO' should not change TIMER_WAIT 2010-08-26 10:45:25 -05:00
pfs_timer.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
pfs_timer.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
table_all_instr.cc Bug#53148 Remove PFS_readonly_table 2010-07-15 18:06:33 -06:00
table_all_instr.h Bug#53148 Remove PFS_readonly_table 2010-07-15 18:06:33 -06:00
table_events_waits.cc Bug#58003 Segfault on CHECKSUM TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG EXTENDED 2010-11-11 12:34:46 +01:00
table_events_waits.h Bug#56761 Segfault on CHECKSUM TABLE performance_schema.EVENTS_WAITS_HISTORY EXTENDED 2010-09-15 12:20:48 -06:00
table_events_waits_summary.cc Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
table_events_waits_summary.h Bug#55416 Renaming of performance_schema tables for 5.5 2010-08-12 08:08:52 -06:00
table_ews_global_by_event_name.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
table_ews_global_by_event_name.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
table_file_instances.cc Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
table_file_instances.h Bug#53148 Remove PFS_readonly_table 2010-07-15 18:06:33 -06:00
table_file_summary.cc Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
table_file_summary.h Bug#53148 Remove PFS_readonly_table 2010-07-15 18:06:33 -06:00
table_performance_timers.cc Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
table_performance_timers.h Bug#53148 Remove PFS_readonly_table 2010-07-15 18:06:33 -06:00
table_setup_consumers.cc Bug#53696 Performance schema engine violates the PSEA API by calling my_error() 2010-12-01 13:06:41 +01:00
table_setup_consumers.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
table_setup_instruments.cc Bug#53696 Performance schema engine violates the PSEA API by calling my_error() 2010-12-01 13:06:41 +01:00
table_setup_instruments.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
table_setup_timers.cc Bug#53696 Performance schema engine violates the PSEA API by calling my_error() 2010-12-01 13:06:41 +01:00
table_setup_timers.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
table_sync_instances.cc Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
table_sync_instances.h Bug#53148 Remove PFS_readonly_table 2010-07-15 18:06:33 -06:00
table_threads.cc Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
table_threads.h Bug#57154 Rename THREADS.ID to THREADS.PROCESSLIST_ID in 5.5 2010-10-06 18:03:27 -06:00