(__validfp): Use ({...}) rather than a comma expression, to avoid
authorroland <roland>
Wed, 14 Jun 1995 17:12:30 +0000 (17:12 +0000)
committerroland <roland>
Wed, 14 Jun 1995 17:12:30 +0000 (17:12 +0000)
gcc's "value computed is not used" warning.

stdio/stdio.h

index 2994432..a36081d 100644 (file)
@@ -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)