LibComponentLogging-Core icon indicating copy to clipboard operation
LibComponentLogging-Core copied to clipboard

Using %s directive in CFString warning in XCode 6.3

Open 4PixelsDev opened this issue 10 years ago • 2 comments

After update to XCode 6.3 the following warning has shown: "Using %s directive in CFString which is being passed as a formatting argument to the formatting CFfunction"

The warning point to # define _lcl_logger(_component, _level, _format, ...) in lcl.h file

4PixelsDev avatar Apr 09 '15 10:04 4PixelsDev

The issue is reproducible in "LibComponentLogging-LogFile-Example project".

4PixelsDev avatar Apr 09 '15 11:04 4PixelsDev

Do you use the NSLog-based logger? It looks like the %s warnings originate from the added fields for component, level, file, function.

aharren avatar Apr 09 '15 22:04 aharren