Changeset 1397


Ignore:
Timestamp:
Apr 15, 2009 10:07:30 AM (12 years ago)
Author:
dkearney
Message:

fixing compiler warnings

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/objects/plot/plot.cc

    r1386 r1397  
    3939    // number of curves in this plot
    4040    size_t curveCnt = p1->count();
     41    std::printf("curveCnt = %zu\n",curveCnt);
    4142
    4243    // retrieve curve from curve name
     
    5354    ylen = c->data(Rappture::Plot::yaxis,&ay);
    5455
    55     std::printf("xlen = %u\nylen = %u\n",xlen,ylen);
     56    std::printf("xlen = %zu\nylen = %zu\n",xlen,ylen);
    5657    std::printf("fmt = %s\n",c->propstr(Rappture::Plot::format,NULL));
    5758
  • trunk/src/core/RpSimpleBuffer.h

    r1100 r1397  
    412412
    413413    if (buf == NULL) {
    414         fprintf(stderr,"Can't allocate %lu bytes of memory\n",
    415             (long unsigned int)nbytes);
     414        fprintf(stderr,"Can't allocate %zu bytes of memory\n",nbytes);
    416415        _fileState = false;
    417416        return 0;
     
    430429
    431430    while (curMemb != _nMembStored) {
    432         fprintf(stdout,"_buf[%lu] = :%c:\n", (long unsigned int)curMemb,
    433                 _buf[curMemb]);
     431        fprintf(stdout,"_buf[%zu] = :%c:\n", curMemb, _buf[curMemb]);
    434432        curMemb += 1;
    435433    }
    436     fprintf(stdout,"_nMembAvl = :%lu:\n", (long unsigned int)_nMembAvl);
     434    fprintf(stdout,"_nMembAvl = :%zu:\n", _nMembAvl);
    437435
    438436    return *this;
     
    447445
    448446    while (curMemb != _nMembStored) {
    449         fprintf(stdout,"_buf[%lu] = :%#x:\n", (long unsigned int)curMemb,
    450                 (unsigned long)_buf[curMemb]);
     447        fprintf(stdout,"_buf[%zu] = :%#x:\n", curMemb,
     448            (long unsigned)_buf[curMemb]);
    451449        curMemb += 1;
    452450    }
    453     fprintf(stdout,"_nMembAvl = :%lu:\n", (long unsigned int)_nMembAvl);
     451    fprintf(stdout,"_nMembAvl = :%zu:\n", _nMembAvl);
    454452
    455453    return *this;
  • trunk/src/objects/RpArray1D.h

    r1386 r1397  
    3030             const char *scale);
    3131    Array1D (const Array1D &o);
    32     ~Array1D();
     32    virtual ~Array1D();
    3333
    3434    Accessor<const char *> path;
     
    6868                     const char *scale);
    6969    Array1DUniform  (const Array1DUniform &o);
    70     ~Array1DUniform ();
     70    virtual ~Array1DUniform ();
    7171
    7272    Accessor<const char *> path;
Note: See TracChangeset for help on using the changeset viewer.