Firstly, the -Wdiv-by-zero warning's effect is only at compile time, not runtime. Secondly, it will only warn for divisions by zero that it can spot.
So this gives a "division by zero" warning...
Type: Posts; User: oogabooga
Firstly, the -Wdiv-by-zero warning's effect is only at compile time, not runtime. Secondly, it will only warn for divisions by zero that it can spot.
So this gives a "division by zero" warning...
Floating point divide errors don't generally "throw" an exception unless you change the default behavior.
Since you're just looking for a "divide error", by which I assume you mean a runtine...