Changeset 639 for branches/devel/Cbc/src


Ignore:
Timestamp:
Jun 25, 2007 10:13:57 PM (12 years ago)
Author:
ladanyi
Message:

got rid of lots of compiler warnings by static casting to void*

File:
1 edited

Legend:

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

    r631 r639  
    293293      prefix, numcols, numrows);
    294294    printf("%s model = %p, start = %p, index = %p, value = %p\n",
    295       prefix, model, start, index, value);
     295      prefix, static_cast<void*>(model), static_cast<const void*>(start),
     296           static_cast<const void*>(index), static_cast<const void*>(value));
    296297    printf("%s collb = %p, colub = %p, obj = %p, rowlb = %p, rowub = %p\n",
    297       prefix, collb, colub, obj, rowlb, rowub);
     298      prefix, static_cast<const void*>(collb),
     299           static_cast<const void*>(colub), static_cast<const void*>(obj),
     300           static_cast<const void*>(rowlb), static_cast<const void*>(rowub));
    298301  }
    299302
     
    972975  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    973976
    974   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     977  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    975978  return result;
    976979}
     
    989992  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    990993
    991   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     994  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    992995  return result;
    993996}
     
    10061009  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    10071010
    1008   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1011  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    10091012  return NULL;
    10101013}
     
    10231026  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    10241027
    1025   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1028  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    10261029  return NULL;
    10271030}
     
    10401043  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    10411044
    1042   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1045  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    10431046  return NULL;
    10441047}
     
    10571060  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    10581061
    1059   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1062  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    10601063  return NULL;
    10611064}
     
    10741077  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    10751078
    1076   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1079  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    10771080  return NULL;
    10781081}
     
    10911094  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    10921095
    1093   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1096  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    10941097  return NULL;
    10951098}
     
    11081111  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    11091112
    1110   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1113  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    11111114  return NULL;
    11121115}
     
    11461149  result = (matrix == NULL) ? NULL : matrix->getIndices();
    11471150
    1148   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1151  if (VERBOSE>0)
     1152    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    11491153  return result;
    11501154}
     
    11631167  result = (matrix == NULL) ? NULL : matrix->getVectorLengths();
    11641168
    1165   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1169  if (VERBOSE>0)
     1170    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    11661171  return result;
    11671172}
     
    11801185  result = (matrix == NULL) ? NULL : matrix->getElements();
    11811186
    1182   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1187  if (VERBOSE>0)
     1188    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    11831189  return result;
    11841190}
     
    12151221  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    12161222
    1217   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1223  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    12181224  return result;
    12191225}
     
    12321238  if (VERBOSE>0) printf("%s WARNING: NOT IMPLEMENTED\n",prefix);
    12331239
    1234   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1240  if (VERBOSE>0) printf("%s return %p\n",prefix, static_cast<void*>(result));
    12351241  return result;
    12361242}
     
    19651971  result = model->model_->getRowActivity();
    19661972
    1967   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1973  if (VERBOSE>0)
     1974    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    19681975  return result;
    19691976}
     
    19791986  result = model->model_->getColSolution();
    19801987
    1981   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     1988  if (VERBOSE>0)
     1989    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    19821990  return result;
    19831991}
     
    20062014  result = model->model_->getRowPrice();
    20072015
    2008   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2016  if (VERBOSE>0)
     2017    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    20092018  return result;
    20102019}
     
    20202029  result = model->model_->getReducedCost();
    20212030
    2022   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2031  if (VERBOSE>0)
     2032    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    20232033  return result;
    20242034}
     
    20342044  result = model->model_->getRowLower();
    20352045
    2036   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2046  if (VERBOSE>0)
     2047    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    20372048  return result;
    20382049}
     
    20482059  result = model->model_->getRowUpper();
    20492060
    2050   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2061  if (VERBOSE>0)
     2062    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    20512063  return result;
    20522064}
     
    20622074  result = model->model_->getObjCoefficients();
    20632075
    2064   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2076  if (VERBOSE>0)
     2077    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    20652078  return result;
    20662079}
     
    20762089  result = model->model_->getColLower();
    20772090
    2078   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2091  if (VERBOSE>0)
     2092    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    20792093  return result;
    20802094}
     
    20902104  result = model->model_->getColUpper();
    20912105
    2092   if (VERBOSE>0) printf("%s return %p\n",prefix,result);
     2106  if (VERBOSE>0)
     2107    printf("%s return %p\n",prefix, static_cast<const void*>(result));
    20932108  return result;
    20942109}
     
    21042119  result = model->model_->getObjValue();
    21052120
    2106   if (VERBOSE>0) printf("%s return %g\n",prefix,result);
     2121  if (VERBOSE>0)
     2122    printf("%s return %g\n",prefix, result);
    21072123  return result;
    21082124}
     
    21322148    argPrefix, numcols, numrows, numelem);
    21332149  printf("%s model = %p, start = %p, index = %p, value = %p\n",
    2134     argPrefix, model, start, index, value);
     2150    argPrefix, static_cast<void*>(model), static_cast<const void*>(start),
     2151         static_cast<const void*>(index), static_cast<const void*>(value));
    21352152  matrix->dumpMatrix(NULL);
    21362153  {
     
    21442161 
    21452162  printf("%s collb = %p, colub = %p, obj = %p, rowlb = %p, rowub = %p\n",
    2146     argPrefix, collb, colub, obj, rowlb, rowub);
     2163    argPrefix, static_cast<const void*>(collb),
     2164         static_cast<const void*>(colub), static_cast<const void*>(obj),
     2165         static_cast<const void*>(rowlb), static_cast<const void*>(rowub));
    21472166  printf("%s optimization direction = %g\n",argPrefix, Cbc_optimizationDirection(model));
    21482167  printf("  (1 - minimize, -1 - maximize, 0 - ignore)\n");
Note: See TracChangeset for help on using the changeset viewer.