Cleanup gcc-3.2 compiler warning - gcl.git - GNU Common Lisp

index : gcl.git
GNU Common Lisp
summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamm Maguire <camm@debian.org>2003年02月27日 15:50:59 +0000
committerCamm Maguire <camm@debian.org>2003年02月27日 15:50:59 +0000
commitf360a4c8daa2f1dfb64270c7444954d5e81f9016 (patch)
treecc843afdcdb422bf21c8f375c9bf60be95bab836
parent17ed3e9b1ffde96d8d0a791947da813a8d4850cd (diff)
downloadgcl-f360a4c8daa2f1dfb64270c7444954d5e81f9016.tar.gz
Cleanup gcc-3.2 compiler warning
Diffstat
-rw-r--r--gcl/h/protoize.h 1
-rwxr-xr-xgcl/o/array.c 8
-rwxr-xr-xgcl/o/error.c 15
-rwxr-xr-xgcl/o/fasdump.c 9
4 files changed, 23 insertions, 10 deletions
diff --git a/gcl/h/protoize.h b/gcl/h/protoize.h
index 96889aef1..92247d762 100644
--- a/gcl/h/protoize.h
+++ b/gcl/h/protoize.h
@@ -501,6 +501,7 @@ typedef void (*funcvoid)(void);
/* unixfsys.c:329:OF */ extern bool file_exists (object file); /* (file) object file; */
/* unixfsys.c:359:OF */ extern FILE *backup_fopen (char *filename, char *option); /* (filename, option) char *filename; char *option; */
/* unixfsys.c:372:OF */ extern int file_len (FILE *fp); /* (fp) FILE *fp; */
+/* unixfsys.c:382:OF */ extern object truename (object); /* () */
/* unixfsys.c:382:OF */ extern void Ltruename (void); /* () */
/* unixfsys.c:418:OF */ extern object fSsetenv (object variable, object value); /* (variable, value) object variable; object value; */
/* unixfsys.c:442:OF */ extern object fLdelete_file (object path); /* (path) object path; */
diff --git a/gcl/o/array.c b/gcl/o/array.c
index d4a246cf2..5f5a64b01 100755
--- a/gcl/o/array.c
+++ b/gcl/o/array.c
@@ -280,9 +280,13 @@ DEFUNO_NEW("ASET", object, fSaset, SI, 1, ARG_LIMIT, NONE, OO,
rank-- ;
while(1)
{
- if (k >= x->a.a_dims[m])
+ if (k >= x->a.a_dims[m]) {
+ object x,x1;
+ x=make_fixnum(m);
+ x1=make_fixnum(k);
FEerror("Index number ~a: ~a to array is out of bounds",
- 2,make_fixnum (m),make_fixnum(k));
+ 2,x,x1);
+ }
i1 += k;
if (m < rank)
{object u;
diff --git a/gcl/o/error.c b/gcl/o/error.c
index fafb65379..d22ebcf6a 100755
--- a/gcl/o/error.c
+++ b/gcl/o/error.c
@@ -777,16 +777,21 @@ vfun_wrong_number_of_args(object x)
void
check_arg_range(int n, int m)
-{ if (VFUN_NARGS < n)
- Icall_error_handler(
- sKtoo_few_arguments,
+{
+ object x,x1;
+
+ x=make_fixnum(n);
+ x1=make_fixnum(VFUN_NARGS);
+ if (VFUN_NARGS < n)
+ Icall_error_handler(
+ sKtoo_few_arguments,
make_simple_string("Needed at least ~D args, but received ~d"),
- 2,make_fixnum(n),make_fixnum(VFUN_NARGS));
+ 2,x,x1);
else if (VFUN_NARGS > m)
Icall_error_handler(
sKtoo_many_arguments,
make_simple_string("Needed no more than ~D args, but received ~d"),
- 2,make_fixnum(m),make_fixnum(VFUN_NARGS));
+ 2,x,x1);
}
diff --git a/gcl/o/fasdump.c b/gcl/o/fasdump.c
index 6d1096709..a4c80cc49 100755
--- a/gcl/o/fasdump.c
+++ b/gcl/o/fasdump.c
@@ -1399,9 +1399,12 @@ read_fasd1(int i, object *loc)
case DP(d_begin_dump:)
{int vers=GETD("version=%d");
- if(vers!=FASD_VERSION)
- FEerror("This file was dumped with FASD version ~a not ~a.",
- 2,make_fixnum(vers),make_fixnum(FASD_VERSION));}
+ if(vers!=FASD_VERSION) {
+ object x,x1;
+ x=make_fixnum(vers);
+ x1=make_fixnum(FASD_VERSION);
+ FEerror("This file was dumped with FASD version ~a not ~a.",
+ 2,x,x1);}}
{int leng;
GET4(leng);
current_fasd.table_length=make_fixnum(leng);}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月04日 18:39:46 +0000

AltStyle によって変換されたページ (->オリジナル) /