Solved by Shakiba_Kh in post #4 
              
              
                OK, so I figured it out: 
Go to Project Properties -> Configuration Properties -> C/C++ -> Advanced -> Disable Specific Warnings and add 4996.