You can disable the warning with:
:set buftype=nofile
If you want to write to the file later, you have to clear buftype again:
:set buftype=