Changeset 16546


Ignore:
Timestamp:
10/25/13 12:03:15 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: making compiler happy

Location:
issm/trunk-jpl/src/c
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/bamg/SubDomain.cpp

    r13036 r16546  
    1515        void SubDomain::Set(const Mesh & Th ,long i,Mesh & ThNew){
    1616                *this = Th.subdomains[i];
    17                 if ( head-Th.triangles<0 || head-Th.triangles>=Th.nbt){
     17                if( head-Th.triangles<0 || head-Th.triangles>=Th.nbt){
    1818                        _error_("head-Th.triangles<0 || head-Th.triangles>=Th.nbt");
    1919                }
    2020                head = ThNew.triangles + Th.GetId(head) ;
    21                 if (edge-Th.edges<0 || edge-Th.edges>=Th.nbe);{
     21                if(edge-Th.edges<0 || edge-Th.edges>=Th.nbe){
    2222                        _error_("edge-Th.edges<0 || edge-Th.edges>=Th.nbe");
    2323                }
  • issm/trunk-jpl/src/c/bamg/VertexOnGeom.cpp

    r12821 r16546  
    3838                *this = rec; 
    3939                meshvertex = ThNew.vertices + Th.GetId(meshvertex);
    40                 if (gv)
     40                if(gv){
    4141                 if (curvilincoord < 0 )
    4242                  gv = ThNew.Gh.vertices + Th.Gh.GetId(gv);
    4343                 else
    4444                  ge = ThNew.Gh.edges + Th.Gh.GetId(ge);
     45                }
    4546
    4647        }
  • issm/trunk-jpl/src/c/kml/KML_Document.cpp

    r15104 r16546  
    9595/*  loop over and process fields within opening and closing tags  */
    9696
    97         while (kstri=KMLFileToken(fid,
    98                                                           &ncom,&pcom)) {
     97        while((kstri=KMLFileToken(fid, &ncom,&pcom))) {
    9998                if      (!strncmp(kstri,"</Document",10)) {
    10099                        xDelete<char>(kstri);
     
    114113        this->AddCommnt(ncom,pcom);
    115114
    116         for (ncom; ncom>0; ncom--)
     115        for (ncom=ncom; ncom>0; ncom--)
    117116                xDelete<char>(pcom[ncom-1]);
    118117        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_File.cpp

    r15104 r16546  
    9696/*  loop over and process fields within opening and closing tags  */
    9797
    98         while (kstri=KMLFileToken(fid,
    99                                                           &ncom,&pcom)) {
     98        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    10099                if      (!strncmp(kstri,"</kml", 5)) {
    101100                        xDelete<char>(kstri);
     
    115114        this->AddCommnt(ncom,pcom);
    116115
    117         for (ncom; ncom>0; ncom--)
    118                 xDelete<char>(pcom[ncom-1]);
     116        for(; ncom>0; ncom--) xDelete<char>(pcom[ncom-1]);
    119117        xDelete<char*>(pcom);
    120118
  • issm/trunk-jpl/src/c/kml/KML_Folder.cpp

    r15104 r16546  
    9595/*  loop over and process fields within opening and closing tags  */
    9696
    97         while (kstri=KMLFileToken(fid,
    98                                                           &ncom,&pcom)) {
     97        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    9998                if      (!strncmp(kstri,"</Folder", 8)) {
    10099                        xDelete<char>(kstri);
     
    114113        this->AddCommnt(ncom,pcom);
    115114
    116         for (ncom; ncom>0; ncom--)
    117                 xDelete<char>(pcom[ncom-1]);
     115        for (ncom=ncom; ncom>0; ncom--) xDelete<char>(pcom[ncom-1]);
    118116        xDelete<char*>(pcom);
    119117
  • issm/trunk-jpl/src/c/kml/KML_GroundOverlay.cpp

    r15104 r16546  
    122122/*  loop over and process fields within opening and closing tags  */
    123123
    124         while (kstri=KMLFileToken(fid,
    125                                                           &ncom,&pcom)) {
     124        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    126125                if      (!strncmp(kstri,"</GroundOverlay",15)) {
    127126                        xDelete<char>(kstri);
     
    154153        this->AddCommnt(ncom,pcom);
    155154
    156         for (ncom; ncom>0; ncom--)
     155        for(ncom=ncom; ncom>0; ncom--)
    157156                xDelete<char>(pcom[ncom-1]);
    158157        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_Icon.cpp

    r15104 r16546  
    134134/*  loop over and process fields within opening and closing tags  */
    135135
    136         while (kstri=KMLFileToken(fid,
    137                                                           &ncom,&pcom)) {
     136        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    138137                if      (!strncmp(kstri,"</Icon", 6)) {
    139138                        xDelete<char>(kstri);
     
    170169        this->AddCommnt(ncom,pcom);
    171170
    172         for (ncom; ncom>0; ncom--)
     171        for(ncom=ncom; ncom>0; ncom--)
    173172                xDelete<char>(pcom[ncom-1]);
    174173        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_LatLonBox.cpp

    r15104 r16546  
    109109/*  loop over and process fields within opening and closing tags  */
    110110
    111         while (kstri=KMLFileToken(fid,
    112                                                           &ncom,&pcom)) {
     111        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    113112                if      (!strncmp(kstri,"</LatLonBox",11)) {
    114113                        xDelete<char>(kstri);
     
    149148        this->AddCommnt(ncom,pcom);
    150149
    151         for (ncom; ncom>0; ncom--)
     150        for (ncom=ncom; ncom>0; ncom--)
    152151                xDelete<char>(pcom[ncom-1]);
    153152        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_LineString.cpp

    r15843 r16546  
    129129/*  loop over and process fields within opening and closing tags  */
    130130
    131         while (kstri=KMLFileToken(fid,
    132                                                           &ncom,&pcom)) {
     131        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    133132                if      (!strncmp(kstri,"</LineString",12)) {
    134133                        xDelete<char>(kstri);
     
    165164        this->AddCommnt(ncom,pcom);
    166165
    167         for (ncom; ncom>0; ncom--)
     166        for (ncom=ncom; ncom>0; ncom--)
    168167                xDelete<char>(pcom[ncom-1]);
    169168        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_LineStyle.cpp

    r15104 r16546  
    101101/*  loop over and process fields within opening and closing tags  */
    102102
    103         while (kstri=KMLFileToken(fid,
    104                                                           &ncom,&pcom)) {
     103        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    105104                if      (!strncmp(kstri,"</LineStyle",11)) {
    106105                        xDelete<char>(kstri);
     
    125124        this->AddCommnt(ncom,pcom);
    126125
    127         for (ncom; ncom>0; ncom--)
     126        for(ncom=ncom; ncom>0; ncom--)
    128127                xDelete<char>(pcom[ncom-1]);
    129128        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_LinearRing.cpp

    r15843 r16546  
    127127/*  loop over and process fields within opening and closing tags  */
    128128
    129         while (kstri=KMLFileToken(fid,&ncom,&pcom)){
     129        while((kstri=KMLFileToken(fid,&ncom,&pcom))){
    130130                if (!strncmp(kstri,"</LinearRing",12)){
    131131                        xDelete<char>(kstri);
     
    153153        this->AddCommnt(ncom,pcom);
    154154
    155         for(ncom; ncom>0; ncom--)
     155        for(ncom=ncom; ncom>0; ncom--)
    156156                xDelete<char>(pcom[ncom-1]);
    157157        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_MultiGeometry.cpp

    r15104 r16546  
    134134/*  loop over and process fields within opening and closing tags  */
    135135
    136         while (kstri=KMLFileToken(fid,
    137                                                           &ncom,&pcom)) {
     136        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    138137                if      (!strncmp(kstri,"</MultiGeometry",15)) {
    139138                        xDelete<char>(kstri);
     
    183182        this->AddCommnt(ncom,pcom);
    184183
    185         for (ncom; ncom>0; ncom--)
     184        for(ncom=ncom; ncom>0; ncom--)
    186185                xDelete<char>(pcom[ncom-1]);
    187186        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_Placemark.cpp

    r15104 r16546  
    135135/*  loop over and process fields within opening and closing tags  */
    136136
    137         while (kstri=KMLFileToken(fid,
    138                                                           &ncom,&pcom)) {
     137        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    139138                if      (!strncmp(kstri,"</Placemark",11)) {
    140139                        xDelete<char>(kstri);
     
    184183        this->AddCommnt(ncom,pcom);
    185184
    186         for (ncom; ncom>0; ncom--)
     185        for(ncom=ncom; ncom>0; ncom--)
    187186                xDelete<char>(pcom[ncom-1]);
    188187        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_Point.cpp

    r15104 r16546  
    114114/*  loop over and process fields within opening and closing tags  */
    115115
    116         while (kstri=KMLFileToken(fid,
    117                                                           &ncom,&pcom)) {
     116        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    118117                if      (!strncmp(kstri,"</Point", 7)) {
    119118                        xDelete<char>(kstri);
     
    140139        this->AddCommnt(ncom,pcom);
    141140
    142         for (ncom; ncom>0; ncom--)
     141        for(ncom=ncom; ncom>0; ncom--)
    143142                xDelete<char>(pcom[ncom-1]);
    144143        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_PolyStyle.cpp

    r15104 r16546  
    107107/*  loop over and process fields within opening and closing tags  */
    108108
    109         while (kstri=KMLFileToken(fid,
    110                                                           &ncom,&pcom)) {
     109        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    111110                if      (!strncmp(kstri,"</PolyStyle",11)) {
    112111                        xDelete<char>(kstri);
     
    135134        this->AddCommnt(ncom,pcom);
    136135
    137         for (ncom; ncom>0; ncom--)
     136        for(ncom=ncom; ncom>0; ncom--)
    138137                xDelete<char>(pcom[ncom-1]);
    139138        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_Polygon.cpp

    r15104 r16546  
    169169/*  loop over and process fields within opening and closing tags  */
    170170
    171         while (kstri=KMLFileToken(fid,
    172                                                           &ncom,&pcom)) {
     171        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    173172                if      (!strncmp(kstri,"</Polygon", 9)) {
    174173                        xDelete<char>(kstri);
     
    197196/*  loop over and process fields within outer boundary  */
    198197
    199                         while (kstrj=KMLFileToken(fid,
    200                                                                           &ncom,&pcom)) {
     198                        while((kstrj=KMLFileToken(fid, &ncom,&pcom))){
    201199                                if      (!strncmp(kstrj,"</outerBoundaryIs",17)) {
    202200                                        xDelete<char>(kstrj);
     
    224222/*  loop over and process fields within inner boundaries  */
    225223
    226                         while (kstrj=KMLFileToken(fid,
    227                                                                           &ncom,&pcom)) {
     224                        while((kstrj=KMLFileToken(fid, &ncom,&pcom))){
    228225                                if      (!strncmp(kstrj,"</innerBoundaryIs",17)) {
    229226                                        xDelete<char>(kstrj);
     
    255252        this->AddCommnt(ncom,pcom);
    256253
    257         for (ncom; ncom>0; ncom--)
     254        for(ncom=ncom; ncom>0; ncom--)
    258255                xDelete<char>(pcom[ncom-1]);
    259256        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_Style.cpp

    r15104 r16546  
    180180/*  loop over and process fields within opening and closing tags  */
    181181
    182         while (kstri=KMLFileToken(fid,
    183                                                           &ncom,&pcom)) {
     182        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    184183                if      (!strncmp(kstri,"</Style", 7)) {
    185184                        xDelete<char>(kstri);
     
    229228        this->AddCommnt(ncom,pcom);
    230229
    231         for (ncom; ncom>0; ncom--)
     230        for(ncom=ncom; ncom>0; ncom--)
    232231                xDelete<char>(pcom[ncom-1]);
    233232        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/kml/KML_Unknown.cpp

    r15104 r16546  
    4343        KML_Object::Echo();
    4444
    45         if (value     )
     45        if(value){
    4646                if(flag) _printf0_("         value: \"" << value << "\"\n");
    47     else
    48         if(flag) _printf0_("         value: [none]\n");
     47        }
     48        else{
     49                if(flag) _printf0_("         value: [none]\n");
     50        }
    4951
    5052        return;
     
    7981                if(flag) _printf0_(indent << "         value: \"" << vtoken);
    8082
    81                 while (vtoken=strtok(NULL,nl))
     83                while((vtoken=strtok(NULL,nl)))
    8284                        if(flag) _printf0_("\n" << indent << "                 " << vtoken);
    8385                if(flag) _printf0_("\"\n");
     
    110112                fprintf(filout,"%s  %s\n",indent,vtoken);
    111113
    112                 while (vtoken=strtok(NULL,nl))
     114                while((vtoken=strtok(NULL,nl)))
    113115                        fprintf(filout,"%s  %s\n",indent,vtoken);
    114116
     
    146148/*  loop over and process fields within opening and closing tags  */
    147149
    148         while (kstri=KMLFileToken(fid,
    149                                                           &ncom,&pcom)) {
     150        while((kstri=KMLFileToken(fid, &ncom,&pcom))){
    150151//              _printf0_("KML_Unknown::Read -- kstri=" << kstri << ".\n");
    151152                if      (!strncmp(&kstri[0],"</", 2) &&
     
    183184        this->AddCommnt(ncom,pcom);
    184185
    185         for (ncom; ncom>0; ncom--)
     186        for(ncom=ncom; ncom>0; ncom--)
    186187                xDelete<char>(pcom[ncom-1]);
    187188        xDelete<char*>(pcom);
  • issm/trunk-jpl/src/c/modules/KMLFileReadx/KMLFileReadx.cpp

    r15104 r16546  
    2222/*  read kml file  */
    2323
    24         while (kstr=KMLFileToken(fid,
    25                                                          NULL,NULL)) {
     24        while((kstr=KMLFileToken(fid, NULL,NULL))){
    2625                if      (!strncmp(kstr,"<?xml"    ,5)) {
    2726                        kxml=new KML_File();
  • issm/trunk-jpl/src/c/modules/KMLMeshWritex/KMLMeshWritex.cpp

    r15104 r16546  
    5656        sprintf(klsty->color     ,"ff000000");
    5757        sprintf(klsty->colormode ,"normal");
    58         klsty->width     ,lwidth;
     58        klsty->width     =lwidth;
    5959        kpsty=new KML_PolyStyle();
    6060        sprintf(kpsty->color     ,"00ffffff");
Note: See TracChangeset for help on using the changeset viewer.