https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90201
--- Comment #4 from Dima Pro <prokofjev.d at gmail dot com> --- (In reply to Jonathan Wakely from comment #3) > You get a warning with -Wuseless-cast Yes, sorry. Miss this. Anyway, no useless cast warning should be for this code.