This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: util-linux 2.10p compiler warnings


According to the standards available to me, the field
sem_nsems of a struct semid_ds has type unsigned short.

However, I am told that with glibc 2.1.95 compilation
of the program

#include <stdio.h>
#include <sys/types.h>
#include <sys/sem.h>

int main() {
        struct semid_ds s;
        printf("%d\n", s.sem_nsems);
        return 0;
}

yields the error message
t.c:7: warning: int format, long int arg (arg 2)

I think this might be a bug in glibc 2.1.95.

Andries

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