[cfe-commits] [PATCH] Strftime and "non literal format"

Jean-Daniel Dupas devlists at shadowlab.org
Mon Feb 6 16:05:42 PST 2012


ping


Le 2 févr. 2012 à 10:28, Jean-Daniel Dupas a écrit :

> Hi,
> 
> I'm wondering if it is right to emit warnings when using a non literal string in strftime function.
> Unlike other format functions, this one takes only 1 single mandatory argument that represents the time we want to format.
> So, unlike other format functions, it should not be 'unsafe' to pass an arbitrary string.
> 
> Here is a patch that disable this warning for strftime format.
> 
> What do you think about it ? 
> 
> Thanks
> 
> -- Jean-Daniel
> 
> 
> 
> <strftime.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

-- Jean-Daniel



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2-strftime.patch
Type: application/octet-stream
Size: 1483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120207/ea4b52ea/attachment.obj>


More information about the cfe-commits mailing list