My vote is for source code compiler directives rather than new compiler command-line options, which add complexity and could result in unintended behavior, like hiding desired warnings. Something like this (just pseudocode):
#warnings off
// piece of code where I know what I'm doing
#warnings on
Not sure if Swift already has something like that.
Could be helpful in scenarios like here.