LibC+userspace: Make everything compile with -Wall -Wextra -Werror
I added -Wall -Wextra -Werror as public compile flags to libc. Now everything in userspace in compiled using these flags. I made all necessary changes to allow compilation to work. Only exception is execvp which has a large stack usage. Maybe it should use malloc for the buffer but posix allows ENOMEM only when kernel is out of memory... This can be fixed when fexecve is implemented and there is no need for absolute path.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
void print_timestamp(timespec ts)
|
||||
{
|
||||
auto time = BAN::from_unix_time(ts.tv_sec);
|
||||
printf("%04d-%02d-%02d %02d:%02d:%02d.%09d",
|
||||
printf("%04d-%02d-%02d %02d:%02d:%02d.%09ld",
|
||||
time.year, time.month, time.day,
|
||||
time.hour, time.minute, time.second,
|
||||
ts.tv_nsec
|
||||
|
||||
Reference in New Issue
Block a user