[asterisk-commits] tilghman: branch 1.6.2 r243061 - in /branches/1.6.2: ./ main/ast_expr2.fl
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 25 17:42:53 CST 2010
Author: tilghman
Date: Mon Jan 25 17:42:50 2010
New Revision: 243061
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=243061
Log:
Merged revisions 239920 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r239920 | tilghman | 2010-01-13 14:38:42 -0600 (Wed, 13 Jan 2010) | 2 lines
Flex uses fwrite incorrectly, which breaks the build. Providing a workaround.
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/main/ast_expr2.fl
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/main/ast_expr2.fl
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/ast_expr2.fl?view=diff&rev=243061&r1=243060&r2=243061
==============================================================================
--- branches/1.6.2/main/ast_expr2.fl (original)
+++ branches/1.6.2/main/ast_expr2.fl Mon Jan 25 17:42:50 2010
@@ -64,6 +64,11 @@
#include "asterisk/strings.h"
#include "asterisk/channel.h"
#endif
+
+/*!\note The latest Flex uses fwrite without checking its return value, which
+ * is a warning on some compilers. Therefore, we use this workaround, to trick
+ * the compiler into suppressing this warning. */
+#define fwrite(a,b,c,d) do { int __res = fwrite(a,b,c,d); (__res); } while (0)
enum valtype {
AST_EXPR_number, AST_EXPR_numeric_string, AST_EXPR_string
More information about the asterisk-commits
mailing list