I never use macs or xcode but I need to now in order to build a C++ library for osx and ios. The C++ code builds fine for windows and android but in xcode I get hundreds of these red excmalation mark icons indicating this:
Semantic issue
cast from pointer to smaller type
'int' loses information
Here is an example of a line of code indicating this error
fixturesArray.push_back((int)fixture->GetUserData());
Ive already had an issue building with unused variables and I removed a flag -Werror and this fixed that particular issue. Is there something similar I can do for this issue? I'm assuming the issue is warnings being treated as errors. Here are the other flags that are still there..
-Wall -Wno-long-long -Wno-variadic-macros -DNDEBUG -DDEBUG=0
UPDATE: There were only about 10 or so instances of that error (the other 100's of things were warnings) If I change 'int' to 'int64' in all those cases then I can build. But I dont want to do that, I'm sure it wall cause issues, that is not how the program is supposed to work.
UPDATE2: Also leaving the code the way it is and just removing these flags lets me build
-Wno-long-long