Skip to content

Commit a2235e3

Browse files
committed
Showing compilation warnings when verbose output is enabled.
http://code.google.com/p/arduino/issues/detail?id=664
1 parent 6554ae6 commit a2235e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/processing/app/debug/Compiler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ static private List getCommandCompilerC(String avrBasePath, List includePaths,
476476
"-c", // compile, don't link
477477
"-g", // include debugging info (so errors include line numbers)
478478
"-Os", // optimize for size
479-
"-w", // surpress all warnings
479+
Preferences.getBoolean("build.verbose") ? "-Wall" : "-w", // show warnings if verbose
480480
"-ffunction-sections", // place each function in its own section
481481
"-fdata-sections",
482482
"-mmcu=" + boardPreferences.get("build.mcu"),
@@ -504,7 +504,7 @@ static private List getCommandCompilerCPP(String avrBasePath,
504504
"-c", // compile, don't link
505505
"-g", // include debugging info (so errors include line numbers)
506506
"-Os", // optimize for size
507-
"-w", // surpress all warnings
507+
Preferences.getBoolean("build.verbose") ? "-Wall" : "-w", // show warnings if verbose
508508
"-fno-exceptions",
509509
"-ffunction-sections", // place each function in its own section
510510
"-fdata-sections",

0 commit comments

Comments
 (0)