diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-07-08 10:22:29 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-07-08 10:24:11 +0100 |
commit | 72cfa0f799f3a695cc7b6d0c10a27a27fa087c26 (patch) | |
tree | 253b5c4c55c0ada507a294be81a0c578c62329a2 | |
parent | 01405f01087b05d71a1f3bd1d4272bec332aeb58 (diff) | |
download | gcc-72cfa0f799f3a695cc7b6d0c10a27a27fa087c26.zip gcc-72cfa0f799f3a695cc7b6d0c10a27a27fa087c26.tar.gz gcc-72cfa0f799f3a695cc7b6d0c10a27a27fa087c26.tar.bz2 |
doc: Fix typos in Warning Options [PR110596]
gcc/ChangeLog:
PR c++/110595
PR c++/110596
* doc/invoke.texi (Warning Options): Fix typos.
-rw-r--r-- | gcc/doc/invoke.texi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 594b24d..3063e71 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6730,7 +6730,7 @@ Warn if the compiler does not elide the copy from a local variable to the return value of a function in a context where it is allowed by [class.copy.elision]. This elision is commonly known as the Named Return Value Optimization. For instance, in the example below the -compiler cannot elide copies from both v1 and b2, so it elides neither. +compiler cannot elide copies from both v1 and v2, so it elides neither. @smallexample std::vector<int> f() @@ -7086,7 +7086,7 @@ This warning is enabled by @option{-Wall}. @opindex Wmissing-include-dirs @opindex Wno-missing-include-dirs @item -Wmissing-include-dirs @r{(C, C++, Objective-C, Objective-C++ and Fortran only)} -Warn if a user-supplied include directory does not exist. This opions is disabled +Warn if a user-supplied include directory does not exist. This option is disabled by default for C, C++, Objective-C and Objective-C++. For Fortran, it is partially enabled by default by warning for -I and -J, only. |