Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable -warn-error by default #168

Merged
merged 1 commit into from
Jan 10, 2017
Merged

Conversation

djs55
Copy link
Collaborator

@djs55 djs55 commented Jan 5, 2017

Ideally we'd like to enable -warn-error for developer builds but disable
-warn-error for tagged release builds. This patch disables -warn-error
for both cases: it's not worth too much work on the current build and
packaging system when we're likely to switch over to topkg soon.

This allows vpnkit to build with lwt.2.7.0.

Related to [ocaml/opam-repository#8195]
Related to [ocaml/opam-repository#8196]

Signed-off-by: David Scott [email protected]

@dsheets
Copy link
Contributor

dsheets commented Jan 5, 2017

Perhaps you could just remove warning 3 (deprecated feature) from the warning-as-error list? Most others are safe, I believe, and help keep the codebase clean by making warnings unmissable.

Ideally we would keep this as -warn-error for developer builds but disable
for tagged release builds. This patch disables -warn-error for warning 3
for both cases: it's not worth too much work on the current build and
packaging system when we're likely to switch over to topkg soon.

This allows vpnkit to build with lwt.2.7.0.

Related to [ocaml/opam-repository#8195]
Related to [ocaml/opam-repository#8196]

Signed-off-by: David Scott <[email protected]>
@djs55
Copy link
Collaborator Author

djs55 commented Jan 10, 2017

@dsheets good idea, I'll do that.

@djs55 djs55 merged commit 7a7de70 into moby:master Jan 10, 2017
@djs55 djs55 deleted the disable-warn-error branch January 10, 2017 18:12
avsm pushed a commit to avsm/vpnkit that referenced this pull request May 5, 2017
Use cstruct 2.2 to avoid memset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants