diff --git a/pkg/spiffs/Makefile b/pkg/spiffs/Makefile
index 7de6d0c840df6cfe3c346a771b6b3027204e4236..4fd62bdb015dfd73eada0df392be9f0a0dd47324 100644
--- a/pkg/spiffs/Makefile
+++ b/pkg/spiffs/Makefile
@@ -3,8 +3,6 @@ PKG_URL=https://github.com/pellepl/spiffs.git
 PKG_VERSION=287148c46587089c4543a21eef2d6e9e14b88364
 PKG_LICENSE=MIT
 
-CFLAGS += -std=c11
-
 .PHONY: all
 
 all: git-download
diff --git a/pkg/spiffs/Makefile.spiffs b/pkg/spiffs/Makefile.spiffs
index 4e8962d7314f47db5655e20cf1d7d75cea715148..1cb6ab8c0b1a5294f21ebbef0d76e7ff2f274fb3 100644
--- a/pkg/spiffs/Makefile.spiffs
+++ b/pkg/spiffs/Makefile.spiffs
@@ -1,3 +1,6 @@
 MODULE := spiffs
 
+# Disable 'ISO C99 doesn’t support unnamed structs/unions [-Werror=pedantic]'
+CFLAGS += -Wno-pedantic
+
 include $(RIOTBASE)/Makefile.base