Game Development Community

xcode warning

by christian jouve · in iTorque 2D · 10/01/2011 (2:13 am) · 3 replies

hi y have bought iTorque 2D 1.5 and when y try a demo projects, y have more than +999 WARNINGS in Xcode 4.

Y use , macbook pro, Lion, xcode 4.1Build 4B110.

Thanks for your help.

#1
10/01/2011 (6:09 am)
@christian - You are in debug mode, which has all warnings turned on. This is mainly due to a C++ macro that Xcode does not like. If you switch to release mode, most of the warnings will go away.
#2
10/03/2011 (5:26 am)
Hi, thanks for your answer.
However i always have the same number of warning in release mode.
Could you precise exactly what y have to do to solve this problem...
#3
10/04/2011 (8:03 pm)
I'd like to second the importance of clearing up the warnings - turning off the warnings is not really an option, as that affects any custom code as well. Plus most development would obviously be done using Debug, so having the warnings off in Release doesn't really do much when sifting through 1798 issues for ones related to my code.

Which macro is it? The ones that generate the unused argument warnings?
If so, I see "argc;", "argv;" statements scattered around already in what I guess is an effort to clear it up. Using a macro like:
#define UNUSED(...)
or
#define UNUSED (void)

resulting in something like: "UNUSED( argc, argv );" might work better for a cross-compiler solution.

In other cases, for unused arguments, simply leaving the name of the parameter off will avoid the warning.

Cheers,
Alex.