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

Fix warnings on windows #159

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/win/drop_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ impl DropTarget {
}
}

#[allow(non_snake_case)]
fn on_event(&self, pdwEffect: Option<*mut DWORD>, event: MouseEvent) {
let Some(window_state) = self.window_state.upgrade() else {
return;
Expand Down Expand Up @@ -165,6 +166,7 @@ impl DropTarget {
}
}

#[allow(non_snake_case)]
unsafe extern "system" fn query_interface(
this: *mut IUnknown, riid: REFIID, ppvObject: *mut *mut winapi::ctypes::c_void,
) -> HRESULT {
Expand Down Expand Up @@ -197,6 +199,7 @@ impl DropTarget {
result as ULONG
}

#[allow(non_snake_case)]
unsafe extern "system" fn drag_enter(
this: *mut IDropTarget, pDataObj: *const IDataObject, grfKeyState: DWORD, pt: POINTL,
pdwEffect: *mut DWORD,
Expand All @@ -222,6 +225,7 @@ impl DropTarget {
S_OK
}

#[allow(non_snake_case)]
unsafe extern "system" fn drag_over(
this: *mut IDropTarget, grfKeyState: DWORD, pt: POINTL, pdwEffect: *mut DWORD,
) -> HRESULT {
Expand Down Expand Up @@ -251,6 +255,7 @@ impl DropTarget {
S_OK
}

#[allow(non_snake_case)]
unsafe extern "system" fn drop(
this: *mut IDropTarget, pDataObj: *const IDataObject, grfKeyState: DWORD, pt: POINTL,
pdwEffect: *mut DWORD,
Expand Down
2 changes: 1 addition & 1 deletion src/win/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,6 @@ unsafe impl HasRawDisplayHandle for Window<'_> {
}
}

pub fn copy_to_clipboard(data: &str) {
pub fn copy_to_clipboard(_data: &str) {
todo!()
}
Loading