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

core: fixes for gcc-13 support #1424

Merged

Conversation

bruno-at-bareos
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos commented Mar 27, 2023

This PR propose fixes to add support of gcc-13 as compiler

Fix issue#1517
OP#539

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
  • Required backport PRs have been created
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/master/fix-gcc13-build-errors branch from e06cfbc to 6fc87de Compare March 27, 2023 11:27
@pstorz pstorz self-requested a review April 3, 2023 10:14
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

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

Good work!
Please check the change in pull_request_template.

@pstorz pstorz self-assigned this Apr 3, 2023
@bruno-at-bareos
Copy link
Contributor Author

Good work! Please check the change in pull_request_template.
Found it perfect, line added also to this PR and pr-tool detect it correctly ;-)

Now the question still exist do we want this backported to 22 ? Maybe a good idea for all of us that have or will have soon gcc13 as default (and a +1 bonus point as gcc13 detected newer issues we were not aware of).

@pstorz pstorz mentioned this pull request Apr 3, 2023
10 tasks
@pstorz pstorz force-pushed the dev/bruno/master/fix-gcc13-build-errors branch 2 times, most recently from 660bcdc to a364db7 Compare April 3, 2023 13:18
bruno-at-bareos and others added 3 commits April 3, 2023 15:18
- add explicit system_error and stdexcept
- console_conf.cc fix std::move warning

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
@pstorz pstorz force-pushed the dev/bruno/master/fix-gcc13-build-errors branch from 6f70691 to 3b3d2e7 Compare April 3, 2023 13:19
@pstorz pstorz merged commit 966f9c6 into bareos:master Apr 3, 2023
@mschiff
Copy link
Contributor

mschiff commented Apr 20, 2023

Thanks for the fix!

there is one more missing include I discovered. In

core/src/stored/dev.cc

there is missing this include:

#include <stdexcept>

After adding this the source compiles fine with gcc 13

@bruno-at-bareos bruno-at-bareos deleted the dev/bruno/master/fix-gcc13-build-errors branch June 12, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants