From: Jonathan Wakely Date: Sat, 8 Jul 2023 09:22:29 +0000 (+0100) Subject: doc: Fix typos in Warning Options [PR110596] X-Git-Tag: basepoints/gcc-15~7748 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72cfa0f799f3a695cc7b6d0c10a27a27fa087c26;p=thirdparty%2Fgcc.git doc: Fix typos in Warning Options [PR110596] gcc/ChangeLog: PR c++/110595 PR c++/110596 * doc/invoke.texi (Warning Options): Fix typos. --- diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 594b24d0c2a8..3063e71c8906 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 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.