This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: util-linux 2.10p compiler warnings
- To: libc-alpha at sources dot redhat dot com
- Subject: Re: util-linux 2.10p compiler warnings
- From: Andries dot Brouwer at cwi dot nl
- Date: Sat, 21 Oct 2000 02:47:14 +0200 (MET DST)
- Cc: jsm28 at cam dot ac dot uk
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