mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Suppress dead code warnings for start when building servo.rs as a dylib.
This commit is contained in:
parent
bfffbe94ea
commit
c828a5d2ac
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,7 @@ pub mod platform;
|
||||||
#[cfg(not(test), target_os="linux")]
|
#[cfg(not(test), target_os="linux")]
|
||||||
#[cfg(not(test), target_os="macos")]
|
#[cfg(not(test), target_os="macos")]
|
||||||
#[start]
|
#[start]
|
||||||
|
#[allow(dead_code)]
|
||||||
fn start(argc: int, argv: **u8) -> int {
|
fn start(argc: int, argv: **u8) -> int {
|
||||||
native::start(argc, argv, proc() {
|
native::start(argc, argv, proc() {
|
||||||
opts::from_cmdline_args(os::args()).map(run);
|
opts::from_cmdline_args(os::args()).map(run);
|
||||||
|
@ -135,6 +136,7 @@ fn start(argc: int, argv: **u8) -> int {
|
||||||
|
|
||||||
#[cfg(not(test), target_os="android")]
|
#[cfg(not(test), target_os="android")]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub extern "C" fn android_start(argc: int, argv: **u8) -> int {
|
pub extern "C" fn android_start(argc: int, argv: **u8) -> int {
|
||||||
native::start(argc, argv, proc() {
|
native::start(argc, argv, proc() {
|
||||||
let mut args: Vec<~str> = vec!();
|
let mut args: Vec<~str> = vec!();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue