Skip to content

fix: build failure with Clang 21#66

Open
gepbird wants to merge 1 commit intoleanflutter:mainfrom
gepbird:fix-build-failure
Open

fix: build failure with Clang 21#66
gepbird wants to merge 1 commit intoleanflutter:mainfrom
gepbird:fix-build-failure

Conversation

@gepbird
Copy link

@gepbird gepbird commented Oct 21, 2025

Closes #67.

Fixes these:

hotkey_manager_linux/linux/hotkey_manager_linux_plugin.cc:41:7: error: variable 'identifier' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]

hotkey_manager_linux/linux/hotkey_manager_linux_plugin.cc:112:7: error: variable 'keystring' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]

@mujeebcpy
Copy link

This works. now i am using dependency_overrides for hotkey_manager_linux to this fork. i hope this PR close and update comes in pub.dev soon.

@Merrit
Copy link
Contributor

Merrit commented Jan 30, 2026

For reference, the way to override is to add the following to pubspec:

dependency_overrides:
  # Fix compile failure: https://github.com/leanflutter/hotkey_manager/pull/66
  hotkey_manager_linux:
    git:
      url: https://github.com/gepbird/hotkey_manager.git
      path: packages/hotkey_manager_linux
      ref: 1b31e3ca4ab017ee72f54a7065b2073a88403d61

Merrit added a commit to Merrit/nyrna that referenced this pull request Jan 30, 2026
Also added dependency_overrides for hotkey_manager_linux to fix compile
issues: leanflutter/hotkey_manager#66
Merrit added a commit to Merrit/nyrna that referenced this pull request Jan 30, 2026
Also added dependency_overrides for hotkey_manager_linux to fix compile
issues: leanflutter/hotkey_manager#66
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.

Linux: 使用llvm21构建时报错

3 participants