Changeset 6c98d52 in git


Ignore:
Timestamp:
Jan 11, 2012, 3:13:15 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
2dbf7e59673f79e50959ef8e51ebc47ff01dcb9651c97ff9c3e771c56591bbd2c4d517a85fd8ab21a88d77fb7c121ed4c21583c156ff79873682c839
Parents:
930ea815182bc9bf3182f1c57876006af26295b2
Message:
chg: compiler warnings in kutil.cc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/kutil.cc

    r930ea8 r6c98d52  
    10061006void enterL (LSet *set,int *length, int *LSetmax, LObject p,int at)
    10071007{
    1008 #ifdef PDEBUG
    1009   /*  zaehler++; */
    1010 #endif /*PDEBUG*/
    1011   int i;
    10121008  // this should be corrected
    10131009  assume(p.FDeg == p.pFDeg());
     
    10471043}
    10481044
    1049 void initEcartPairBba (LObject* Lp,poly f,poly g,int ecartF,int ecartG)
     1045void initEcartPairBba (LObject* Lp,poly /*f*/,poly /*g*/,int /*ecartF*/,int /*ecartG*/)
    10501046{
    10511047  Lp->FDeg = Lp->pFDeg();
     
    10541050}
    10551051
    1056 void initEcartPairMora (LObject* Lp,poly f,poly g,int ecartF,int ecartG)
     1052void initEcartPairMora (LObject* Lp,poly /*f*/,poly /*g*/,int ecartF,int ecartG)
    10571053{
    10581054  Lp->FDeg = Lp->pFDeg();
     
    12951291*/
    12961292
    1297 BOOLEAN enterOneStrongPoly (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR = -1)
     1293BOOLEAN enterOneStrongPoly (int i,poly p,int /*ecart*/, int /*isFromQ*/,kStrategy strat, int atR = -1)
    12981294{
    12991295  number d, s, t;
     
    23502346*using the chain-criterion in B and L and enters B to L
    23512347*/
    2352 void chainCritRing (poly p,int ecart,kStrategy strat)
     2348void chainCritRing (poly p,int, kStrategy strat)
    23532349{
    23542350  int i,j,l;
     
    29182914void initenterstrongPairs (poly h,int k,int ecart,int isFromQ,kStrategy strat, int atR = -1)
    29192915{
    2920   const int iCompH = pGetComp(h);
     2916  const unsigned long iCompH = pGetComp(h);
    29212917  if (!nIsOne(pGetCoeff(h)))
    29222918  {
     
    32283224  int en = length;
    32293225  int cmp_int = currRing->OrdSgn;
    3230   int pc=pGetComp(p);
    32313226  if ((currRing->MixedOrder)
    32323227#ifdef HAVE_PLURAL
     
    33253320* the position is the last one
    33263321*/
    3327 int posInT0 (const TSet set,const int length,LObject &p)
     3322int posInT0 (const TSet,const int length,LObject &)
    33283323{
    33293324  return (length+1);
     
    37703765  /* cc==1 for (c,..), cc==-1 for (C,..) */
    37713766  int o = p.GetpFDeg() + p.ecart;
    3772   int c = pGetComp(p.p)*cc;
     3767  unsigned long c = pGetComp(p.p)*cc;
    37733768
    37743769  if (pGetComp(set[length].p)*cc < c)
     
    38863881*/
    38873882int posInLSpecial (const LSet set, const int length,
    3888                    LObject *p,const kStrategy strat)
     3883                   LObject *p,const kStrategy)
    38893884{
    38903885  if (length<0) return 0;
     
    39293924*/
    39303925int posInL0 (const LSet set, const int length,
    3931              LObject* p,const kStrategy strat)
     3926             LObject* p,const kStrategy)
    39323927{
    39333928  if (length<0) return 0;
     
    39603955*/
    39613956int posInL11 (const LSet set, const int length,
    3962               LObject* p,const kStrategy strat)
     3957              LObject* p,const kStrategy)
    39633958/*{
    39643959 * int j=0;
     
    40304025
    40314026int posInLrg0 (const LSet set, const int length,
    4032               LObject* p,const kStrategy strat)
     4027              LObject* p,const kStrategy)
    40334028/*          if (nGreater(pGetCoeff(p), pGetCoeff(set[an]))) return en;
    40344029        if (pLmCmp(set[i],p) == cmp_int)         en = i;
     
    41144109*/
    41154110int posInL110 (const LSet set, const int length,
    4116                LObject* p,const kStrategy strat)
     4111               LObject* p,const kStrategy)
    41174112{
    41184113  if (length<0) return 0;
     
    41604155*/
    41614156int posInL13 (const LSet set, const int length,
    4162               LObject* p,const kStrategy strat)
     4157              LObject* p,const kStrategy)
    41634158{
    41644159  if (length<0) return 0;
     
    41954190*/
    41964191int posInL15 (const LSet set, const int length,
    4197               LObject* p,const kStrategy strat)
     4192              LObject* p,const kStrategy)
    41984193/*{
    41994194 * int j=0;
     
    42534248*/
    42544249int posInL17 (const LSet set, const int length,
    4255               LObject* p,const kStrategy strat)
     4250              LObject* p,const kStrategy)
    42564251{
    42574252  if (length<0) return 0;
     
    43014296*/
    43024297int posInL17_c (const LSet set, const int length,
    4303                 LObject* p,const kStrategy strat)
     4298                LObject* p,const kStrategy)
    43044299{
    43054300  if (length<0) return 0;
     
    43074302  int cc = (-1+2*currRing->order[0]==ringorder_c);
    43084303  /* cc==1 for (c,..), cc==-1 for (C,..) */
    4309   int c = pGetComp(p->p)*cc;
     4304  unsigned long c = pGetComp(p->p)*cc;
    43104305  int o = p->GetpFDeg() + p->ecart;
    43114306
     
    44424437{
    44434438  poly h, hn;
    4444   int j;
    4445   unsigned long not_sev;
    44464439  strat->redTailChange=FALSE;
    44474440
     
    45624555      {
    45634556        cnt=REDTAIL_CANONICALIZE;
    4564         poly tmp=Ln.CanonicalizeP();
     4557        /*poly tmp=*/Ln.CanonicalizeP();
    45654558        if (normalize)
    45664559        {
     
    46504643      {
    46514644        cnt=REDTAIL_CANONICALIZE;
    4652         poly tmp=Ln.CanonicalizeP();
    4653       }
    4654       // we are in Z, do not Ccall pNorm
     4645        /*poly tmp=*/Ln.CanonicalizeP();
     4646      }
     4647      // we are in Z, do not call pNorm
    46554648      strat->redTailChange=TRUE;
    46564649      // test divisibility of coefs:
     
    55735566void enterSBba (LObject p,int atS,kStrategy strat, int atR)
    55745567{
    5575   int i;
    55765568  strat->news = TRUE;
    55775569  /*- puts p to the standardbasis s at position at -*/
  • libpolys/polys/monomials/p_polys.h

    r930ea8 r6c98d52  
    5555}
    5656
    57 // #define p_GetCoeff(p,r)     pGetCoeff(p)
    58 static inline number& p_GetCoeff(poly p, const ring r)
    59 {
    60   assume(r != NULL);
    61   return pGetCoeff(p);
    62 }
     57#define p_GetCoeff(p,r)     pGetCoeff(p)
     58//static inline number& p_GetCoeff(poly p, const ring r)
     59//{
     60//  assume(r != NULL);
     61//  return pGetCoeff(p);
     62//}
    6363
    6464
Note: See TracChangeset for help on using the changeset viewer.