Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release

I am getting the warning message "cl : Command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release" while building my project with Visual Studio 2017 latest update 15.9.2. How to resolve this warning?

like image 601
Ashish Rathi Avatar asked Nov 27 '18 06:11

Ashish Rathi


2 Answers

Try selecting <inherit from parent or project defaults> for the Enable Minimal Rebuild option (under C/C++ > Code Generation). After this, the option should show No (/Gm-), not in bold. Make sure you do this for your project(s) (you could have several projects in the solution), and all property pages they inherit from.

I had the same problem using Visual Studio 2019, in the end the problem was in a second project I had in the same solution, that had the option set to Yes (/Gm).

like image 143
Eran Zimmerman Gonen Avatar answered Sep 20 '22 09:09

Eran Zimmerman Gonen


According to the documentation

You may safely remove this option from your projects.

like image 40
pritaeas Avatar answered Sep 20 '22 09:09

pritaeas