diff options
-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 92345e975..aa5d59e9b 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 } ; |