From: ehofman Date: Wed, 23 Jul 2003 09:59:39 +0000 (+0000) Subject: MSVC warning fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=adb5fb3bee7fd6672aa8285bac262c4817475d53;p=simgear.git MSVC warning fixes --- diff --git a/simgear/metar/Dcdmtrmk.cpp b/simgear/metar/Dcdmtrmk.cpp index b8fdd231..849d40a4 100644 --- a/simgear/metar/Dcdmtrmk.cpp +++ b/simgear/metar/Dcdmtrmk.cpp @@ -4165,7 +4165,7 @@ static bool isPtendency(char *string, Decoded_METAR *Mptr, int *NDEX) if(strlen(string) != 5) return FALSE; - else if(*string == '5' && ('0' <= *(string+1) <= '8') && + else if(*string == '5' && ('0' <= *(string+1) && *(string+1) <= '8') && (nisdigit(string+2,3) || strncmp(string+2,"///",3) == 0) ) { diff --git a/simgear/metar/Local.h b/simgear/metar/Local.h index f425777e..10f9081c 100644 --- a/simgear/metar/Local.h +++ b/simgear/metar/Local.h @@ -1096,8 +1096,8 @@ bool ccap2std(char *, Devaddr *, Diskaddr *); bool std2ccap(Devaddr *, Diskaddr *, char *); -char *strupr(char *); -char *strlwr(char *); +//char *strupr(char *); +//char *strlwr(char *); //char *strdup(char *); //int strcmpi(char *, char *); diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index dc4ffc69..f3a1b708 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -553,7 +553,7 @@ SGTexMultipleAnimation::SGTexMultipleAnimation( SGPropertyNode *prop_root, : SGAnimation(props, new ssgTexTrans), _prop((SGPropertyNode *)prop_root->getNode(props->getStringValue("property", "/null"), true)) { - int i; + unsigned int i; // Load animations vector transform_nodes = props->getChildren("transform"); _transform = new TexTransform [transform_nodes.size()];