This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1392] New: warning on WIFEXITED(const int) et al: assignment of read-only member
- From: "sebor at roguewave dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 Sep 2005 17:49:56 -0000
- Subject: [Bug libc/1392] New: warning on WIFEXITED(const int) et al: assignment of read-only member
- Reply-to: sourceware-bugzilla at sourceware dot org
$ cat t.c && gcc -c t.c
#include <sys/wait.h>
int foo ()
{
const int status = 0;
WIFEXITED (status);
WEXITSTATUS (status);
WIFSIGNALED (status);
WTERMSIG (status);
WIFSTOPPED (status);
WSTOPSIG (status);
WIFCONTINUED (status);
}
t.c: In function `foo':
t.c:7: warning: assignment of read-only member `__in'
t.c:8: warning: assignment of read-only member `__in'
t.c:9: warning: assignment of read-only member `__in'
t.c:10: warning: assignment of read-only member `__in'
t.c:11: warning: assignment of read-only member `__in'
t.c:12: warning: assignment of read-only member `__in'
--
Summary: warning on WIFEXITED(const int) et al: assignment of
read-only member
Product: glibc
Version: 2.3.3
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: sebor at roguewave dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: ppc-suse-linux
GCC host triplet: ppc-suse-linux
GCC target triplet: ppc-suse-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=1392
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.