diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-02-29 21:40:53 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-02-29 21:40:53 +0400 |
commit | 5e4f599b440bf2f109c185c42e5c01e24fac18fe (patch) | |
tree | b8e655be5aa3ed681f9e11f29375483e9abbb914 /tools/if_not_there.c | |
parent | 26aec11628a60a5ac92ba7a55e729b5d0138c85c (diff) | |
download | bdwgc-5e4f599b440bf2f109c185c42e5c01e24fac18fe.tar.gz |
tools: Prevent compiler warnings regarding unused argument and printf
* tools/if_mach.c (main): Remove unused "envp" argument.
* tools/if_not_there.c (main): Likewise.
* tools/if_mach.c: Expand tabs to spaces.
* tools/if_not_there.c: Likewise.
* tools/setjmp_t.c (getpagesize): Define for Win32; include windows.h.
* tools/setjmp_t.c (main): Make printf() format specifier string
non-empty (to suppress compiler warning).
* tools/setjmp_t.c (main): Adjust printf() format specifier for WORDSZ
value (unsigned long instead of int).
Diffstat (limited to 'tools/if_not_there.c')
-rw-r--r-- | tools/if_not_there.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/if_not_there.c b/tools/if_not_there.c index b71394c3..cae4880d 100644 --- a/tools/if_not_there.c +++ b/tools/if_not_there.c @@ -1,5 +1,5 @@ /* Conditionally execute a command based if the file argv[1] doesn't exist */ -/* Except for execvp, we stick to ANSI C. */ +/* Except for execvp, we stick to ANSI C. */ # include "private/gcconfig.h" # include <stdio.h> # include <stdlib.h> @@ -8,7 +8,7 @@ #include <dirent.h> #endif /* __DJGPP__ */ -int main(int argc, char **argv, char **envp) +int main(int argc, char **argv) { FILE * f; #ifdef __DJGPP__ @@ -22,8 +22,8 @@ int main(int argc, char **argv, char **envp) } #ifdef __DJGPP__ if ((d = opendir(argv[1])) != 0) { - closedir(d); - return(0); + closedir(d); + return(0); } #endif printf("^^^^Starting command^^^^\n"); |