discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: signature error NSPopUpButton with clang


From: Riccardo Mottola
Subject: Re: signature error NSPopUpButton with clang
Date: Thu, 25 Dec 2014 19:26:20 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:34.0) Gecko/20100101 Firefox/34.0 SeaMonkey/2.31

Hi,

Ivan Vučica wrote:
Did you try breaking on libobjc2's objc_selector_type_mismatch()?

http://svn.gna.org/svn/gnustep/libs/libobjc2/trunk/sendmsg2.c
yes, David suggested that too.

The error comes from Finder.m:718

But this is pretty absurd, the line goes as this:
  [[wherePopUp itemAtIndex: SELECTION] setTitle: title];

and SELECTION is a constant:
#define SELECTION 0

if no specifier is given, this should be an integer constant, not an unisgned one! So why the error? Also, I tried casting to (NSInteger) and still get a mismatch warning. It is most probably harmless, but since it is strange I want to understand what's up.

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]