From 5b189b0e1e2f51f367bfcb126b2f00a3702f352d Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 24 May 2019 14:23:12 -0400 Subject: [PATCH] HaikuDepot & PoorMan: Disable -Werror. Unlike the last commit, I am not sure whether the memcpy/memsets in here are properly safe to do. (They look OK, but a lot of them involve template classes that probably should not make such assumptions.) But the code has worked so far, so let's disable the -Werror so we can move forward with GCC 8 for now. --- src/apps/haikudepot/Jamfile | 5 ++++- src/apps/poorman/Jamfile | 11 +++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/apps/haikudepot/Jamfile b/src/apps/haikudepot/Jamfile index 875f9fec7b..8e69fdfa76 100644 --- a/src/apps/haikudepot/Jamfile +++ b/src/apps/haikudepot/Jamfile @@ -1,5 +1,8 @@ SubDir HAIKU_TOP src apps haikudepot ; +# disable -Werror for this directory only +SubDirC++Flags -Wno-error ; + include [ FDirName $(HAIKU_TOP) src apps haikudepot build jam HdsSchemaGenRules ] ; @@ -314,4 +317,4 @@ Depends [ FGristFiles $(applicationSources:S=.o) ] [ FGristFiles $(generatedRepositoryModelSourceFiles:S=.h) ] [ FGristFiles $(generatedReferenceParserSourceFiles:S=.h) ] [ FGristFiles $(generatedReferenceModelSourceFiles:S=.h) ] -; \ No newline at end of file +; diff --git a/src/apps/poorman/Jamfile b/src/apps/poorman/Jamfile index ac661568a7..2d49161dc0 100644 --- a/src/apps/poorman/Jamfile +++ b/src/apps/poorman/Jamfile @@ -1,5 +1,8 @@ SubDir HAIKU_TOP src apps poorman ; +# disable -Werror for this directory only +SubDirCcFlags -Wno-error ; + SubDirCcFlags [ FDefines HAVE__PROGNAME=1 HAVE_FCNTL_H=1 HAVE_GRP_H=1 HAVE_MEMORY_H=1 HAVE_POLL_H=1 HAVE_SYS_POLL_H=1 TIME_WITH_SYS_TIME=1 HAVE_DIRENT_H=1 HAVE_STRERROR=1 HAVE_WAITPID=1 HAVE_VSNPRINTF=1 HAVE_SETSID=1 HAVE_SIGSET=1 HAVE_ATOLL=1 HAVE_UNISTD_H=1 HAVE_GETPAGESIZE=1 HAVE_MMAP=1 HAVE_SELECT=1 HAVE_POLL=1 HAVE_TM_GMTOFF=1 HAVE_SOCKLENT=1 HAVE_INT64T=1 ] ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src apps poorman libhttpd ] ; @@ -42,20 +45,20 @@ Application PoorMan : PoorMan.cpp PoorManSiteView.cpp PoorManLogger.cpp PoorManLoggingView.cpp - PoorManPreferencesWindow.cpp + PoorManPreferencesWindow.cpp PoorManApplication.cpp constants.cpp - + # libhttpd libhttpd.c match.c tdate_parse.c - + : be network tracker [ TargetLibstdc++ ] localestub ; -DoCatalogs PoorMan : +DoCatalogs PoorMan : x-vnd.Haiku-PoorMan : constants.cpp