Changeset 6909cfb in git for kernel


Ignore:
Timestamp:
Feb 20, 2013, 3:48:32 PM (11 years ago)
Author:
Yue Ren <ren@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
2e4ec146a83f4d025c2cb4229c4b171a375173c1
Parents:
367df95c40f03bb94a871481eb198951b3a42c85
git-author:
Yue Ren <ren@mathematik.uni-kl.de>2013-02-20 15:48:32+01:00
git-committer:
Yue Ren <ren@mathematik.uni-kl.de>2013-02-21 20:00:58+01:00
Message:
fix: -Wunused-variable warnings
Location:
kernel
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • kernel/fast_maps.cc

    r367df9 r6909cfb  
    354354{
    355355  ring src_r, dest_r;
    356   ideal dest_id, res_id;
     356  ideal dest_id/*, res_id*/;
    357357  int length = 0;
    358358  BOOLEAN no_sort;
  • kernel/fglmgauss.cc

    r367df9 r6909cfb  
    7373gaussReducer::~gaussReducer()
    7474{
    75     int k;
    76 
    7775#ifndef HAVE_EXPLICIT_CONSTR
    7876    delete [] elems;
    7977#else
     78    int k;
    8079    for ( k= size; k > 0; k-- )
    8180        elems[k].~gaussElem();
     
    159158{
    160159    // fglmASSERT( size < max );
    161     number fac;
     160    // number fac;
    162161    // find the pivot-element in v:
    163162
  • kernel/gr_kstd2.cc

    r367df9 r6909cfb  
    972972  assume(rIsPluralRing(currRing));
    973973
    974   int i;
     974  // int i;
    975975//  idhdl h;
    976976 /* setting global variables ------------------- */
     
    10701070  assume(currRing->OrdSgn != -1); // no mora!!! it terminates only for global ordering!!! (?)
    10711071
    1072   intvec *w=NULL;
    1073   intvec *hilb=NULL;
     1072  // intvec *w=NULL;
     1073  // intvec *hilb=NULL;
    10741074  int   olddeg,reduc;
    10751075  int red_result=1;
    1076   int hilbeledeg=1,hilbcount=0,minimcnt=0;
     1076  int /*hilbeledeg=1,*/hilbcount=0/*,minimcnt=0*/;
    10771077
    10781078  initBuchMoraCrit(strat); /*set Gebauer, honey, sugarCrit*/
  • kernel/ideals.cc

    r367df9 r6909cfb  
    939939             BOOLEAN isSB, BOOLEAN divide, matrix *unit)
    940940{
    941   int lsmod =id_RankFreeModule(submod,currRing), i, j, k;
     941  int lsmod =id_RankFreeModule(submod,currRing), j, k;
    942942  int comps_to_add=0;
    943943  poly p;
  • kernel/kspoly.cc

    r367df9 r6909cfb  
    394394  poly a1 = pNext(p1), a2 = pNext(p2);
    395395  number lc1 = pGetCoeff(p1), lc2 = pGetCoeff(p2);
    396   int co=0, ct = ksCheckCoeff(&lc1, &lc2, currRing->cf); // gcd and zero divisors
     396  int co=0/*, ct = ksCheckCoeff(&lc1, &lc2, currRing->cf)*/; // gcd and zero divisors
     397  (void) ksCheckCoeff(&lc1, &lc2, currRing->cf);
    397398
    398399  int l1=0, l2=0;
  • kernel/kstd2.cc

    r367df9 r6909cfb  
    197197  int a_ind2 = ind2(a);
    198198
    199   NATNUMBER k = 1;
     199  // NATNUMBER k = 1;
    200200  // of interest is only k_ind2, special routine for improvement ... TODO OLIVER
    201201  for (int i = 1; i <= leadRing->N; i++)
     
    303303  if (strat->tl<0) return 1;
    304304
    305   int at,i;
     305  int at/*,i*/;
    306306  long d;
    307307  int j = 0;
    308308  int pass = 0;
    309   poly zeroPoly = NULL;
     309  // poly zeroPoly = NULL;
    310310
    311311// TODO warum SetpFDeg notwendig?
  • kernel/kstdfac.cc

    r367df9 r6909cfb  
    161161kStrategy kStratCopy(kStrategy o)
    162162{
    163   int i;
     163  // int i;
    164164  assume(kTest_TS(o));
    165165  kStrategy s=new skStrategy;
  • kernel/kutil.cc

    r367df9 r6909cfb  
    846846{
    847847  int i, j;
    848   BOOLEAN ret = TRUE;
     848  // BOOLEAN ret = TRUE;
    849849  kFalseReturn(kTest(strat));
    850850
     
    17401740              // the corresponding signatures for criteria checks
    17411741  LObject  Lp;
    1742   poly last;
     1742  // poly last;
    17431743  poly pSigMult = p_Copy(pSig,currRing);
    17441744  poly sSigMult = p_Copy(strat->sig[i],currRing);
     
    88288828  int j;
    88298829
    8830   poly q, s;
     8830  poly q/*, s*/;
    88318831
    88328832  // for the 0th shift: insert the orig. pair
  • kernel/preimage.cc

    r367df9 r6909cfb  
    7878 
    7979  int i,j;
    80   poly p,pp,q;
     80  poly p,/*pp,*/q;
    8181  ideal temp1;
    8282  ideal temp2;
  • kernel/syz.cc

    r367df9 r6909cfb  
    222222void syGaussForOne(ideal syz, int elnum, int ModComp,int from,int till)
    223223{
    224   int k,j,i,lu;
     224  int /*k,j,i,*/lu;
    225225  poly unit1,unit2;
    226226  poly actWith=syz->m[elnum];
     
    249249static void syDeleteAbove1(ideal up, int k)
    250250{
    251   poly p,pp;
     251  poly p/*,pp*/;
    252252  if (up!=NULL)
    253253  {
  • kernel/syz0.cc

    r367df9 r6909cfb  
    173173  if (Fl==0) return result;
    174174
    175   int i,j,l,k,totalToRed,ecartToRed,kk,kkk;
     175  int i,j,l,k,totalToRed,ecartToRed,kk;
    176176  int bestEcart,totalmax,rkF,Sl=0,smax,tmax,tl;
    177177  int *ecartS, *ecartT, *totalS,
    178178    *totalT=NULL, *temp=NULL;
    179   polyset pairs,S,T,ST,oldF;
     179  polyset pairs,S,T,ST/*,oldF*/;
    180180  poly p,q,toRed;
    181181  BOOLEAN notFound = FALSE;
     
    342342#else
    343343          l = (**modcomp)[pGetComp(toRed)];
    344           kkk = (**modcomp)[pGetComp(toRed)+1];
     344          int kkk = (**modcomp)[pGetComp(toRed)+1];
    345345          while ((l<kkk) && (notFound))
    346346#endif
     
    510510  ideal result=idInit(16,Fl);
    511511  int i,j,l,k,kkk,rkF,Sl=0,syComponentOrder=currRing->ComponentOrder;
    512   int fstart,wend,lini,ltR,gencQ=0;
     512  int /*fstart,*/wend,lini,ltR,gencQ=0;
    513513  intvec *newmodcomp;
    514514  int *Flength;
    515515  polyset pairs,F=arg->m,*Shdl=&(result->m);
    516   poly p,q,toRed,syz,lastmonom,multWith;
     516  poly /*p,*/q,toRed,syz,lastmonom,multWith;
    517517  BOOLEAN isNotReduced=TRUE;
    518518
     
    577577        {
    578578          number an=nCopy(pGetCoeff(F[k])),bn=nCopy(pGetCoeff(F[j]));
    579           int ct = ksCheckCoeff(&an, &bn, currRing->cf);
     579          /*int ct =*/ (void) ksCheckCoeff(&an, &bn, currRing->cf);
    580580          syz = pCopy(pairs[k]);
    581581          //syz->coef = nCopy(F[k]->coef);
     
    867867  int i,syzIndex = 0,j=0;
    868868  intvec * modcomp=NULL,*w=NULL;
    869   int ** wv=NULL;
     869  // int ** wv=NULL;
    870870  tHomog hom=(tHomog)idHomModule(arg,NULL,&w);
    871871  ring origR = currRing;
     
    10171017  if (fr==NULL) return NULL;
    10181018
    1019   int typ0;
     1019  // int typ0;
    10201020  syStrategy result=(syStrategy)omAlloc0(sizeof(ssyStrategy));
    10211021  result->length=rl;
  • kernel/syz3.cc

    r367df9 r6909cfb  
    112112            ideal old_repr,int old_tl, poly next_generator,resolvente totake)
    113113{
    114   int index=syzstr->length-1,i,j,start,start_ttk,new_tl;
     114  int index=syzstr->length-1,i,j,start,start_ttk/*,new_tl*/;
    115115  poly gen=pCopy(next_generator),p;
    116116  poly neg_gen=pCopy(next_generator);
     
    656656  int toReplace=0;
    657657  int i,j,syz_l;
    658   number coefgcd,n;
     658  number /*coefgcd,*/n;
    659659  polyset ogm=old_generators->m;
    660660  poly p;
     
    941941  int * ogm_l=(int*)omAlloc0(IDELEMS(syzstr->res[index])*sizeof(int));
    942942  int * orp_l=(int*)omAlloc0(IDELEMS(syzstr->orderedRes[index])*sizeof(int));
    943   int t1=IDELEMS(syzstr->res[index]),t2=IDELEMS(syzstr->orderedRes[index]);
     943  // int t1=IDELEMS(syzstr->res[index]),t2=IDELEMS(syzstr->orderedRes[index]);
    944944 
    945945  for (j=IDELEMS(syzstr->res[index])-1;j>=0;j--)
     
    17531753syStrategy syKosz(ideal arg,int * length)
    17541754{
    1755   int i,j,jj,k=0,index=0,rk_arg,next_syz=0;
     1755  int i,j,jj,k=0,index=0,rk_arg/*,next_syz=0*/;
    17561756  int crit_comp,t_comp,next_deg,old_tl;
    17571757  ideal temp=NULL,old_ideal,old_repr;
Note: See TracChangeset for help on using the changeset viewer.