]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
doc: fix __attribute__((nocf_check)) documentation
authorSam James <sam@gentoo.org>
Sat, 25 Oct 2025 22:03:41 +0000 (23:03 +0100)
committerSam James <sam@gentoo.org>
Sat, 25 Oct 2025 22:03:41 +0000 (23:03 +0100)
Fix two syntax errors (missing '(' and ')' and misplaced '{').

gcc/ChangeLog:

* doc/extend.texi (nocf_check): Fix syntax errors in example.

gcc/doc/extend.texi

index fb117f59665baa96b86c9d161748c9f535dcabad..882c0820a6e648d21ff79847fb097f8dc339a576 100644 (file)
@@ -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)();