From d6e2f671f716a25188d83350fa517ae9ea29f70f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 14 Jun 1995 17:15:57 +0000 Subject: Wed Jun 14 03:45:24 1995 Roland McGrath * stdio/stdio.h (__validfp): Use ({...}) rather than a comma expression, to avoid gcc's "value computed is not used" warning. * libc-symbols.h (_elf_set_element): Give the set-element variable an `unused' attribute. * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with __attribute__ ((__const__)). * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise. * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set LINK->resource.next->resource.prevp when appropriate, not LINK->resource.next->thread.prevp!!! --- stdio/stdio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stdio/stdio.h') diff --git a/stdio/stdio.h b/stdio/stdio.h index 2994432..a36081d 100644 --- a/stdio/stdio.h +++ b/stdio/stdio.h @@ -213,9 +213,9 @@ struct __stdio_file See stdio/glue.c for what the confusing bit is about. */ #define __validfp(stream) \ (stream != NULL && \ - ((stream->__magic == _GLUEMAGIC && \ - (stream = *(((struct { int __magic; FILE **__p; } *) stream)->__p))), \ - (stream->__magic == _IOMAGIC))) + ({ if (stream->__magic == _GLUEMAGIC) \ + stream = *((struct { int __magic; FILE **__p; } *) stream)->__p; \ + stream->__magic == _IOMAGIC; })) /* Clear the error and EOF indicators of STREAM. */ #define __clearerr(stream) ((stream)->__error = (stream)->__eof = 0) -- cgit v1.1