swaywm / swayidle

Idle management daemon for Wayland
MIT License
550 stars 50 forks source link

Fix clang tidy detections #95

Closed nikobockerman closed 3 years ago

nikobockerman commented 3 years ago

I ran clang-tidy against swayidle and it detected several problems. This PR addresses those problems.

However, clang-tidy also warns about the use of memset and sprintf and suggests to replace them with C11 functions memset_s and sprintf_s respectively. Those warnings are not addressed in this PR.