Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jul 19, 2019

By default we set -Wall, which enabled -Wswitch, so this already prints warnings. However, it can be additionally be turned into an error when --enable-werror to be extra safe.

@maflcko
Copy link
Member Author

maflcko commented Jul 19, 2019

Can be tested by adding a new type to one of our enum classes or removing one from our switches.

@promag
Copy link
Contributor

promag commented Jul 19, 2019

Concept 👏

@practicalswift
Copy link
Contributor

utACK fabfcb5

Very nice!

@Empact
Copy link
Contributor

Empact commented Jul 21, 2019

ACK fabfcb5

@fanquake
Copy link
Member

Concept ACK

@DrahtBot
Copy link
Contributor

Gitian builds for commit febf3a8 (master):

Gitian builds for commit 58f130f (master and this pull):

maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Jul 29, 2019
fabfcb5 build: Treat -Wswitch as error when --enable-werror (MarcoFalke)

Pull request description:

  By default we set `-Wall`, which enabled `-Wswitch`, so this already prints warnings. However, it can be additionally be turned into an error when `--enable-werror` to be extra safe.

ACKs for top commit:
  practicalswift:
    utACK fabfcb5
  Empact:
    ACK bitcoin@fabfcb5

Tree-SHA512: f6bd6dba93a4f3740811eb338b6db93b4f72d237afe848aefd212abecaf4f430c5a417ccb2f9fec0bdbc46001176f0cfa0bbf4d99a7fcf0e34dca4a9476e8456
@maflcko maflcko merged commit fabfcb5 into bitcoin:master Jul 29, 2019
@maflcko maflcko deleted the 1907-buildSwitchError branch July 29, 2019 15:36
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 30, 2019
fabfcb5 build: Treat -Wswitch as error when --enable-werror (MarcoFalke)

Pull request description:

  By default we set `-Wall`, which enabled `-Wswitch`, so this already prints warnings. However, it can be additionally be turned into an error when `--enable-werror` to be extra safe.

ACKs for top commit:
  practicalswift:
    utACK fabfcb5
  Empact:
    ACK bitcoin@fabfcb5

Tree-SHA512: f6bd6dba93a4f3740811eb338b6db93b4f72d237afe848aefd212abecaf4f430c5a417ccb2f9fec0bdbc46001176f0cfa0bbf4d99a7fcf0e34dca4a9476e8456
kwvg added a commit to kwvg/dash that referenced this pull request Jun 17, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Jun 17, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Jun 17, 2021
UdjinM6 added a commit to dashpay/dash that referenced this pull request Jun 23, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants