Re: [PATCH 4/6] add -Wformat

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

 



On Wed, Apr 03, 2019 at 04:35:50PM +0100, Ben Dooks wrote:
> Add option to enable/disable format checking (and default it to on)

Please, change this to default off (and thus move it before patch 3).

> diff --git a/sparse.1 b/sparse.1
> index 78d0b1e..1bf4e3c 100644
> --- a/sparse.1
> +++ b/sparse.1
> @@ -260,6 +260,15 @@ trouble.
>  Sparse does not issue these warnings by default.
>  .
>  .TP
> +.B \-Wformat
> +Warn about parameter mis-match to any variadic function which specifies

s/mis-match/mismatch/

> +where the format string is specified with the 
> +.BI __attribute__((format( type, message, va_start )))
> +attribute.
> +
> +Sparse does not issues these warnings by default. To turn them on, use

s/issues/issue/

-- Luc



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux