Changeset 489 for branches/devel/Cbc/src


Ignore:
Timestamp:
Nov 11, 2006 9:28:21 PM (13 years ago)
Author:
ladanyi
Message:

added bunch of casts to void* so that gcc does not complain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/Cbc_C_Interface.cpp

    r486 r489  
    286286      prefix, numcols, numrows);
    287287    printf("%s model = %p, start = %p, index = %p, value = %p\n",
    288       prefix, model, start, index, value);
     288      prefix, (void*)model, (void*)start, (void*)index, (void*)value);
    289289    printf("%s collb = %p, colub = %p, obj = %p, rowlb = %p, rowub = %p\n",
    290       prefix, collb, colub, obj, rowlb, rowub);
     290      prefix, (void*)collb, (void*)colub, (void*)obj, (void*)rowlb, (void*)rowub);
    291291  }
    292292
     
    361361  char * result = model->information_;
    362362
    363   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     363  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    364364  return result;
    365365}
     
    10281028  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    10291029
    1030   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1030  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    10311031  return result;
    10321032}
     
    10451045  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    10461046
    1047   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1047  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    10481048  return result;
    10491049}
     
    10621062  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    10631063
    1064   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1064  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    10651065  return NULL;
    10661066}
     
    10791079  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    10801080
    1081   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1081  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    10821082  return NULL;
    10831083}
     
    10961096  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    10971097
    1098   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1098  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    10991099  return NULL;
    11001100}
     
    11131113  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    11141114
    1115   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1115  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    11161116  return NULL;
    11171117}
     
    11301130  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    11311131
    1132   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1132  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    11331133  return NULL;
    11341134}
     
    11471147  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    11481148
    1149   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1149  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    11501150  return NULL;
    11511151}
     
    11641164  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    11651165
    1166   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1166  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    11671167  return NULL;
    11681168}
     
    12021202  result = (matrix == NULL) ? NULL : matrix->getIndices();
    12031203
    1204   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1204  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    12051205  return result;
    12061206}
     
    12191219  result = (matrix == NULL) ? NULL : matrix->getVectorLengths();
    12201220
    1221   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1221  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    12221222  return result;
    12231223}
     
    12361236  result = (matrix == NULL) ? NULL : matrix->getElements();
    12371237
    1238   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1238  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    12391239  return result;
    12401240}
     
    12711271  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    12721272
    1273   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1273  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    12741274  return result;
    12751275}
     
    12881288  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    12891289
    1290   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1290  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    12911291  return result;
    12921292}
     
    13631363  printf("%s ERROR: NOT IMPLEMENTED\n",prefix);
    13641364
    1365   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1365  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    13661366  return result;
    13671367}
     
    20202020  result = model->model_->getRowActivity();
    20212021
    2022   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2022  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    20232023  return result;
    20242024}
     
    20342034  result = model->model_->getColSolution();
    20352035
    2036   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2036  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    20372037  return result;
    20382038}
     
    20612061  result = model->model_->getRowPrice();
    20622062
    2063   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2063  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    20642064  return result;
    20652065}
     
    20752075  result = model->model_->getReducedCost();
    20762076
    2077   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2077  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    20782078  return result;
    20792079}
     
    20892089  result = model->model_->getRowLower();
    20902090
    2091   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2091  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    20922092  return result;
    20932093}
     
    21032103  result = model->model_->getRowUpper();
    21042104
    2105   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2105  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    21062106  return result;
    21072107}
     
    21172117  result = model->model_->getObjCoefficients();
    21182118
    2119   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2119  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    21202120  return result;
    21212121}
     
    21312131  result = model->model_->getColLower();
    21322132
    2133   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2133  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    21342134  return result;
    21352135}
     
    21452145  result = model->model_->getColUpper();
    21462146
    2147   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2147  if (VERBOSE>0) printf("%s return %p\n",prefix,(void*)result);
    21482148  return result;
    21492149}
     
    21872187    argPrefix, numcols, numrows, numelem);
    21882188  printf("%s model = %p, start = %p, index = %p, value = %p\n",
    2189     argPrefix, model, start, index, value);
     2189    argPrefix, (void*)model, (void*)start, (void*)index, (void*)value);
    21902190  matrix->dumpMatrix(NULL);
    21912191  {
     
    21992199 
    22002200  printf("%s collb = %p, colub = %p, obj = %p, rowlb = %p, rowub = %p\n",
    2201     argPrefix, collb, colub, obj, rowlb, rowub);
     2201    argPrefix, (void*)collb, (void*)colub, (void*)obj, (void*)rowlb, (void*)rowub);
    22022202  printf("%s optimization direction = %g\n",argPrefix, Cbc_optimizationDirection(model));
    22032203  printf("  (1 - minimize, -1 - maximize, 0 - ignore)\n");
Note: See TracChangeset for help on using the changeset viewer.