]> git.draconx.ca Git - cdecl99.git/commitdiff
libcdecl: Avoid stray semicolon after gl_once_define.
authorNick Bowler <nbowler@draconx.ca>
Fri, 16 Jun 2023 04:01:07 +0000 (00:01 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 16 Jun 2023 04:10:13 +0000 (00:10 -0400)
For some weird reason the gnulib gl_once_define function-like macro
expansion includes the semicolon.  Thus, the extra semicolon after
the macro invocation is technically a syntax error, although most
compilers seem to not care too much.

src/error.c

index ef9e4757977621d805b35f6d84174f84feab32ae..5466d393b05d03096e5b4dd36bb8fb6a8b045b6c 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "errmsg.h"
 
-gl_once_define(static, tls_initialized);
+gl_once_define(static, tls_initialized)
 static gl_tls_key_t tls_key;
 
 struct err_state {