HomePhabricator

build: ensure we aren't using GNU extensions

Description

build: ensure we aren't using GNU extensions

Summary:
Remove the use of gnu extensions:

  • anonymous structs
  • variadic macros with no argument

And add a Clang warning for detecting their future use.

Backport of core PR18088.

Test Plan:
With clang:

ninja all check

Check there is no warning.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D9109

Details

Provenance
DesWurstes <DesWurstes@users.noreply.github.com>Authored on Dec 31 2018, 10:50
FabienCommitted on Jan 29 2021, 09:52
FabienPushed on Jan 29 2021, 09:54
Reviewer
Restricted Project
Differential Revision
D9109: build: ensure we aren't using GNU extensions
Parents
rABCa952590df714: util: Detect posix_fallocate() instead of assuming
Branches
Unknown
Tags
Unknown