discuss-gnustep
[Top][All Lists]
Advanced

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

Warning on first NSLog call


From: Rasmus Barringer
Subject: Warning on first NSLog call
Date: Thu, 5 Apr 2012 11:46:29 +0200

Hi,

I am using clang with gnustep-libobjc2 runtime on ubuntu 11.04. I did
not install the full gnustep system as I am only interested in the
Foundation equivalent (gnustep-base-1.24.0). Clang, gnustep-libobjc2
and gnustep-base is compiled from source.

Everything works great apart from a suspicious print when using NSLog
for the first time:

"File NSConcreteMapTable.m: 537. In NSEnumerateMapTable Null table
argument supplied"

Can I fix this somehow?

Here is a full example demonstrating the issue:

#include <Foundation/Foundation.h>
int main() {
 @autoreleasepool {
   NSLog(@"Hello world");
   NSLog(@"Hello world again");
 }
 return 0;
}

Compiled with:

clang libgnustep-base.so.1.24 -fconstant-string-class=NSConstantString
-fobjc-arc -fobjc-nonfragile-abi main.m -o prog

The full output:

2012-04-05 09:44:24.599 prog[2084] File NSConcreteMapTable.m: 537. In
NSEnumerateMapTable Null table argument supplied
2012-04-05 11:44:24.599 prog[2084] Hello world
2012-04-05 11:44:24.600 prog[2084] Hello world again

Thanks in advance,
Rasmus



reply via email to

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