compiler warnings for 5.1.47-rel11.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Undecided
|
Oleg Tsarev |
Bug Description
I built 5.1.470-rel11.2 from source. The build server is centos 5.2 using gcc 4.1.2
Configured it with:
./configure --enable-
There are many compiler warnings in storage/
btr/btr0btr.c:2928: warning: null argument where non-null required (argument 1)
btr/btr0cur.c:1834: warning: null argument where non-null required (argument 2)
btr/btr0cur.c:1853: warning: null argument where non-null required (argument 1)
btr/btr0cur.c:1960: warning: null argument where non-null required (argument 1)
btr/btr0cur.c:3415: warning: unused variable ‘j’
buf/buf0buf.c:3526: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘unsigned int’
buf/buf0buf.c:81: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 4 has type ‘int’
buf/buf0buf.c:82: warning: comparison is always false due to limited range of data type
buf/buf0buf.c:83: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 4 has type ‘int’
fil/fil0fil.c:3125: warning: pointer targets in passing argument 2 of ‘dict_table_
fil/fil0fil.c:3149: warning: unknown conversion type character ‘:’ in format
fil/fil0fil.c:3239: warning: implicit declaration of function ‘row_get_
fil/fil0fil.c:3326: warning: implicit declaration of function ‘que_eval_sql’
fsp/fsp0fsp.
handler/
handler/
ibuf/ibuf0ibuf.
ibuf/ibuf0ibuf.
./include/
log/log0recv.
os/os0file.c:4188: warning: pointer targets in assignment differ in signedness
../../sql/
../../sql/
../../sql/
srv/srv0srv.c:1121: warning: value computed is not used
srv/srv0srv.c:1151: warning: value computed is not used
srv/srv0srv.c:1358: warning: value computed is not used
srv/srv0srv.c:1851: warning: unused variable ‘io_counter_
sync/sync0sync.
trx/trx0sys.c:1146: warning: unused variable ‘sys_header’
trx/trx0sys.c:1147: warning: unused variable ‘slot_no’
trx/trx0sys.c:1150: warning: unused variable ‘page_no’
trx/trx0sys.c:1151: warning: unused variable ‘i’
And these are warnings from the sql directory that I think are new. I will guess that some originated in the Google patch.
sql_show.cc:2416: warning: ‘int aggregate_
sql_show.cc:2428: warning: comparison between signed and unsigned integer expressions
sql_show.cc:2479: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘ulong’
sql_show.cc:2479: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘ulong’
sql_show.cc:2499: warning: comparison between signed and unsigned integer expressions
sql_show.cc:2535: warning: comparison between signed and unsigned integer expressions
sql_show.cc:2680: warning: comparison between signed and unsigned integer expressions
sql_show.cc:2723: warning: comparison between signed and unsigned integer expressions
sql_table.cc:1881: warning: ‘alias’ may be used uninitialized in this function
sql_table.cc:1882: warning: ‘path_length’ may be used uninitialized in this function
Changed in percona-server: | |
assignee: | nobody → Oleg Tsarev (tsarev) |
status: | New → In Progress |
Changed in percona-server: | |
milestone: | none → 5.1-12.0 |
Changed in percona-server: | |
status: | In Progress → Fix Committed |
Changed in percona-server: | |
status: | Fix Committed → Fix Released |
Confirmed