google / cmockery

A lightweight library to simplify and generalize the process of writing unit tests for C applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

free_symbol_map_value casts pointer to smaller integral type on LP64 platforms

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Compile on LP64 platform such as Mac OS X or Linux on x86_64
2. Observed compiler warning messages.

What is the expected output? 

No warnings.

What do you see instead?

/Users/smb/src/cmockery-staging/osx/../src/cmockery.c: In function 
'free_symbol_map_value':
/Users/smb/src/cmockery-staging/osx/../src/cmockery.c:474: warning: cast from 
pointer to 
integer of different size
/Users/smb/src/cmockery-staging/osx/../src/cmockery.c:478: warning: cast to 
pointer from 
integer of different size


What version of the product are you using? On what operating system?


Please provide any additional information below.



Original issue reported on code.google.com by Stephen....@gmail.com on 2 Mar 2010 at 1:48