BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000100 [uClibc++] Other minor always 02-13-05 11:35 02-16-05 10:07
Reporter psm View Status public  
Assigned To gkajmowi
Priority normal Resolution open  
Status closed   Product Version 0.1.9
Summary 0000100: adding -Wformat=2 to CFLAGS ostream and ostream_helper produce warnings
Description summary says it all
Additional Information
Attached Files

- Relationships

- Notes
(0000048)
gkajmowi
02-16-05 10:07

This is intended behavior. The -Wformat=2 command checks to ensure that certain functions are given proper values. snprintf accepts a const char * as a parameter which acts as a formating string.
The warnings occur in [i][o]stream because the functions which write data to a stream must build the format function first. This results in two calls to snprintf. The first call builds the format string for the second. Naturally, the second call cannot use a string literal because it is using a variable. Thus the compiler informs you that
the argument isn't being checked. This is only a warning message because you have asked for all such commands to be checked, and in this case they cannot be.
Suggestions on how to re-write the code to avoid this problem are welcome. Otherwise, this is intended behavior.
 

- Issue History
Date Modified Username Field Change
02-13-05 11:35 psm New Issue
02-16-05 10:07 gkajmowi Status assigned => closed
02-16-05 10:07 gkajmowi Note Added: 0000048


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker