BlockPo / BlockPo-to-Tradelayer

Incubation Repo for the TradeLayer protocol, 0.2.0
http://www.tradelayer.org
Other
8 stars 8 forks source link

build: ensure we aren't using GNU extensions #324

Closed philmb3487 closed 4 years ago

philmb3487 commented 4 years ago

In the codebase we are making use of some GNU extensions. We should either remove their usage, or at least amend our CXX compiler checks.

anonymous structs

  ./prevector.h:153:9: warning: anonymous structs are a GNU extension [-Wgnu-anonymous-struct]
          struct {

prevention

To ensure that usage doesn't creep back in we can add -Wgnu to our compile time flags, which will make Clang warn whenever it encounters GNU extensions.

santos177 commented 4 years ago

utACK