Ignoring system() return value produces warnings on some systems, just return it.

This commit is contained in:
Jorge Acereda 2020-05-08 21:17:25 +02:00
parent de89be2bb5
commit 9f87d17561
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
(doc sleep-seconds "Sleeps for a specified number of microseconds.")
(register sleep-micros (Fn [Int] ()))
(doc system "Performs a system command.")
(register system (Fn [&String] ()))
(register system (Fn [&String] Int))
(doc get-arg "Gets the command line argument at a specified index.")
(register get-arg (Fn [Int] (Ref String)))
(doc get-args-len "Gets the number of command line arguments.")

View File

@ -35,8 +35,8 @@ double System_nanotime() {
}
#endif
void System_system(const String *command) {
system(*command);
int System_system(const String *command) {
return system(*command);
}
Array System_args;