Also removes the usage of `@warning` which has been removed in 3.x

/cc: @jonrowe, @soulcutter