Senegal wants to get a fair price for it's resources and asks for that? France issues a travel warning and decimates their tourist industry for a few years.
It's common place for Western countries to issue travel warnings when they just don't like what a certain country is doing politically. It's often got nothing to do with traveler safety.