Mail Archives: djgpp-workers/2011/07/12/13:50:37
Am Montag, 11. Juli 2011 schrieb Ozkan Sezer:
> On Sun, Jul 10, 2011 at 11:11 PM, Juan Manuel Guerrero
> <juan DOT guerrero AT gmx DOT de> wrote:
> > Am Sonntag, 10. Juli 2011 schrieb Ozkan Sezer:
> >> The setjmp.h from djgpp does not mark longjmp() as noreturn,
> >> therefore, g++ warns upon seeing a function who is calling longjmp()
> >> and marked as noreturn:
> > [snip]
> >
> > I commited the patch.
> >
> > Regards,
> > Juan M. Guerrero
> >
>
> Thanks.
>
> However, I seem to missed touching siglongjmp in the same way:
> it needs the same noreturn attribute, too.
>
> --
> O.S.
>
Commited the following patch.
Regards,
Juan M. Guerrero
Index: djgpp/include/setjmp.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/setjmp.h,v
retrieving revision 1.7
diff -U 5 -r1.7 setjmp.h
--- djgpp/include/setjmp.h 10 Jul 2011 20:13:23 -0000 1.7
+++ djgpp/include/setjmp.h 12 Jul 2011 17:46:24 -0000
@@ -34,11 +34,11 @@
#ifndef __STRICT_ANSI__
typedef jmp_buf sigjmp_buf;
int sigsetjmp(sigjmp_buf env, int savemask);
-int siglongjmp(sigjmp_buf env, int val);
+int siglongjmp(sigjmp_buf env, int val) __attribute__((__noreturn__));
#ifndef _POSIX_SOURCE
#endif /* !_POSIX_SOURCE */
#endif /* !__STRICT_ANSI__ */
- Raw text -