I think you were too aggressive on the removal of the popmessages.
The compiler is complaining about the unused variable.
Try just changing the STATERR_NONE case from this...
Code:
case STATERR_NONE:
if (!(m_system.flags & GAME_SUPPORTS_SAVE))
popmessage("State successfully %s.\nWarning: Save states are not officially supported for this game.", opnamed);
else
popmessage("State successfully %s.", opnamed);
break;
...to this...
Code:
case STATERR_NONE:
break;
GroovyMAME support forum on BYOAC