This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence MinGW warning about "'noreturn' function does return"
authorSteve Hay <SteveHay@planit.com>
Fri, 1 Jul 2005 15:15:23 +0000 (15:15 +0000)
committerSteve Hay <SteveHay@planit.com>
Fri, 1 Jul 2005 15:15:23 +0000 (15:15 +0000)
(Thanks to Nicholas Clark)

p4raw-id: //depot/perl@25041

iperlsys.h

index 883f935..f84852d 100644 (file)
@@ -915,8 +915,10 @@ struct IPerlProcInfo;
 typedef void           (*LPProcAbort)(struct IPerlProc*);
 typedef char*          (*LPProcCrypt)(struct IPerlProc*, const char*,
                            const char*);
-typedef void           (*LPProcExit)(struct IPerlProc*, int);
-typedef void           (*LPProc_Exit)(struct IPerlProc*, int);
+typedef void           (*LPProcExit)(struct IPerlProc*, int)
+                           __attribute__noreturn__;
+typedef void           (*LPProc_Exit)(struct IPerlProc*, int)
+                           __attribute__noreturn__;
 typedef int            (*LPProcExecl)(struct IPerlProc*, const char*,
                            const char*, const char*, const char*,
                            const char*);