[En-Nut-Discussion] Update to: Nut/OS 4.1.5 and WINARM 4.1.0

Ernst Stippl ernst at stippl.org
Thu Apr 20 22:58:09 CEST 2006


Hi again!

I did a Nut/OS 4.1.5 build with WinARM 4.0.2 and it works without problems.
(as it does with various WinAVRs)
Also found some reports on "value computed is not used" warnings in gcc 4.1;
seems this behavious is (at least) "unexpected"

Sorry for the confusion.

ernst

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Ernst Stippl
Gesendet: Mittwoch, 19. April 2006 22:41
An: 'Ethernut User Chat (English)'
Betreff: [En-Nut-Discussion] Nut/OS 4.1.5 and WINARM 4.1.0

Hi!
 
I tried to build Nut/OS 5.1.4 with winarm 4.1.0 and it faild during build
with 

J:/ethernut-4.1.5-arm-4.1.0/nut/dev/mmcard.c: In function 'MmCardMount':
J:/ethernut-4.1.5-arm-4.1.0/nut/dev/mmcard.c:624: warning: value computed is
not used
make[1]: *** [mmcard.o] Error 1

The code around line 624 

    /* Parse the name for a partition number and a file system driver. */
    if (*name) {
        partno = atoi(name);
        do {
            name++;
        } while (*name && *name != '/');
        if (*name == '/') {
            name++;                    //this is line 624; it was originally
: *name++;
        }
    }

I changed line 624 from *name++; to name++; and it compiled without the
error.

Did I do something right or wrong?

regards
Ernst

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/319 - Release Date: 19.04.2006



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/319 - Release Date: 19.04.2006





More information about the En-Nut-Discussion mailing list