mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
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
This commit is contained in:
parent
02ba3cf871
commit
25eb9e2a66
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.6 1996/11/10 03:03:31 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.7 1996/12/14 05:55:27 vadim Exp $
|
||||||
*
|
*
|
||||||
* NOTE
|
* NOTE
|
||||||
* XXX this code needs improvement--check for state violations and
|
* XXX this code needs improvement--check for state violations and
|
||||||
@ -183,6 +183,10 @@ ExcRaise(Exception *excP,
|
|||||||
|
|
||||||
ExcCurFrameP = efp->link;
|
ExcCurFrameP = efp->link;
|
||||||
|
|
||||||
|
#if defined (JMP_BUF)
|
||||||
longjmp(efp->context, 1);
|
longjmp(efp->context, 1);
|
||||||
|
#else
|
||||||
|
siglongjmp(efp->context, 1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user