← Back to team overview

percona-discussion team mailing list archive

[Bug 317582] Re: warning during compilation. passing argument 1 of ‘buf_page_get_mutex’ from incompatible pointer type.

 

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);

-- 
warning during compilation. passing argument 1 of ‘buf_page_get_mutex’ from incompatible pointer type.
https://bugs.launchpad.net/bugs/317582
You received this bug notification because you are a member of Percona
developers, which is the registrant for Percona-XtraDB.

Status in Percona XtraDB Storage Engine for MySQL: New

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



References