Weeded out gcc warnings and added -Wall as a configure flag.

This commit is contained in:
Abdulaziz Ghuloum
2007-12-10 15:02:25 -05:00
parent 0d79bcd42c
commit 7d7ceb6480
11 changed files with 15 additions and 14 deletions
-1
View File
@@ -357,7 +357,6 @@ static void empty_dropped_guardians(gc_t*);
*/
ikpcb* ik_collect(int req, ikpcb* pcb);
ikpcb* ik_collect_vararg(int req, ikpcb* pcb){
return ik_collect(req, pcb);
}
+1
View File
@@ -168,6 +168,7 @@ typedef struct ikpcb{
struct timeval collect_rtime;
} ikpcb;
ikpcb* ik_collect(int req, ikpcb* pcb);
void ikarus_usage_short(void);
void* ik_malloc(int);
+1
View File
@@ -2,6 +2,7 @@
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <unistd.h>
-1
View File
@@ -141,7 +141,6 @@ int main(int argc, char** argv){
ikarus_usage();
exit(0);
}
char buff[FILENAME_MAX];
char* boot_file = get_option("-b", argc, argv);
if(boot_file){
argc -= 2;
+2 -1
View File
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include "bootfileloc.h"
int main(int argc, char** argv){
@@ -35,7 +36,7 @@ int main(int argc, char** argv){
a[i+1] = argv[i];
}
a[argc+1] = 0;
int rv = execv(EXEFILE, a);
execv(EXEFILE, a);
fprintf(stderr, "Error executing ikarus from scheme-script: %s\n",
strerror(errno));
exit(-1);