Where a storehouse forms part of or is attached to a building used for other purposes, the whole of such building is considered to be the storehouse and no portion of such storehouse shall be used as a dwelling, or as a place where persons assemble.