ghc-prim: Silence -Wsync-nand warning in atomic.c
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 8 Mar 2018 18:22:37 +0000 (13:22 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 8 Mar 2018 21:08:04 +0000 (16:08 -0500)
commit94f02547083cf6df686ea0b95fed050184c533de
treefba3431c7edae23b377d0b64531ff7814d9370bb
parented6f9fb9d5a684d2159c29633159c3254cf04deb
ghc-prim: Silence -Wsync-nand warning in atomic.c

GCC throws this warning to inform us that __sync_fetch_and_nand's
behavior changed in GCC 4.4. However, this causes the build to fail when
-Werror is used.

Test Plan: Validate with -Werror

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4481
libraries/ghc-prim/cbits/atomic.c