Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcc -Wall -pedantic -Wextra in Visual Studio

On linux I have used these flags to compile with gcc

CFLAGS=-Wall -pedantic -g -Wextra -pthread

What are my options in VS to enable similar flags? Extra warnings, etc.

like image 588
rluks Avatar asked Jan 22 '16 13:01

rluks


1 Answers

You can use /Yd for enabling the placement of complete debugging information in all object files and /Wall for enabling all warnings, including warnings that are disabled by default.

More options here: https://msdn.microsoft.com/en-us/library/19z1t1wy.aspx

How to set them in case you don't know: https://msdn.microsoft.com/en-us/library/c553zwz0%28v=vs.90%29.aspx

like image 197
jdsalaro Avatar answered Nov 10 '22 14:11

jdsalaro