about summary refs log tree commit diff
path: root/pkgs/development/libraries/flatcc
diff options
context:
space:
mode:
authorFabián Heredia Montiel <fabianhjr@protonmail.com>2022-04-16 00:09:33 -0500
committerFabián Heredia Montiel <fabianhjr@protonmail.com>2022-04-16 11:11:46 -0500
commit3795a2f70718f775048904fac400e569f07c8441 (patch)
treea62c7dbf7fcedfb20bc0c6364ac102fa356bb5ec /pkgs/development/libraries/flatcc
parent5275050ab037eef4dc8e358c7907c931f78c5d85 (diff)
flatcc: add two `-Wno-error` for compilation on gcc11 and later
Diffstat (limited to 'pkgs/development/libraries/flatcc')
-rw-r--r--pkgs/development/libraries/flatcc/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/flatcc/default.nix b/pkgs/development/libraries/flatcc/default.nix
index 6b40814119c66..488cb6846d08d 100644
--- a/pkgs/development/libraries/flatcc/default.nix
+++ b/pkgs/development/libraries/flatcc/default.nix
@@ -21,6 +21,11 @@ stdenv.mkDerivation rec {
     "-DCMAKE_BUILD_TYPE=Release"
   ];
 
+  NIX_CFLAGS_COMPILE = [
+    "-Wno-error=misleading-indentation"
+    "-Wno-error=stringop-overflow"
+  ];
+
   meta = {
     description = "FlatBuffers Compiler and Library in C for C ";
     homepage = "https://github.com/dvidelabs/flatcc";