|
From: | Kevin P. Fleming |
Subject: | Re: how to check callback prototypes? |
Date: | Thu, 14 Jul 2005 11:34:45 -0500 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050317) |
Sam Steingold wrote:
I want it to be error because I cannot pass void my_callback (const DB_ENV* dbe, const char *errpfx, const char *msg); instead of void my_callback (const char *errpfx, char *msg); so: how do I turn the warning into a failed compilation? (the result: above should be "no", not "yes")
Add -Werror to CFLAGS, that should do it.
[Prev in Thread] | Current Thread | [Next in Thread] |