diff options
author | Marek Polacek <polacek@redhat.com> | 2019-08-30 13:55:59 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-08-30 13:55:59 +0000 |
commit | 81e753d9c8a5930b5465676304df5d0d0c90294e (patch) | |
tree | 64d3916fa898b1087efe32dc3f3968f6bc258752 /gcc/doc/invoke.texi | |
parent | 61f5cb2313f7a3336264eeabbe9fbaccd00e49a0 (diff) | |
download | gcc-81e753d9c8a5930b5465676304df5d0d0c90294e.zip gcc-81e753d9c8a5930b5465676304df5d0d0c90294e.tar.gz gcc-81e753d9c8a5930b5465676304df5d0d0c90294e.tar.bz2 |
* doc/invoke.texi (-Wvolatile): Use @code for volatile.
From-SVN: r275178
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index aa9886e..44a8801 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3520,13 +3520,14 @@ a conversion function will never be called. @item -Wvolatile @r{(C++ and Objective-C++ only)} @opindex Wvolatile @opindex Wno-volatile -Warn about deprecated uses of the volatile qualifier. This includes postfix -and prefix @code{++} and @code{--} expressions of volatile-qualified types, -using simple assignments where the left operand is a volatile-qualified -non-class type for their value, compound assignments where the left operand -is a volatile-qualified non-class type, volatile-qualified function return -type, volatile-qualified parameter type, and structured bindings of a -volatile-qualified type. This usage was deprecated in C++20. +Warn about deprecated uses of the @code{volatile} qualifier. This includes +postfix and prefix @code{++} and @code{--} expressions of +@code{volatile}-qualified types, using simple assignments where the left +operand is a @code{volatile}-qualified non-class type for their value, +compound assignments where the left operand is a @code{volatile}-qualified +non-class type, @code{volatile}-qualified function return type, +@code{volatile}-qualified parameter type, and structured bindings of a +@code{volatile}-qualified type. This usage was deprecated in C++20. Enabled by default with @option{-std=c++2a}. @end table |