Update deprecated warning suppression

The deprecated warning suppression was not working for the swig
bindings.