diff --git a/src/ld_so/src/lib.rs b/src/ld_so/src/lib.rs index d0adafc0e5c4abe64c1425372a80cb696f7b0a42..04ba7802a6949f3d4571f81dc1425905d6ac4120 100644 --- a/src/ld_so/src/lib.rs +++ b/src/ld_so/src/lib.rs @@ -48,7 +48,7 @@ pub unsafe extern "C" fn _start() { #[naked] #[no_mangle] -pub unsafe extern "C" fn main(argc: isize, argv: *const *const i8) -> usize { +pub unsafe extern "C" fn main(_argc: isize, _argv: *const *const i8) -> usize { // LD 0x1D } diff --git a/tests/stdio/all.c b/tests/stdio/all.c index de7c60ab63d8d346873ac87ec5f37bdd80f227c6..4807b584dbcfeaa251a9aeecdcf36767aae759a0 100644 --- a/tests/stdio/all.c +++ b/tests/stdio/all.c @@ -21,7 +21,7 @@ int main(void) { ERROR_IF(fgets, s, == NULL); printf("%s\n", in); - int vb = setvbuf(stdout, 0, _IONBF, 0); + __attribute__((unused)) int vb = setvbuf(stdout, 0, _IONBF, 0); //ERROR_IF(setvbuf, vb, > 0); // TODO: Cannot use this, doesn't set errno //UNEXP_IF(setvbuf, vb, != 0); diff --git a/tests/string/strsignal.c b/tests/string/strsignal.c index 1ddf08630da4b306f7b3feab13e8e8056ea18848..490d11f38cd813baffc62bbb8debb0ff637b7acb 100644 --- a/tests/string/strsignal.c +++ b/tests/string/strsignal.c @@ -7,8 +7,7 @@ int main(void) { puts("# strsignal #"); - char *x = strsignal(SIGHUP); - int res; + const char *x = strsignal(SIGHUP); if (strcmp(x, "Hangup")) { printf("Incorrect strsignal (1), found: .%s.\n", x); exit(EXIT_FAILURE); diff --git a/tests/unistd/swab.c b/tests/unistd/swab.c index c194ff280b936a576eb1a56547fa4909d7d85e94..d7927b66fa584260eba15be8255d20877c509a18 100644 --- a/tests/unistd/swab.c +++ b/tests/unistd/swab.c @@ -1,3 +1,4 @@ +#include <stdio.h> #include <unistd.h> int main(int argc, char ** argv) {