Changeset 6909cfb in git for Singular/links/ssiLink.cc


Ignore:
Timestamp:
Feb 20, 2013, 3:48:32 PM (11 years ago)
Author:
Yue Ren <ren@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ssiLink.cc

    r367df9 r6909cfb  
    289289  fprintf(d->f_write,"%d ",pLength(p));//number of terms
    290290  SSI_UNBLOCK_CHLD;
    291   int i;
     291  int j;
    292292
    293293  while(p!=NULL)
     
    298298    fprintf(d->f_write,"%ld ",p_GetComp(p,d->r));//component
    299299
    300     for(int j=1;j<=rVar(d->r);j++)
     300    for(j=1;j<=rVar(d->r);j++)
    301301    {
    302302      fprintf(d->f_write,"%ld ",p_GetExp(p,j,d->r ));//x^j
     
    416416  l=s_readint(d->f_read);
    417417  buf=(char*)omAlloc0(l+1);
    418   int c =s_getc(d->f_read); /* skip ' '*/
    419   int ll=s_readbytes(buf,l,d->f_read);
     418  /*int c =*/ (void) s_getc(d->f_read); /* skip ' '*/
     419  /*int ll=*/ (void) s_readbytes(buf,l,d->f_read);
    420420  //if (ll!=l) printf("want %d, got %d bytes\n",l,ll);
    421421  buf[l]='\0';
     
    528528{
    529529/* syntax is <ch> <N> <l1> <v1> ...<lN> <vN> <number of orderings> <ord1> <block0_1> <block1_1> .... */
    530   int ch, N,i,l;
     530  int ch, N,i/*,l*/;
    531531  char **names;
    532532  ch=s_readint(d->f_read);
     
    748748{
    749749  ssiInfo *d=(ssiInfo*)l->data;
    750   int throwaway=s_readint(d->f_read);
     750  /*int throwaway=*/ (void) s_readint(d->f_read);
    751751  char *name=ssiReadString(d);
    752752  int tok;
     
    891891        int sockfd, newsockfd, portno, clilen;
    892892        struct sockaddr_in serv_addr, cli_addr;
    893         int n;
     893        // int n;
    894894        sockfd = socket(AF_INET, SOCK_STREAM, 0);
    895895        if(sockfd < 0)
     
    952952        int sockfd, newsockfd, portno, clilen;
    953953        struct sockaddr_in serv_addr, cli_addr;
    954         int n;
     954        // int n;
    955955        sockfd = socket(AF_INET, SOCK_STREAM, 0);
    956956        if(sockfd < 0)
     
    10341034      {
    10351035        char* host = (char*)omAlloc(256);
    1036         int sockfd, portno, n;
     1036        int sockfd, portno/*, n*/;
    10371037        struct sockaddr_in serv_addr;
    10381038        struct hostent *server;
     
    14851485  && (strcmp(request, "read") == 0))
    14861486  {
    1487     fd_set  mask, fdmask;
     1487    fd_set  mask/*, fdmask*/;
    14881488    struct timeval wt;
    14891489    if (s_isready(d->f_read)) return "ready";
     
    18101810  }
    18111811  int portno;
    1812   int n;
     1812  // int n;
    18131813  ssiReserved_sockfd = socket(AF_INET, SOCK_STREAM, 0);
    18141814  if(ssiReserved_sockfd < 0)
Note: See TracChangeset for help on using the changeset viewer.