Broken missing prototypes warning in ObjC?

Uli Kusterer kusterer at gmail.com
Wed Sep 5 08:48:35 PDT 2007


Hi,

  I just encountered a strange problem: I tried to turn on all  
warnings in one of my Cocoa projects, and I also turned on the  
warning about missing function prototypes (not method, function).  
Trouble is, now I get error messages for some functions where I  
*know* that there are prototypes for them. I've tried everything to  
get rid of these erroneous warnings. I copied the signature of the  
function right above the implementation, put a semicolon after it,  
and I still get the warning.

  Has anyone experienced that? I tried it on several Macs at work and  
it happens everywhere there, but only in .m files, not in .c or .cpp  
files. It happens in a fresh Objective C project, even.

  Has anyone heard of this before, or more importantly, found a fix  
for this? It's a rather important warning, and I have a bunch of C  
code that would really benefit from this warning. Alternately, does  
anyone know whether there's a #pragma or so with which I can turn off  
this warning in my ObjC files, so I can still leave it on for the C  
and C++ code?

Cheers,
-- M. Uli Kusterer
http://www.zathras.de





More information about the MacOSX-dev mailing list