treewide: avoid fatal warnings from gcc7
This commit is contained in:
parent
5699a12b80
commit
0a941e0b66
@ -69,7 +69,10 @@ let
|
||||
fontconfig perl file bootjdk
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-Wno-error=deprecated-declarations"
|
||||
"-Wno-error=format-overflow" # newly detected by gcc7
|
||||
];
|
||||
|
||||
NIX_LDFLAGS = if minimal then null else "-lfontconfig -lXcursor -lXinerama";
|
||||
|
||||
|
@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ boost librevenge zlib ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ]; # newly detected by gcc-7
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://libwps.sourceforge.net/;
|
||||
description = "Microsoft Works document format import filter library";
|
||||
|
@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
# Works around bunch of "format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}'" warnings
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.is64bit) "-Wno-error=format";
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional (!stdenv.is64bit) "-Wno-error=format"
|
||||
++ [ "-Wno-error=format-truncation" ]; # newly detected with gcc-7
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ libusb ];
|
||||
|
Loading…
Reference in New Issue
Block a user