Browse Source

Add warning about dangerous typecast

Pierre Muller 2 years ago
parent
commit
2fd294b990
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/msg/errore.msg

+ 2 - 0
compiler/msg/errore.msg

@@ -1873,6 +1873,8 @@ type_e_constant_expr_expected=04052_E_Constant Expression expected
 type_e_operator_not_supported_for_types=04053_E_Operation "$1" not supported for types "$2" and "$3"
 % The operation is not allowed for the supplied types.
 type_e_illegal_type_conversion=04054_E_Illegal type conversion: "$1" to "$2"
+% The operation is allowed for compatibility but types are not .
+type_w_dangerous_type_conversion=04132_W_Dangerous type conversion: "$1" to "$2"
 % When doing a type-cast, you must take care that the sizes of the variable and
 % the destination type are the same.
 type_w_dangerous_type_conversion=04132_W_Type conversion between unrelated/incompatible types: "$1" to "$2"