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

Allow one to easily configure a build with commonly useful warnings #1740

Merged
merged 2 commits into from Aug 11, 2021

Conversation

Martchus
Copy link
Contributor

@Martchus Martchus commented Aug 9, 2021

  • This change does not change anything unless one adds
    -DENABLE_WARNINGS or -DTREAT_WARNINGS_AS_ERRORS to the CMake
    arguments.
  • At this point this is mainly intended to configure a development build
    with useful warnings enabled more easily. In other context (e.g. during
    rpm package builds) one can still configure warnings as they make sense
    in this context (e.g. by using certain rpm macros).
  • If all warnings are fixed, it would make sense to enable both settings
    for CI builds.

* This change does *not* change anything unless one adds
  `-DENABLE_WARNINGS` or `-DTREAT_WARNINGS_AS_ERRORS` to the CMake
  arguments.
* At this point this is mainly intended to configure a development build
  with useful warnings enabled more easily. In other context (e.g. during
  rpm package builds) one can still configure warnings as they make sense
  in this context (e.g. by using certain rpm macros).
* If all warnings are fixed, it would make sense to enable both settings
  for CI builds.
@Martchus
Copy link
Contributor Author

Martchus commented Aug 9, 2021

Btw, I leave it for later to actually fix the problems (or drop some of the warnings at least for some source files again) so we can enable them within CI runs.

We cannot fix the warnings in this generated file and they look harmless.
Copy link
Member

@asdil12 asdil12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@asdil12 asdil12 merged commit 6e7b8d9 into os-autoinst:master Aug 11, 2021
@Martchus Martchus deleted the debug-segfault branch August 11, 2021 09:29
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.

None yet

2 participants