Here the problem was a little bit different: int main() { int var = 0; /* this value is never used */ var = 1; return var; }
Brgds, Viktor On Wed, Jun 24, 2009 at 5:27 PM, Enrico Maria Giordano < e.m.giord...@emagsoftware.it> wrote: > > -----Messaggio Originale----- Da: "Viktor Szakáts" <harbour...@syenar.hu> > A: "Harbour Project Main Developer List." <harbour@harbour-project.org> > Data invio: mercoledě 24 giugno 2009 17.21 > Oggetto: Re: [Harbour] SF.net SVN: harbour-project:[11515] trunk/harbour > > > EMG: >> >> Thanks. -ansi helped me to catch non-ANSI comments in GTWVG >> code (will test whole Harbour), but it also doesn't catch this >> problem. -pedantic is too pedantic for our source :) and also >> doesn't catch this warning. >> > > I'm using > > gcc -ansi -pedantic -Wall -O3 test.c -s -o > > and get > > test.c: In function 'main': > test.c:3: warning: unused variable 'n' > > compiling this sample > > int main() > { > int n; > return 0; > } > > EMG > > -- > EMAG Software Homepage: http://www.emagsoftware.it > The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum > The Best of Spectrum Games: http://www.emagsoftware.it/tbosg > The EMG Music page: http://www.emagsoftware.it/emgmusic > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour