[cfe-dev] Option to disable POD check for variadic functions
Sean Hunt
scshunt at csclub.uwaterloo.ca
Thu May 19 23:08:56 PDT 2011
On 11-05-19 03:15 PM, Tomasz Dabrowski wrote:
> Hello,
>
> is it possible to disable POD check for variadic functions? For example:
>
> error: cannot pass object of non-POD type 'string' through variadic
> function; call will abort at runtime [-Wnon-pod-varargs]
> for:
> struct string { const char * str; string() {}; };
> string s;
> printf("%s", s);
Will passing the inverse of the noted flag (i.e. -Wno-non-pod-varargs)
not work?
Sean
More information about the cfe-dev
mailing list