Closed
Description
Description
(float) '1';
(float) '1.0';
(float) '';
(float) 'x'; // should always warn
(int) '1';
(int) '1.0';
(int) '';
(int) 'x'; // should always warn
This is a feature request. The casts above are advised by many static analysers, but if added explicitly, there is currently no warning emit. They should at least emit a warning if the input is not numerical and the cast does not make sense.