Changeset b2e2b0 in git


Ignore:
Timestamp:
Jul 3, 2020, 5:03:52 PM (4 years ago)
Author:
Max Horn <max@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b9f50b373314e74e83c7c060a651dd2913e1f033')
Children:
d0adb23686023dffa37da6380408f9f10d314ae4
Parents:
94479b06ea30b1f20ba9a730ece0083db571e984
git-author:
Max Horn <max@quendi.de>2020-07-03 17:03:52+02:00
git-committer:
Max Horn <max@quendi.de>2020-07-07 09:42:17+02:00
Message:
Fix a bunch of warnings
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/Order/nforder_ideal.cc

    r94479b rb2e2b0  
    311311  } else if (i<0) {
    312312    Werror("not done yet");
     313    return NULL;
    313314  } else {
    314315    nforder_ideal *B = nf_idPower(A, i/2);
  • Singular/dyn_modules/cohomo/cohomo.cc

    r94479b rb2e2b0  
    13131313    {
    13141314      fset.erase(fset.begin()+i);
    1315       return fset;
    1316     }
    1317   }
     1315      break;
     1316    }
     1317  }
     1318  return fset;
    13181319}
    13191320
     
    41354136  for(int i=0;i<bvs.size();i++)
    41364137  {
    4137     for(int j=0;j<bvs.size(), j!=i; j++)
     4138    for(int j=0;j!=i; j++)
    41384139    {
    41394140      vs.push_back(bvs[j]);
  • Singular/dyn_modules/systhreads/bytebuf.h

    r94479b rb2e2b0  
    3333    buf = allocate_space(cap);
    3434    memcpy(buf, other.buf, count);
     35    return *this;
    3536  }
    3637  ~ByteBuf() {
  • Singular/dyn_modules/systhreads/libthread.h

    r94479b rb2e2b0  
    2525  Job *startJob(ThreadPool *pool, Job *job, leftv arg);
    2626  Job *startJob(ThreadPool *pool, Job *job);
    27   Job *scheduleJob(ThreadPool *pool, Job *job, long ndeps, Job **deps);
     27//   Job *scheduleJob(ThreadPool *pool, Job *job, long ndeps, Job **deps);
    2828  void cancelJob(Job *job);
    2929  void waitJob(Job *job);
  • Singular/dyn_modules/systhreads/shared.cc

    r94479b rb2e2b0  
    14801480  ts->active = false;
    14811481  thread_lock.unlock();
     1482  return result;
    14821483}
    14831484
     
    24922493}
    24932494
    2494 Job *scheduleJob(ThreadPool *pool, Job *job, long ndeps, Job **deps) {
    2495   if (job->pool) return NULL;
    2496   pool->scheduler->lock.lock();
    2497   bool cancelled = false;
    2498   job->addDep(ndeps, deps);
    2499   for (long i = 0; i < ndeps; i++) {
    2500     deps[i]->addNotify(job);
    2501     cancelled |= deps[i]->cancelled;
    2502   }
    2503   if (cancelled) {
    2504     job->pool = pool;
    2505     pool->cancelJob(job);
    2506   }
    2507   else
    2508     pool->attachJob(job);
    2509   pool->scheduler->lock.unlock();
    2510 }
     2495// Job *scheduleJob(ThreadPool *pool, Job *job, long ndeps, Job **deps) {
     2496//   if (job->pool) return NULL;
     2497//   pool->scheduler->lock.lock();
     2498//   bool cancelled = false;
     2499//   job->addDep(ndeps, deps);
     2500//   for (long i = 0; i < ndeps; i++) {
     2501//     deps[i]->addNotify(job);
     2502//     cancelled |= deps[i]->cancelled;
     2503//   }
     2504//   if (cancelled) {
     2505//     job->pool = pool;
     2506//     pool->cancelJob(job);
     2507//   }
     2508//   else
     2509//     pool->attachJob(job);
     2510//   pool->scheduler->lock.unlock();
     2511//   return FIXME: missing/unclear what this is supposed to be
     2512// }
    25112513
    25122514void cancelJob(Job *job) {
  • Singular/eigenval_ip.cc

    r94479b rb2e2b0  
    216216      else
    217217      {
    218         if(e->m[i0]==NULL&&!nGreaterZero(pGetCoeff(e->m[i1]))||
    219            e->m[i1]==NULL&&
    220           (nGreaterZero(pGetCoeff(e->m[i0]))||pNext(e->m[i0])!=NULL)||
     218        if((e->m[i0]==NULL&&!nGreaterZero(pGetCoeff(e->m[i1])))||
     219           (e->m[i1]==NULL&&
     220            (nGreaterZero(pGetCoeff(e->m[i0]))||pNext(e->m[i0])!=NULL))||
    221221           e->m[i0]!=NULL&&e->m[i1]!=NULL&&
    222           (pNext(e->m[i0])!=NULL&&pNext(e->m[i1])==NULL||
    223            pNext(e->m[i0])==NULL&&pNext(e->m[i1])==NULL&&
    224            nGreater(pGetCoeff(e->m[i0]),pGetCoeff(e->m[i1]))))
     222            ((pNext(e->m[i0])!=NULL&&pNext(e->m[i1])==NULL)||
     223             (pNext(e->m[i0])==NULL&&pNext(e->m[i1])==NULL&&
     224             nGreater(pGetCoeff(e->m[i0]),pGetCoeff(e->m[i1])))))
    225225        {
    226226          poly e1=e->m[i0];
  • Singular/svd_si.h

    r94479b rb2e2b0  
    32253225            return;
    32263226        }
    3227         ap::ap_error::make_assertion(fromtheright && zcolumns==m || !fromtheright && zrows==m);
     3227        ap::ap_error::make_assertion(fromtheright ? zcolumns==m : zrows==m);
    32283228
    32293229        //
     
    34523452            return;
    34533453        }
    3454         ap::ap_error::make_assertion(fromtheright && zcolumns==n || !fromtheright && zrows==n);
     3454        ap::ap_error::make_assertion(fromtheright ? zcolumns==n : zrows==n);
    34553455
    34563456        //
     
    38603860            return;
    38613861        }
    3862         ap::ap_error::make_assertion(fromtheright && zcolumns==m || !fromtheright && zrows==m);
     3862        ap::ap_error::make_assertion(fromtheright ? zcolumns==m : zrows==m);
    38633863
    38643864        //
     
    40754075            return;
    40764076        }
    4077         ap::ap_error::make_assertion(fromtheright && zcolumns==n || !fromtheright && zrows==n);
     4077        ap::ap_error::make_assertion(fromtheright ? zcolumns==n : zrows==n);
    40784078
    40794079        //
     
    68976897                // First apply standard test to bottom of matrix
    68986898                //
    6899                 if( amp::abs<Precision>(e(m-1))<=amp::abs<Precision>(tol)*amp::abs<Precision>(d(m)) || tol<0 && amp::abs<Precision>(e(m-1))<=thresh )
     6899                if( amp::abs<Precision>(e(m-1))<=amp::abs<Precision>(tol)*amp::abs<Precision>(d(m)) || (tol<0 && amp::abs<Precision>(e(m-1))<=thresh) )
    69006900                {
    69016901                    e(m-1) = 0;
     
    69376937                // First apply standard test to top of matrix
    69386938                //
    6939                 if( amp::abs<Precision>(e(ll))<=amp::abs<Precision>(tol)*amp::abs<Precision>(d(ll)) || tol<0 && amp::abs<Precision>(e(ll))<=thresh )
     6939                if( amp::abs<Precision>(e(ll))<=amp::abs<Precision>(tol)*amp::abs<Precision>(d(ll)) || (tol<0 && amp::abs<Precision>(e(ll))<=thresh) )
    69406940                {
    69416941                    e(ll) = 0;
  • factory/cf_gcd.cc

    r94479b rb2e2b0  
    101101  if ( getCharacteristic() != 0 )
    102102  {
    103     if (0) ; // dummy, to be able to build without NTL and FLINT
     103    if (0) {} // dummy, to be able to build without NTL and FLINT
    104104    #if defined(HAVE_FLINT) && ( __FLINT_RELEASE >= 20503)
    105105    if ( isOn( SW_USE_FL_GCD_P)
Note: See TracChangeset for help on using the changeset viewer.