tags:

views:

3237

answers:

3

This is my warning.

Missing sentinel in function call

How i can remove it.

i am using linux & gcc compiler.

+3  A: 

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

qrdl
Actually, googling "C missing sentinel in function call" made me end up here ;)
Martin Andersson
+2  A: 

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.

Michael Gaylord
+1  A: 

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!

kslcam