mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-26 05:45:37 +03:00
Ignoring system() return value produces warnings on some systems, just return it.
This commit is contained in:
parent
de89be2bb5
commit
9f87d17561
@ -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.")
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user