From 345b7954fa243c4e89841547d05b6d043e253790 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Thu, 12 Dec 2019 01:59:13 +0000 Subject: [PATCH] Bug 1601590 - Undef _FORTIFY_SOURCE to fix build with --warnings-on-errors. r=glandium This is required on some systems such as Fedora to allow building with -O0 together with --warnings-as-errors due to a check in /usr/include/features.h Differential Revision: https://phabricator.services.mozilla.com/D56696 --- memory/replace/dmd/test/SmokeDMD.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/memory/replace/dmd/test/SmokeDMD.cpp b/memory/replace/dmd/test/SmokeDMD.cpp index 58ebf4ee5bc17..eaba951fb68bd 100644 --- a/memory/replace/dmd/test/SmokeDMD.cpp +++ b/memory/replace/dmd/test/SmokeDMD.cpp @@ -13,6 +13,11 @@ // will stop the post-processing (which includes stack fixing) from working // correctly. +// This is required on some systems such as Fedora to allow +// building with -O0 together with --warnings-as-errors due to +// a check in /usr/include/features.h +#undef _FORTIFY_SOURCE + #include #include #include