The motivating case here is that OpenSSL has some code like this: static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr); ... #define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
That cast to int causes client code which calls BIO_flush and ignores the result to get a -Wunused-value warning. -Matt
unused-value-macro.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
