Living quarters for junior officers and midshipmen on a warship (hence gunroom officers). In the past it was usually set in the forecastle
An apartment on the after end of the lower gun deck of a ship of war, usually occupied as a messroom by the commissioned officers, except the captain; called wardroom in the United States navy