Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2244 closed enhancement (fixed)

Add infrastructure to detect bad arguments to printf-like functions

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.6.0
Component: default Version: unspecified
Severity: normal Keywords: debug
Cc: warmerdam

Description

In r13858, I've added a new macro, CPL_PRINT_FUNC_FORMAT, for GCC >= 3. This helps detecting bad arguments to functions whose signature is like printf. CPLDebug and CPLString::Printf are two such functions.

Thanks to this addition, I've been able to fix quite a few wrong arguments in r13859 and in r13860

Change History (2)

comment:1 by Even Rouault, 16 years ago

Resolution: fixed
Status: newclosed
Type: defectenhancement

comment:2 by Even Rouault, 16 years ago

Another missing argument added in r13871

Note: See TracTickets for help on using tickets.