With medical marijuana a legitimate and licensed treatment, its odor should no longer give police grounds to conduct a warrantless search, a criminal defense lawyer told the Pennsylvania Supreme Court on Wednesday in an argument that he said could impact hundred of thousands of persons in the state.

A prosecutor, however, said that as long as it is a controlled substance, the presence of the smell of marijuana could contribute to the totality of circumstances underlying a decision to search.