diff --git a/src/build/Common.gmake b/src/build/Common.gmake
index 46503f0af55e2bd61ed8609fe113f6adf1c7d522..e375a7b092872b008b3f01690f1f8bdab9ef171c 100644
--- a/src/build/Common.gmake
+++ b/src/build/Common.gmake
@@ -451,7 +451,10 @@ endif
 ifdef DEBUG
  CFLAGS	+=	-ggdb
  CFLAGS	+=	-D_DEBUG
- CFLAGS +=	-Wall -Wno-char-subscripts -Wno-format-truncation
+ CFLAGS +=	-Wall -Wno-char-subscripts
+ ifeq ($(CCPRE),gcc)
+  CFLAGS +=	-Wno-format-truncation
+ endif
 else # RELEASE
  # -finline-functions (used to) break the baja build badly.
  # This also meant that -O3 wouldn't work either.