C5911: Division by zero at runtime

[WARNING]

Description

The Compiler has detected zero division. This is not necessarily an error (see below). This message may be generated during tree optimizations (Option -Ont to switch it off).

Example
  void RaiseDivByZero(void) {

  
    int i = i/0;  // Division by zero!

  
  }

  
Tips

Maybe the zero value the divisor results from other compiler optimizations or because a macro evaluates to zero. It is a good idea to map this warning to an error (see Option -WmsgSe ).