From 7cc05a885199b9640f157150f06d083737daafb1 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 25 Oct 2025 23:03:41 +0100 Subject: [PATCH] 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. --- gcc/doc/extend.texi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)(); -- 2.47.3