]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
doc: Fix typos in Warning Options [PR110596]
authorJonathan Wakely <jwakely@redhat.com>
Sat, 8 Jul 2023 09:22:29 +0000 (10:22 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 8 Jul 2023 09:24:11 +0000 (10:24 +0100)
gcc/ChangeLog:

PR c++/110595
PR c++/110596
* doc/invoke.texi (Warning Options): Fix typos.

gcc/doc/invoke.texi

index 594b24d0c2a8d5b6bcdd0d1c001483a4886123a3..3063e71c8906dacbd0ec254090d6d7b4ec01b510 100644 (file)
@@ -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.