Use mock_ptr_type() to silence compiler warnings
Unit tests on 32-bit architectures were failing due to "cast to pointer from integer of different size" warnings. mock_ptr_type silences those by first casting to uintptr_t.
This commit is contained in:
@@ -483,7 +483,7 @@ void occupantswin_occupants_all(void) {}
|
||||
// window interface
|
||||
ProfWin* win_create_console(void)
|
||||
{
|
||||
return (ProfWin*)mock();
|
||||
return mock_ptr_type(ProfWin*);
|
||||
}
|
||||
ProfWin* win_create_xmlconsole(void)
|
||||
{
|
||||
@@ -491,7 +491,7 @@ ProfWin* win_create_xmlconsole(void)
|
||||
}
|
||||
ProfWin* win_create_chat(const char * const barejid)
|
||||
{
|
||||
return (ProfWin*)mock();
|
||||
return mock_ptr_type(ProfWin*);
|
||||
}
|
||||
ProfWin* win_create_muc(const char * const roomjid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user