From: Sam James Date: Sat, 25 Oct 2025 22:03:41 +0000 (+0100) Subject: doc: fix __attribute__((nocf_check)) documentation X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cc05a885199b9640f157150f06d083737daafb1;p=thirdparty%2Fgcc.git doc: fix __attribute__((nocf_check)) documentation Fix two syntax errors (missing '(' and ')' and misplaced '{'). gcc/ChangeLog: * doc/extend.texi (nocf_check): Fix syntax errors in example. --- diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index fb117f59665..882c0820a6e 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -6896,15 +6896,14 @@ compiler checks for @code{nocf_check} attribute mismatch and reports a warning in case of mismatch. @smallexample -@{ -int foo (void) __attribute__(nocf_check); -void (*foo1)(void) __attribute__(nocf_check); +int foo (void) __attribute__((nocf_check)); +void (*foo1)(void) __attribute__((nocf_check)); void (*foo2)(void); /* foo's address is assumed to be valid. */ int foo (void) - +@{ /* This call site is not checked for control-flow validity. */ (*foo1)();