gcl warning message

From: Andreas Eder (Andreas.Eder_at_gmx.net)
Date: 11/26/04


Date: Fri, 26 Nov 2004 10:37:33 +0100

Hi,

I'm getting a strange message from gcl
(GCL (GNU Common Lisp) 2.6.5 ANSI Nov 26 2004 08:52:13)

When compiling maxima gcl produces the folling warning:

Compiling /home/are/maxima/maxima/src/commac.lisp.
End of Pass 1.
; (DEFUN LISTIFY1) is being compiled.
;; Warning: Wrong number of args for LAST: 2 instead of 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
Finished compiling binary-gcl/commac.o.

Why is that warning about the wrong number of args for LAST?
As far as I know last takes to argument.

I can reproduce it with a small example:

(defun test (l n) (last l n))

compiling that produces the same error message but the code seems to
work.

It all looks so strange to me.

Andreas

-- 
Wherever I lay my .emacs, there's my $HOME.


Relevant Pages

  • Re: reading file backwards and parsing
    ... a warning, it should have prevented the program from compiling ... I suspect you're operating the compiler in a non- ... > trying to read the log file backwards and compare the first column ...
    (comp.lang.c)
  • Re: Calling a matlab dll in java
    ... I got some warning from compiler as follows: ... C++ exception handler used, ... Specify -GX ... Studio\VC98\include\ostream: while compiling class-template ...
    (comp.soft-sys.matlab)
  • FreeBSD 6.1/AMD64: Celestia 1.3.2/1.4.1 not working?
    ... while compiling works on FreeBSD 6.1-PRE/AMD64, ... 3dsread.cpp:514: warning: unused parameter 'contentSize' ... *** Error code 1 ...
    (freebsd-questions)
  • Re: ATL Issues on VS 2005
    ... I am converting the code to class names (with only start ... this is a warning I get from compiling A.cpp ... again empty (for imports and exports), ...
    (microsoft.public.vc.atl)
  • UCBLogo fails to compile/install on Linux
    ... checking for gcc... ... graphics.c:1423: warning: pointer targets in passing argument 2 of ‘get_palette’ differ in signedness ... Loading 20calc-init... ... While compiling the end of the data in file ...
    (comp.lang.logo)