Removed old unused attribute.
Removed unused parameter.
Fixed some warnings.
Treating warnings as errors in 2MGFX.