[m-rev.] for review: disable_warning [unknown_format_calls]

Peter Wang novalazy at gmail.com
Wed Aug 24 16:26:46 AEST 2022


On Wed, 24 Aug 2022 11:17:00 +1000 "Zoltan Somogyi" <zoltan.somogyi at runbox.com> wrote:
> diff --git a/doc/reference_manual.texi b/doc/reference_manual.texi
> index d2a8b30cb..72b2d6035 100644
> --- a/doc/reference_manual.texi
> +++ b/doc/reference_manual.texi
> @@ -1106,6 +1106,11 @@ where the disjunct in question is a switch arm in another mode.
>  (The difference is that a disjunct that cannot succeed has no meaningful use,
>  but a switch arm that cannot succeed does have one:
>  a switch may need that arm to make it complete.)
> + at item @code{unknown_format_calls}
> +Disable the generation of warnings about calls to
> +string.format, io.format or stream.string_writer.format
> +for which the compiler cannot tell whether there are any mismatches
> +between the format string and the supplied values.
>  @end table

Mark that up with @code or @samp, don't know which.

> diff --git a/doc/user_guide.texi b/doc/user_guide.texi
> index 4359cd6e8..f9791e238 100644
> --- a/doc/user_guide.texi
> +++ b/doc/user_guide.texi
> @@ -6919,9 +6919,10 @@ The later mismatches may be avalanche errors caused by earlier mismatches.
>  @sp 1
>  @item --warn-unknown-format-calls
>  @findex --warn-unknown-format-calls
> -Warn about calls to string.format or io.format for which
> -the compiler cannot tell whether there are any mismatches between
> -the format string and the supplied values.
> +Warn about calls to
> +string.format, io.format or stream.string_writer.format
> +for which the compiler cannot tell whether there are any mismatches
> +between the format string and the supplied values.
>  
>  @sp 1
>  @item --no-warn-obsolete

Same here.

That looks fine.

Peter


More information about the reviews mailing list