Merge branch 'warning' into 'master'
Fix few warnings See merge request redox-os/relibc!236
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char ** argv) {
|
||||
|
||||
Reference in New Issue
Block a user