From the post @ktoso linked to, you want to use the -warn-concurrency compiler option to get the behavior you're looking for.
-warn-concurrency