From a2235e3cdc3856cbeba7de84e81bfd914b3ebaea Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 1 Oct 2011 17:05:21 -0400 Subject: [PATCH] Showing compilation warnings when verbose output is enabled. http://code.google.com/p/arduino/issues/detail?id=664 --- app/src/processing/app/debug/Compiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/processing/app/debug/Compiler.java b/app/src/processing/app/debug/Compiler.java index 66f1cc88f..17b7a23b2 100644 --- a/app/src/processing/app/debug/Compiler.java +++ b/app/src/processing/app/debug/Compiler.java @@ -476,7 +476,7 @@ public class Compiler implements MessageConsumer { "-c", // compile, don't link "-g", // include debugging info (so errors include line numbers) "-Os", // optimize for size - "-w", // surpress all warnings + Preferences.getBoolean("build.verbose") ? "-Wall" : "-w", // show warnings if verbose "-ffunction-sections", // place each function in its own section "-fdata-sections", "-mmcu=" + boardPreferences.get("build.mcu"), @@ -504,7 +504,7 @@ public class Compiler implements MessageConsumer { "-c", // compile, don't link "-g", // include debugging info (so errors include line numbers) "-Os", // optimize for size - "-w", // surpress all warnings + Preferences.getBoolean("build.verbose") ? "-Wall" : "-w", // show warnings if verbose "-fno-exceptions", "-ffunction-sections", // place each function in its own section "-fdata-sections",