IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 4, 2008, 8:36:54 AM (18 years ago)
Author:
Paul Price
Message:

Throw away return value of 'write', to avoid compiler warning:
"ignoring return value of 'write', declared with attribute warn_unused_result"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r19885 r20529  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2008-10-03 21:55:52 $
     13 *  @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2008-11-04 18:36:54 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    315315    *head_ptr = '\0';
    316316
    317     write(logFD, head, strlen(head));
     317    (void)write(logFD, head, strlen(head));
    318318    if (logMsg) {
    319319        psString msg = NULL;            // Message to print
     
    324324        char *line = strtok_r(msg, "\n", &msgPtr);
    325325        while (line) {
    326             write(logFD, "    ", 4);
    327             write(logFD, line, strlen(line));
    328             write(logFD, "\n", 1);
     326            (void)write(logFD, "    ", 4);
     327            (void)write(logFD, line, strlen(line));
     328            (void)write(logFD, "\n", 1);
    329329            line = strtok_r(NULL, "\n", &msgPtr);
    330330        }
    331331        psFree(msg);
    332332    } else {
    333         write(logFD, "\n", 1);
     333        (void)write(logFD, "\n", 1);
    334334    }
    335335
Note: See TracChangeset for help on using the changeset viewer.