This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1392] New: warning on WIFEXITED(const int) et al: assignment of read-only member


$ 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]