]> granicus.if.org Git - postgresql/commitdiff
Avoiding
authorVadim B. Mikheev <vadim4o@yahoo.com>
Sat, 14 Dec 1996 05:55:27 +0000 (05:55 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Sat, 14 Dec 1996 05:55:27 +0000 (05:55 +0000)
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

src/backend/utils/error/exc.c

index 3cc3f01f508131223f5e21993621d6f8a8a9a952..fce0bef88946f879e37e8a25b4fe357bc66e083a 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * 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
  *    XXX this code needs improvement--check for state violations and
@@ -183,6 +183,10 @@ ExcRaise(Exception *excP,
        
        ExcCurFrameP = efp->link;
        
+#if defined (JMP_BUF)
        longjmp(efp->context, 1);
+#else
+       siglongjmp(efp->context, 1);
+#endif
     }
 }