Skip to content

Commit a98d974

Browse files
committed
Avoiding
cc1: warnings being treated as errors exc.c: In function 'ExcRaise': exc.c:186: warning: passing arg 1 of 'Longjmp' from incompatible pointer type gmake[3]: *** [exc.o] Error 1 Now we have: #if defined (JMP_BUF) longjmp(efp->context, 1); #else siglongjmp(efp->context, 1); #endif
1 parent 8696192 commit a98d974

File tree

1 file changed

+5
-1
lines changed
  • src/backend/utils/error

1 file changed

+5
-1
lines changed

src/backend/utils/error/exc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.6 1996/11/10 03:03:31 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.6.2.1 1996/12/14 05:54:36 vadim Exp $
1111
*
1212
* NOTE
1313
* XXX this code needs improvement--check for state violations and
@@ -183,6 +183,10 @@ ExcRaise(Exception *excP,
183183

184184
ExcCurFrameP = efp->link;
185185

186+
#if defined (JMP_BUF)
186187
longjmp(efp->context, 1);
188+
#else
189+
siglongjmp(efp->context, 1);
190+
#endif
187191
}
188192
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy