chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] GCC warnings


From: Alex Queiroz
Subject: [Chicken-users] GCC warnings
Date: Wed, 13 Jun 2007 23:31:25 -0300

Hallo,

    In #chicken Felix said he gets no warnings with GCC 4.x during
compilation with Chicken. I was on Windows then, but now, as promised,
I get lots of these:

iup.c: In function 'f_844':
iup.c:4527: warning: unused variable 'a'
iup.c:4525: warning: unused variable 'tmp'

Code:

/* k842 in k839 in canvas_action_cb in k815 in k811 in k808 in k805 */
static void C_ccall f_844(C_word c,C_word t0,C_word t1){
C_word tmp;
C_word t2;
C_word *a;
if(C_truep(t1)){
C_trace("iup.scm: 82   func");
t2=t1;
((C_proc5)C_retrieve_proc(t2))(5,t2,((C_word*)t0)[5],((C_word*)t0)[4],((C_word*)t0)[3],((C_word*)t0)[2]);}
else{
t2=((C_word*)t0)[5];
((C_proc2)(void*)(*((C_word*)t2+1)))(2,t2,C_SCHEME_UNDEFINED);}}


    And these:

iup.c:4544: warning: dereferencing type-punned pointer will break
strict-aliasing rules

Code:

if(!C_stack_probe(&a)){

    My box is Debian GNU/Linux 4.0 kernel 2.6 x86-64 GCC 4.1 3.

Cheers,
--
-alex
http://www.ventonegro.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]