On 09/07/11 11:01, Gary V. Vaughan wrote: >> static inline char * >> > my_tigetstr (char const *capname) >> > { >> > return tigetstr ((char *) capname); >> > } >> > #undef tigetstr >> > #define tigetstr my_tigetstr
> Not that I've tried it, but surely you now get a warning in every file > that includes system.h about how the cast is discarding a const Such casts are common in gnulib anyway (else how could one implement something like strchr?) so it shouldn't be a problem in practice -- people either don't compile with that particular warning enabled, or they ignore such warnings.