Skip to content

Commit 25eb9e2

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 02ba3cf commit 25eb9e2

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.7 1996/12/14 05:55:27 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)