|
From: | Christian Grothoff |
Subject: | Re: [libmicrohttpd] enum arguments for MHD_start_daemon |
Date: | Tue, 21 Aug 2012 14:39:26 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:10.0.6esrpre) Gecko/20120805 Icedove/10.0.6 |
On 08/21/2012 08:44 AM, Martin Velek wrote:
It really should not as the standard says that enum==int, and we just used enum for 'documentation' purposes here. I'll additionally add a cast to the enum from the int. => SVN 23342.Hello,Would it not be simpler (and possibly more efficient) to just use 'int' instead of 'enum MHD_OPTION' as suggested by the compiler's warning? I'd certainly be willing to do that instead as well...Yes, it would be. I hope it will not break code on the other compilers.
Happy hacking! -Christian
[Prev in Thread] | Current Thread | [Next in Thread] |