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

Fix build warnings #2912

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

zjeffer
Copy link
Contributor

@zjeffer zjeffer commented Feb 12, 2024

Fixes this warning:

In file included from ../waybar-git/src/modules/systemd_failed_units.cpp:1:
../waybar-git/include/modules/systemd_failed_units.hpp: In constructor ‘waybar::modules::SystemdFailedUnits::SystemdFailedUnits(const std::string&, const Json::Value&)’:
../waybar-git/include/modules/systemd_failed_units.hpp:23:30: warning: ‘waybar::modules::SystemdFailedUnits::nr_failed_user’ will be initialized after [-Wreorder]
   23 |   uint32_t nr_failed_system, nr_failed_user;
      |                              ^~~~~~~~~~~~~~
../waybar-git/include/modules/systemd_failed_units.hpp:22:15: warning:   ‘std::string waybar::modules::SystemdFailedUnits::last_status’ [-Wreorder]
   22 |   std::string last_status;
      |               ^~~~~~~~~~~
../waybar-git/src/modules/systemd_failed_units.cpp:13:1: warning:   when initialized here [-Wreorder]
   13 | SystemdFailedUnits::SystemdFailedUnits(const std::string& id, const Json::Value& config)
      | ^~~~~~~~~~~~~~~~~~

@Alexays Alexays merged commit 2c244b5 into Alexays:master Feb 12, 2024
6 of 9 checks passed
@zjeffer zjeffer deleted the fix/zjeffer/build-warnings branch February 12, 2024 20:05
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