Commit 9aac2672 authored by Mateusz Mikuła's avatar Mateusz Mikuła

Fix few warnings

parent f1be9266
Pipeline #5321 passed with stages
in 8 minutes and 25 seconds
......@@ -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
}
......
......@@ -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);
......
......@@ -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);
......
#include <stdio.h>
#include <unistd.h>
int main(int argc, char ** argv) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment