Commit 736da586 by Martin Jambor Committed by Martin Jambor

[doc] Reword description of -Wno-absolute-value

2019-02-27  Martin Jambor  <mjambor@suse.cz>
	    Martin Sebor  <msebor@redhat.com>

	* doc/invoke.texi (Warning Options): Reword description of
	-Wno-absolute-value.


Co-Authored-By: Martin Sebor <msebor@redhat.com>

From-SVN: r269246
parent 65b309f7
2019-02-27 Martin Jambor <mjambor@suse.cz>
Martin Sebor <msebor@redhat.com>
* doc/invoke.texi (Warning Options): Reword description of
-Wno-absolute-value.
2019-02-27 Jakub Jelinek <jakub@redhat.com> 2019-02-27 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/89280 PR tree-optimization/89280
......
...@@ -6656,9 +6656,13 @@ example, warn if an unsigned variable is compared against zero with ...@@ -6656,9 +6656,13 @@ example, warn if an unsigned variable is compared against zero with
@item -Wabsolute-value @r{(C and Objective-C only)} @item -Wabsolute-value @r{(C and Objective-C only)}
@opindex Wabsolute-value @opindex Wabsolute-value
@opindex Wno-absolute-value @opindex Wno-absolute-value
Warn when a wrong absolute value function seems to be used or when it Warn for calls to standard functions that compute the absolute value
does not have any effect because its argument is an unsigned type. of an argument when a more appropriate standard function is available.
This warning be suppressed with an explicit type cast and it is also For example, calling @code{abs(3.14)} triggers the warning because the
appropriate function to call to compute the absolute value of a double
argument is @code{fabs}. The option also triggers warnings when the
argument in a call to such a function has an unsigned type. This
warning can be suppressed with an explicit type cast and it is also
enabled by @option{-Wextra}. enabled by @option{-Wextra}.
@include cppwarnopts.texi @include cppwarnopts.texi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment