warning during compilation. passing argument 1 of ‘buf_page_get_mutex’ from incompatible pointer type.
Bug #317582 reported by
Evgeniy Firsov
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona-XtraDB |
Fix Released
|
Low
|
Unassigned |
Bug Description
buf/buf0buf.c: In function ‘buf_page_get_gen’:
buf/buf0buf.c:1885: warning: passing argument 1 of ‘buf_page_
buf/buf0buf.c:1914: warning: passing argument 1 of ‘buf_page_
buf/buf0buf.c:1983: warning: passing argument 1 of ‘buf_page_
buf/buf0buf.c:2004: warning: passing argument 1 of ‘buf_page_
Solution: block should be changed to &block->page
Changed in percona-xtradb: | |
assignee: | nobody → yasufumi-kinoshita |
importance: | Undecided → Low |
status: | New → Won't Fix |
status: | Won't Fix → Confirmed |
To post a comment you must log in.
I think it is not bug for now.
Because it is easy to read correspondence of the pointer type conversion.
(e.g.) get_mutex( (buf_page_ t*)block) ;
===(patched code)===
block_mutex = buf_page_
===(original code)=== &((buf_ block_t* ) bpage)->mutex);
(in buf_page_get_mutex)
return(