Weeded out gcc warnings and added -Wall as a configure flag.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user