From: <ale...@us...> - 2013-11-20 12:12:10
|
Revision: 58813 http://sourceforge.net/p/firebird/code/58813 Author: alexpeshkoff Date: 2013-11-20 12:12:07 +0000 (Wed, 20 Nov 2013) Log Message: ----------- Use better way to ignore unused return value - thanks to Adriano Modified Paths: -------------- firebird/trunk/extern/editline/config.h.in firebird/trunk/src/common/common.h Modified: firebird/trunk/extern/editline/config.h.in =================================================================== --- firebird/trunk/extern/editline/config.h.in 2013-11-20 12:03:22 UTC (rev 58812) +++ firebird/trunk/extern/editline/config.h.in 2013-11-20 12:12:07 UTC (rev 58813) @@ -295,5 +295,4 @@ #undef LIBC_SCCS #define lint -#define EL_UNUSED(a) if (a) - +#define EL_UNUSED(a) do { if(a); } while (0) Modified: firebird/trunk/src/common/common.h =================================================================== --- firebird/trunk/src/common/common.h 2013-11-20 12:03:22 UTC (rev 58812) +++ firebird/trunk/src/common/common.h 2013-11-20 12:12:07 UTC (rev 58813) @@ -890,7 +890,7 @@ #define FB_FINAL #endif -#define FB_UNUSED(value) if (value) +#define FB_UNUSED(value) do { if(value); } while (false) // 30 Dec 2002. Nickolay Samofatov // This needs to be checked for all supported platforms This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |