Skip to content

Commit 82c4939

Browse files
committed
perlvars.h: remove extraneous semicolon
None of the other PERLVARI declarations adds an extra semicolon, so don't put one on the new shutdownhook either. Removing it prevents the following compiler message on VMS: PERLVARI(G, shutdownhook, shutdown_proc_t, &Perl_noshutdownhook); ................................................................^ %CC-I-EXTRASEMI, Extraneous semicolon. at line number 387 in file DKA0:[CRAIG.blead]perlvars.h;1 The message doesn't cause compile failures in and of itself, but it pollutes the output of probes in some extensions and causes capability detection to go off the rails in, for example, Time::HiRes.
1 parent d153d61 commit 82c4939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perlvars.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ PERLVAR(G, user_prop_mutex, perl_mutex) /* Mutex for manipulating
384384
* This is needed for tearing down threads::shared and probably
385385
* not be used for anything else.
386386
*/
387-
PERLVARI(G, shutdownhook, shutdown_proc_t, &Perl_noshutdownhook);
387+
PERLVARI(G, shutdownhook, shutdown_proc_t, &Perl_noshutdownhook)
388388

389389
/* these record the best way to perform certain IO operations while
390390
* atomically setting FD_CLOEXEC. On the first call, a probe is done

0 commit comments

Comments
 (0)