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

refactor(backlight): use concrete types for some helper functions #2638

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

staticssleever668
Copy link
Contributor

Doesn't look like there was any use for being so generic. This fixes linking of the best_device() function with 'mold' linker.
I didn't test if the backlight module still works fine - I don't have a device that supports it in easy availability, but I didn't touch any functionality either.

Fixes error mold: error: undefined symbol: waybar::util::BacklightDevice const* waybar::util::BacklightBackend::best_device<__gnu_cxx::__normal_iterator<waybar::util::BacklightDevice const*, std::vector<waybar::util::BacklightDevice, std::allocator<waybar::util::BacklightDevice> > > >(__gnu_cxx::__normal_iterator<waybar::util::BacklightDevice const*, std::vector<waybar::util::BacklightDevice, std::allocator<waybar::util::BacklightDevice> > >, __gnu_cxx::__normal_iterator<waybar::util::BacklightDevice const*, std::vector<waybar::util::BacklightDevice, std::allocator<waybar::util::BacklightDevice> > >, std::basic_string_view<char, std::char_traits<char> >)

This fixes linking of the best_device() function with 'mold' linker.
@Alexays Alexays merged commit f228c13 into Alexays:master Mar 22, 2024
@staticssleever668 staticssleever668 deleted the fix_mold_linking branch March 22, 2024 22: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