diff --git a/src/Makefile.cfg b/src/Makefile.cfg
index 738b05330b73ff2975d0f33b7ceb47b1f5117329..6142e9ecf173b4e9dd1bc28390650a6f69a7688a 100644
--- a/src/Makefile.cfg
+++ b/src/Makefile.cfg
@@ -234,7 +234,7 @@ ifdef GCC71
  WFLAGS+=-Wno-error=implicit-fallthrough
  WFLAGS+=-Wno-implicit-fallthrough
 endif
-ifdef GCC80
+ifdef GCC81
  WFLAGS+=-Wno-error=format-overflow
  WFLAGS+=-Wno-error=stringop-truncation
  WFLAGS+=-Wno-error=stringop-overflow