Prevent some warnings for gas, fixes #259