Fix uninitialised use warning.
Suppress warnings about -Wself-assign.