Skip to content

fix: warnning dll-attribute-on-redeclaration on windows#1040

Open
mengshengwu wants to merge 1 commit intomainfrom
fix/mengsheng/win-redeclaration-warning
Open

fix: warnning dll-attribute-on-redeclaration on windows#1040
mengshengwu wants to merge 1 commit intomainfrom
fix/mengsheng/win-redeclaration-warning

Conversation

@mengshengwu
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a Windows-specific compiler warning (dll-attribute-on-redeclaration) related to the C declaration of the Go-exported go_log_wrap callback in the Nexa SDK cgo bridge.

Changes:

  • Add a Windows-only __declspec(dllexport) declaration for go_log_wrap to match the expected DLL export attribute and avoid redeclaration warnings.
  • Keep the existing extern declaration for non-Windows platforms.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant