diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-25 23:42:50 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-25 23:42:50 +0000 |
commit | 07eb36786d22bcf9c9d6c939ef15cf0c0627829f (patch) | |
tree | a1bee955e1fde7d701f693c1d45c259de1d0bfc5 /main | |
parent | b347291f1f0b0a21e9a8862a3c56a8c24b6b53af (diff) |
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.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@243061 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/ast_expr2.fl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/ast_expr2.fl b/main/ast_expr2.fl index c2e39be0c..c261bbd62 100644 --- a/main/ast_expr2.fl +++ b/main/ast_expr2.fl @@ -65,6 +65,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #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 } ; |