IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 19 years ago

Closed 19 years ago

#897 closed defect (needinfo)

Warning message: "ISO C does not support the 'q' printf length modifier"

Reported by: Michael Wood-Vasey Owned by: jhoblitt
Priority: high Milestone:
Component: misc Version: unspecified
Severity: trivial Keywords:
Cc:

Description

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D_THREAD_SAFE -DHAVE_PSDB -I/Users/Shared/PS1/code/ipp-2.2default.darwin/include/pslib -I/Users/Shared/PS1/code/ipp-2.2default.darwin/include/mysql -I/Users/Shared/PS1/code/ipp-2.2default.darwin/include -Wall -pedantic -fno-strict-aliasing -g -O2 -MT libippdb_la-ippdb.lo -MD -MP -MF .deps/libippdb_la-ippdb.Tpo -c ippdb.c -fno-common -DPIC -o .libs/libippdb_la-ippdb.o
ippdb.c: In function 'ippdbPrintMetadataRaw':
ippdb.c:132: warning: ISO C does not support the 'q' printf length modifier
ippdb.c:136: warning: ISO C does not support the 'q' printf length modifier


The relevant lines:

ippdb.src/src/ippdb.c:132:

METADATAITEM_STRIFY_CASE(PS_DATA_S64, "%" PRId64, S64);

ippdb.src/src/ippdb.c:136:

METADATAITEM_STRIFY_CASE(PS_DATA_U64, "%" PRIu64, U64);


[wwoodvas@calm ippdb.src] gcc --version
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5341)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


This issue is pretty trivial but would be nice to clean up if it's easy so that compiling with '-Werror' works.

Change History (2)

comment:1 by jhoblitt, 19 years ago

Status: newassigned

The issue here is the inttypes.h (POSIX) is using some printf flags that are native to OSX but not part of the C standard. We need to use inttypes.h for portability reasons and psLib uses the exact same definitions. Is psLib having the same build warnings?

comment:2 by jhoblitt, 19 years ago

remaining_time: 1.000.00
Resolution: needinfo
Status: assignedclosed

I've removed the -Werror flag for the time being.

Note: See TracTickets for help on using tickets.