[Ecls-list] control may reach end of non-void function [-Wreturn-type]

Pascal J. Bourguignon pjb at informatimago.com
Wed Mar 4 08:47:55 UTC 2015


> On 03 Mar 2015, at 22:39, Daniel Kochmański <jackdaniel at hellsgate.pl> wrote:
> 
> Hey,
> 
> could you send example code and exact commands you use to compile it? I
> don't see such errors right here, but I might be doing it
> differently. Thanks!
> 
> Best regards,
> Daniel
> 
> Pascal J. Bourguignon writes:
> 
>> With ECL 15.2.21 obtained thru MacPorts, I get a lot of those errors:
>> 
>> /Users/pjb/.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/src/public/lisp/common-lisp/lisp-text/source-text.c:729:1: warning: 
>>      control may reach end of non-void function [-Wreturn-type]
>> }
>> ^
>> 
>> when compiling any code.


[pjb at larissa :0.0 ~]$ port list ecl
ecl                            @15.2.21        lang/ecl
[pjb at larissa :0.0 ~]$ port list gcc
[pjb at larissa :0.0 ~]$ gcc --version
gcc (MacPorts gcc49 4.9.2_1) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[pjb at larissa :0.0 ~]$ ecl --version
ECL 15.2.21
[pjb at larissa :0.0 ~]$ uname -a
Darwin larissa.local 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64 i386 MacBookAir6,2 Darwin
[pjb at larissa :0.0 ~]$ rm -rf ~/.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/
[pjb at larissa :0.0 ~]$ ecl -norc
ECL (Embeddable Common-Lisp) 15.2.21 (git:UNKNOWN)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
Copyright (C) 2015 Daniel Kochmański
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.  
Top level in: #<process TOP-LEVEL>.
> (load #P"~/quicklisp/setup.lisp")

;;; Loading "/Users/pjb/quicklisp/setup.lisp"
;;; Loading #P"/opt/local/lib/ecl-15.2.21/cmp.fas"
;;; Loading #P"/opt/local/lib/ecl-15.2.21/asdf.fas"
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/utils.c:493:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/impl.c:488:33: warning: 
      expression result unused [-Wunused-value]
          (ECL_CONS_CDR(T2)=v21,T2);
                                ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/impl.c:503:31: warning: 
      expression result unused [-Wunused-value]
        (ECL_CONS_CDR(T2)=v13,T2);
                              ^~
2 warnings generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/impl-util.c:829:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T0)=v7,T0);
                         ^~
1 warning generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/network.c:409:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/progress.c:86:49: warning: 
      expression result unused [-Wunused-value]
    (ecl_princ_char(ecl_char_code(T0),ECL_NIL),(T0));
                                                ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/progress.c:309:49: warning: 
      expression result unused [-Wunused-value]
    (ecl_princ_char(ecl_char_code(T0),ECL_NIL),(T0));
                                                ^~
2 warnings generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:405:27: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T1)=v8,T1);
                          ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:494:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T0)=v6,T0);
                         ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:720:27: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T1)=v6,T1);
                          ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:1040:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:2034:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T0)=v6,T0);
                         ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:2152:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:2796:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:3146:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:3557:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/http.c:4241:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
10 warnings generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:578:30: warning: 
      expression result unused [-Wunused-value]
       (ECL_CONS_CDR(T0)=v14,T0);
                             ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:1177:29: warning: 
      expression result unused [-Wunused-value]
      (ECL_CONS_CDR(T0)=v11,T0);
                            ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:1252:29: warning: 
      expression result unused [-Wunused-value]
      (ECL_CONS_CDR(T0)=v11,T0);
                            ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:1586:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T0)=v5,T0);
                         ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:1642:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T1)=v5,T1);
                         ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:2095:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:2767:27: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T0)=v9,T0);
                          ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:3303:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T1)=v5,T1);
                         ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:3368:28: warning: 
      expression result unused [-Wunused-value]
      (ECL_CONS_CDR(T0)=v8,T0);
                           ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:3438:28: warning: 
      expression result unused [-Wunused-value]
      (ECL_CONS_CDR(T0)=v8,T0);
                           ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:3551:28: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T0)=v12,T0);
                           ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:3593:28: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T0)=v12,T0);
                           ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:3638:28: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T0)=v13,T0);
                           ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:3683:28: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T0)=v13,T0);
                           ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist.c:3851:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
15 warnings generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:162:27: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T0)=v7,T0);
                          ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:295:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T1)=v6,T1);
                         ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:550:27: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T1)=v7,T1);
                          ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:600:27: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T1)=v7,T1);
                          ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:769:65: warning: 
      expression result unused [-Wunused-value]
    (ecl_princ_char(ecl_char_code(ECL_CONS_CAR(CLV1)),ECL_NIL),(ECL_CONS_CAR(CLV1)));
                                                                ^~~~~~~~~~~~~~~~~~
/opt/local/include/ecl/object.h:322:26: note: expanded from macro 'ECL_CONS_CAR'
#define ECL_CONS_CAR(x) (*(cl_object*)((char *)(x) - t_list))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:866:63: warning: 
      expression result unused [-Wunused-value]
  (ecl_princ_char(ecl_char_code(ECL_CONS_CAR(CLV1)),ECL_NIL),(ECL_CONS_CAR(CLV1)));
                                                              ^~~~~~~~~~~~~~~~~~
/opt/local/include/ecl/object.h:322:26: note: expanded from macro 'ECL_CONS_CAR'
#define ECL_CONS_CAR(x) (*(cl_object*)((char *)(x) - t_list))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:906:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:1143:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:1189:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:1213:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:1293:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:1550:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/setup.c:1589:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
13 warnings generated.
;;; Style warning:
;;;   in file client.lisp, position 1117
;;;   at (DEFMETHOD QUICKLOAD ...)
;;;   ! The variable EXPLAIN is not used.
;;; Style warning:
;;;   in file client.lisp, position 1117
;;;   at (DEFMETHOD QUICKLOAD ...)
;;;   ! The variable PROMPT is not used.
;;; Style warning:
;;;   in file client.lisp, position 1117
;;;   at (DEFMETHOD QUICKLOAD ...)
;;;   ! The variable VERBOSE is not used.
;;; Style warning:
;;;   in file client.lisp, position 1117
;;;   at (DEFMETHOD QUICKLOAD ...)
;;;   ! The variable SYSTEMS is not used..cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/client.c:378:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
;;; Warning: Lisp compilation had style-warnings while
             compiling #<cl-source-file "quicklisp" "client">
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/fetch-gzipped.c:151:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/client-info.c:468:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/client-info.c:699:1: warning: 
      control may reach end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist-update.c:242:28: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T1)=v10,T1);
                           ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist-update.c:326:28: warning: 
      expression result unused [-Wunused-value]
     (ECL_CONS_CDR(T1)=v10,T1);
                           ^~
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/dist-update.c:650:1: warning: 
      control reaches end of non-void function [-Wreturn-type]
}
^
3 warnings generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/misc.c:97:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T0)=v6,T0);
                         ^~
1 warning generated.
.cache/common-lisp/ecl-15.2.21-unknown-macosx-x64/Users/pjb/quicklisp/quicklisp/local-projects.c:469:26: warning: 
      expression result unused [-Wunused-value]
    (ECL_CONS_CDR(T0)=v5,T0);
                         ^~
1 warning generated.

#P"/Users/pjb/quicklisp/setup.lisp"
> (quit)
[pjb at larissa :0.0 ~]$ 

-- 
__Pascal J. Bourguignon__



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20150304/264c55de/attachment.html>


More information about the ecl-devel mailing list