Taken directly from 9777aa619d/warnings * Remove Wuseless-cast, because Qt's MOC-generated code hits it. * Remove Wduplicated-branches, Wduplicated-branches, Wformat-truncation because they aren't supported on our oldest CI job.
9777aa619d/warnings