Changeset d6acb55 in tol


Ignore:
Timestamp:
Jan 10, 2015, 3:13:18 PM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
ee23e9e
Parents:
995e9b3
Message:

vmat.cpp:591:27: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]

common_->try_catch = NULL;

y varios del tipo

warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6426 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol/btol/vmatrix_type
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/vmatrix_type/vmat.cpp

    r995e9b3 rd6acb55  
    589589  common_->print_function = cholmod_print_function;
    590590  common_->error_handler  = cholmod_error_handler;
    591   common_->try_catch      = NULL;
     591  common_->try_catch      = 0;
    592592
    593593  //Stop when non positive definite is found
    … …  
    11511151////////////////////////////////////////////////////////////////////////////////
    11521152{
    1153   static char* name = "GetCell";
     1153  static const char* name = "GetCell";
    11541154  int accessCode;
    11551155  double* y = BVMat::checkCell(i, j, accessCode, true, name, true);
    … …  
    11631163////////////////////////////////////////////////////////////////////////////////
    11641164{
    1165   static char* name = "PutCell";
     1165  static const char* name = "PutCell";
    11661166  int accessCode;
    11671167  double* y = BVMat::checkCell(i, j, accessCode, false, name, true);
    … …  
    11911191////////////////////////////////////////////////////////////////////////////////
    11921192{
    1193   static char* name = "PutCells";
     1193  static const char* name = "PutCells";
    11941194  int r = triplet.Rows();
    11951195  int c = triplet.Columns();
    … …  
    14001400////////////////////////////////////////////////////////////////////////////////
    14011401{
    1402   static char* fName = "PutVMatBlock";
     1402  static const char* fName = "PutVMatBlock";
    14031403  int accessCode = false;
    14041404  int r=Rows();
    … …  
    15031503////////////////////////////////////////////////////////////////////////////////
    15041504{
    1505   static char* fName = "Enlarge";
     1505  static const char* fName = "Enlarge";
    15061506  int result = 0;
    15071507  int *i, *j, k;
    … …  
    15301530////////////////////////////////////////////////////////////////////////////////
    15311531{
    1532   static char* fName = "MergeRows";
     1532  static const char* fName = "MergeRows";
    15331533  int result = 0;
    15341534  int *i, *j, *rIdx, r, k, K, n, N = items.Card();
  • tol/btol/vmatrix_type/vmat_arith.cpp

    r995e9b3 rd6acb55  
    539539////////////////////////////////////////////////////////////////////////////////
    540540{
    541   static char* fName = "KroneckerProd";
     541  static const char* fName = "KroneckerProd";
    542542  if(!A.CheckDefined(fName)) { return(-1); }
    543543  if(!B.CheckDefined(fName)) { return(-1); }
  • tol/btol/vmatrix_type/vmat_stats.cpp

    r995e9b3 rd6acb55  
    498498////////////////////////////////////////////////////////////////////////////////
    499499{
    500   static char* fName = "GetBoundsInPolytope";
     500  static const char* fName = "GetBoundsInPolytope";
    501501  if(!D .CheckDefined(fName)) { return(-1); }
    502502  if(!d_.CheckDefined(fName)) { return(-1); }
    … …  
    714714////////////////////////////////////////////////////////////////////////////////
    715715{
    716   static char* fName = "TruncStdGaussian";
     716  static const char* fName = "TruncStdGaussian";
    717717  if(!D .CheckDefined(fName)) { return; }
    718718  if(!d_.CheckDefined(fName)) { return; }
Note: See TracChangeset for help on using the changeset viewer.