warning during compilation. passing argument 1 of ‘buf_page_get_mutex’ from incompatible pointer type.

Bug #317582 reported by Evgeniy Firsov
2
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_get_mutex’ from incompatible pointer type
buf/buf0buf.c:1914: warning: passing argument 1 of ‘buf_page_get_mutex’ from incompatible pointer type
buf/buf0buf.c:1983: warning: passing argument 1 of ‘buf_page_get_mutex’ from incompatible pointer type
buf/buf0buf.c:2004: warning: passing argument 1 of ‘buf_page_get_mutex’ from incompatible pointer type

Solution: block should be changed to &block->page

Revision history for this message
Yasufumi Kinoshita (yasufumi-kinoshita) wrote :

I think it is not bug for now.
Because it is easy to read correspondence of the pointer type conversion.

(e.g.)
===(patched code)===
   block_mutex = buf_page_get_mutex((buf_page_t*)block);

===(original code)===
(in buf_page_get_mutex)
  return(&((buf_block_t*) bpage)->mutex);

Changed in percona-xtradb:
assignee: nobody → yasufumi-kinoshita
importance: Undecided → Low
status: New → Won't Fix
status: Won't Fix → Confirmed
Revision history for this message
Yasufumi Kinoshita (yasufumi-kinoshita) wrote :

The warning is not seen at the current version.

Changed in percona-xtradb:
status: Confirmed → Fix Released
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.