This is my warning.
Missing sentinel in function call
How i can remove it.
i am using linux & gcc compiler.
This is my warning.
Missing sentinel in function call
How i can remove it.
i am using linux & gcc compiler.
Google is your friend.
First hit for "missing sentinel in function call": http://www.linuxonly.nl/docs/2/2_GCC_4_warnings_about_sentinels.html
It looks like you may not have terminated an array declaration with nil
. Without the nil you may have some memory weirdness as the runtime won't know where the array ends and the next bit of memory starts.
In Xcode if you are coding in objective-c and you are using some methods which take variable parameter list, you need to add nil object at the end of the list.
For example:
N**SArray names = [NSArray arrayWithObjects: @"Name1", @"Name2"];* //will result in the warning mentioned above
However, NSArray *names = [NSArray arrayWithObjects: @"Name1", @"Name2", nil]; //Correct
Hope this will help!