If you go to File > Preferences, on the Publish Messages tab, you can uncheck the "Show warnings for unused resources/variables" option. This will prevent the message from popping up when you publish. When you're ready to turn it back on, simply recheck the option.If you go to File > Preferences, on the Publish Messages tab, you can uncheck the "Show warnings for unused resources/variables" option. This will prevent the message from popping up when you publish. When you're ready to turn it back on, simply recheck the option.