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

Fixed sway IPC compile warnings #2366

Merged
merged 1 commit into from
Jul 30, 2023
Merged

Conversation

zjeffer
Copy link
Contributor

@zjeffer zjeffer commented Jul 30, 2023

I havent' tested this because I don't use sway, but it's a pretty small change.

Fixes these warnings:

[103/154] Compiling C++ object waybar.p/src_modules_sway_ipc_client.cpp.o
../waybar-hyprland-git/src/modules/sway/ipc/client.cpp: In destructor ‘waybar::modules::sway::Ipc::~Ipc()’:
../waybar-hyprland-git/src/modules/sway/ipc/client.cpp:20:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   20 |     write(fd_, "close-sway-ipc", 14);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../waybar-hyprland-git/src/modules/sway/ipc/client.cpp:25:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   25 |     write(fd_event_, "close-sway-ipc", 14);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@Alexays Alexays merged commit 8882826 into Alexays:master Jul 30, 2023
8 checks passed
@zjeffer zjeffer deleted the fix/build-warnings branch July 30, 2023 09:57
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