• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
clang warning about printf type errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: clang warning about printf type errors?
      • From: "Sean McBride" <email@hidden>
    • Re: clang warning about printf type errors?
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: Slow debugger loading in Xcode 3.1.3
  • Next by Date: Re: clang warning about printf type errors?
  • Previous by thread: Re: Slow debugger loading in Xcode 3.1.3
  • Next by thread: Re: clang warning about printf type errors?
  • Index(es):
    • Date
    • Thread