cataclysm-dda{,-git}: clean up

- Remove cmath include (introduced by 97c484a) since the current gcc/clang
  works fine without it.
- Suppress known compiler warnings instead of removing -Werror flag.
This commit is contained in:
Mitsuhiro Nakamura 2018-01-26 21:42:20 +09:00
parent 52f6310626
commit 27ec2df59e
2 changed files with 5 additions and 10 deletions

View file

@ -22,11 +22,6 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs .
sed -i Makefile \
-e 's,-Werror,,g'
sed '1i#include <cmath>' \
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
'';
makeFlags = [
@ -35,6 +30,11 @@ stdenv.mkDerivation rec {
] ++ stdenv.lib.optionals stdenv.isDarwin [
"NATIVE=osx CLANG=1"
"OSX_MIN=10.6" # SDL for macOS only supports deploying on 10.6 and above
] ++ stdenv.lib.optionals stdenv.cc.isGNU [
"WARNINGS+=-Wno-deprecated-declarations"
"WARNINGS+=-Wno-ignored-attributes"
] ++ stdenv.lib.optionals stdenv.cc.isClang [
"WARNINGS+=-Wno-inconsistent-missing-override"
];
postBuild = stdenv.lib.optionalString stdenv.isDarwin ''

View file

@ -21,11 +21,6 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs .
sed -i Makefile \
-e 's,-Werror,,g'
sed '1i#include <cmath>' \
-i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp
'';
makeFlags = [