Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Temporarily override the improper_ctypes warning #62. #67

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ pub fn cascade_list_for_languages(font: &CTFont, language_pref_list: &CFArray) -
}
}

// TODO - Remove the warning override once this is solved in core-foundation
#[allow(improper_ctypes)]
#[link(name = "ApplicationServices", kind = "framework")]
extern {
/*
Expand Down
2 changes: 2 additions & 0 deletions src/font_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ pub fn debug_descriptor(desc: &CTFontDescriptor) {
desc.show();
}

// TODO - Remove the warning override once this is solved in core-graphics
#[allow(improper_ctypes)]
extern {
/*
* CTFontTraits.h
Expand Down