correct function attribute typo
Commit Message
Hello
There's a typo in the common function attribute docs, "nonnul" which this patch corrects.
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes
gcc/ChangeLog
2023-03-16 Jonny Grant <jg@jguk.org>
* doc/extend.texi: correct function attribute typo
---
gcc/doc/extend.texi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 3/16/23 16:37, Jonny Grant wrote:
> Hello
> There's a typo in the common function attribute docs, "nonnul" which this patch corrects.
Thank you! I've pushed this patch.
-Sandra
@@ -3657,7 +3657,7 @@ marked with nonnull is compared with null, and
@option{-Wnonnull-compare} option is enabled, a warning is issued.
@xref{Warning Options}.
@item The compiler may also perform optimizations based on the
-knowledge that @code{nonnul} parameters cannot be null. This can
+knowledge that @code{nonnull} parameters cannot be null. This can
currently not be disabled other than by removing the nonnull
attribute.
@end itemize