This will stop the warnings being logged for files which only contain comments:
.discourse-compatibility is still supported, although our recommendation is now to follow the d-compat/* branch-based strategy for theme/plugin compatibility. More details here:
So, if your file doesn’t have any real entries, I’d recommend deleting it.