There is:
sudo spctl --master-disable
Then choose "Anywhere" under "Allow apps from..." in the Security & Privacy preferences. You'll never be bothered again.