Re: Problem with type safety and the "sentinel" attribute

2006-06-09 Thread Tim Janik
thanks for the quick response Kaveh. On Fri, 9 Jun 2006, Kaveh R. Ghazi wrote: > void print_string_array (const char *array_name, > const char *string, ...) __attribute__ > ((__sentinel__)); > > print_string_array ("empty_arra

supporting finer grained -Wextra

2006-04-03 Thread Tim Janik
hi there. i just enabled -Wextra to catch broken if statements, i.e. to enable warnings on: * An empty body occurs in an if or else statement. however this unfortunately triggers other warnings that i can't reasonably get rid of. here's a test snippet: == test.c ===