[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#94891: %zd printf spec generates warning, even in c9x mode



Package: gcc-2.95
Version: 1:2.95.4-0.010407
Severity: minor

The following transcript should illustrate the error:

~ $ cat sample.c
#include <stdio.h>

int main() { size_t f=0; printf("%zd\n",f); return 0; }
~ $ 
~ $ gcc-2.95 -O2 -g -Wall -std=c9x sample.c
sample.c: In function `main':
sample.c:3: warning: unknown conversion type character `z' in format
sample.c:3: warning: too many arguments for format
~ $ gcc-3.0 -O2 -g -Wall -std=c9x sample.c
~ $ 

Not a big issue (unless you use -Werror), but I wanted to have it on record.

cheers



Reply to: