Skip to content

Commit

Permalink
Bug 1601590 - Undef _FORTIFY_SOURCE to fix build with --warnings-on-e…
Browse files Browse the repository at this point in the history
…rrors. 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
  • Loading branch information
sigiesec committed Dec 12, 2019
1 parent c0db22f commit 345b795
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions memory/replace/dmd/test/SmokeDMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <errno.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit 345b795

Please sign in to comment.