YAKIMA, Wash. — Bail was set at $25,000 for a 28-year-old Yakima man accused of firing a pistol from a car Tuesday, apparently for the fun of it.

The suspect appeared in Yakima County Superior Court on Wednesday on possible charges of reckless endangerment and unlawful possession of a firearm.

His arrest came 24 hours earlier on Tuesday in connection with reports of shots fired near the corner of Sixth and G streets in north Yakima, according to an arrest affidavit.

A patrol officer spotted the suspect vehicle, a gray Chrysler PT Cruiser, on North First Street and followed it to Selah, where it was stopped at gunpoint by officers in the parking lot of the local McDonald’s.

A .380-caliber semi-automatic pistol was plainly visible in the car, according to the affidavit, as were several spent shell casings. Police impounded the car until a search warrant could be obtained.

According to the affidavit, two occupants, including the driver, told officers the suspect had fired the pistol several times in the air but not at anybody. Police noted there were no reports of anyone being injured or shot at.

The suspect, who had a criminal history of domestic violence that precluded possession of a firearm, was subsequently taken into custody on a possible felony gun charge.

Another occupant of the car, a 27-year-old man, also was arrested on a drug charge after he allegedly threw a baggie under the car in the McDonald’s parking lot.

A witness saw him and told officers, according to the affidavit. The baggie allegedly contained 4.1 grams of methamphetamine. He is being held on $15,000 bail.

The names of both suspects are being withheld by the Yakima Herald-Republic because they have not been formally charged yet.