Compiler warnings with GCC 4.6 on oneiric hosts

Bug #902467 reported by Alexey Kopytov
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

Bug Description

Debug 5.1 builds fail on Ubuntu OneiricOcelot hosts in Jenkins due to new warnings resulting from -Werror=unused-but-set-variable:

os/os0file.c: In function ‘os_aio_simulated_wake_handler_thread’:
os/os0file.c:3596:9: error: variable ‘segment’ set but not used [-Werror=unused-but-set-variable]
os/os0file.c: In function ‘os_aio_simulated_handle’:
os/os0file.c:4081:9: error: variable ‘segment’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

http://jenkins.percona.com/view/Percona%20Server%205.1/job/percona-server-5.1-param/211/BUILD_TYPE=debug,Host=ubuntu-oneiric-32bit/console

Related branches

Changed in percona-server:
status: New → Confirmed
Changed in percona-server:
assignee: nobody → Laurynas Biveinis (laurynas-biveinis)
Changed in percona-server:
status: Confirmed → In Progress
Changed in percona-server:
status: In Progress → Fix Committed
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

The next issue:
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" -DMYSQL_DATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DPLUGINDIR="\"/usr/local/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I../regex -I. -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror -Wno-unused-parameter -g -DSAFE_MUTEX -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.cc
log.cc: In member function ‘bool LOGGER::slow_log_print(THD*, const char*, uint, ulonglong)’:
log.cc:998:12: error: variable ‘current_time’ set but not used [-Werror=unused-but-set-variable]

Changed in percona-server:
status: Fix Committed → In Progress
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" -DMYSQL_DATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DPLUGINDIR="\"/usr/local/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I../regex -I. -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror -Wno-unused-parameter -g -O -DSAFE_MUTEX -fno-implicit-templates -fno-exceptions -fno-rtti -MT sql_analyse.o -MD -MP -MF .deps/sql_analyse.Tpo -c -o sql_analyse.o sql_analyse.cc
sql_show.cc: In function ‘int store_create_info(THD*, TABLE_LIST*, String*, HA_CREATE_INFO*, bool)’:
sql_show.cc:1254:8: error: variable ‘show_table_options’ set but not used [-Werror=unused-but-set-variable]

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Uh, we should build with "make -k".

Changed in percona-server:
status: In Progress → Fix Committed
Changed in percona-server:
status: Fix Committed → Fix Released
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-2713

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.