I know that this question is almost the same with this , but I still don't understand how to do it in command prompt. Here is what I'm doing:
- I need to compile old source code of 7z archivation tool, so I downloaded it. 
- Now I am running nmake in the 7z_version/CPP/7zip and it shows me errors: 
C2220: warning treated as error - no 'object' file generated.
So here is the question: how to disable this warning? I am using VS comand prompt, because IDE cannot understand the project folder.
 
     
    