Skip to content

Commit 0214133

Browse files
committed
Temporarily override the improper_ctypes warning servo#62.
The remaining warnings are from types in core-foundation(CGAffineTransform) and core-graphics(CFNumberRef). When they are rectified the warnings can be turned back on.
1 parent 69611a4 commit 0214133

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/font.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ pub fn cascade_list_for_languages(font: &CTFont, language_pref_list: &CFArray) -
399399
}
400400
}
401401

402+
// TODO - Remove the warning override once this is solved in core-foundation
403+
#[allow(improper_ctypes)]
402404
#[link(name = "ApplicationServices", kind = "framework")]
403405
extern {
404406
/*

src/font_descriptor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ pub fn debug_descriptor(desc: &CTFontDescriptor) {
312312
desc.show();
313313
}
314314

315+
// TODO - Remove the warning override once this is solved in core-graphics
316+
#[allow(improper_ctypes)]
315317
extern {
316318
/*
317319
* CTFontTraits.h

0 commit comments

Comments
 (0)