Carbonate ions also produce a white precipitate with barium chloride solution. The acid reacts with any carbonate ions present. This removes them, so stopping them giving a false positive result.