clang warning about printf type errors?
clang warning about printf type errors?
- Subject: clang warning about printf type errors?
- From: Daniel Quinlan <email@hidden>
- Date: Mon, 1 Mar 2010 15:05:21 -0700
Is there any way to get clang to complain about mismatched arguments in printf style statements, for example where %d is specified,
but the corresponding argument is long?
Solaris lint does this, and also allows declaring other functions to be like printf, e.g.
> /*PRINTFLIKE2*/
> extern void elog_log ( int flag, char *format, ... );
>
We're trying to move away from Sun after their demise (in the workstation market at least) but this is one of the few places where I
haven't found any reasonable replacement for a Sun tool.
-- danq
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden