IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 5, 2008, 1:12:40 AM (18 years ago)
Author:
Sebastian Jester
Message:

Ignore return value of write in a way that really avoids the compiler warning: "ignoring return value of write, declared with attribute warn_unused_result" - the compiler was too clever for the fix in 1.71 of psLogMsg.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/xml/psXML.c

    r9523 r20547  
    1010*  @author David Robbins, MHPCC
    1111*
    12 *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-10-12 23:43:58 $
     12*  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2008-11-05 11:12:40 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    626626    if ( psXMLDocToMem(doc, buf) ) {
    627627        n = strlen(buf);
    628         write(fd, buf, n);
     628        if (write(fd, buf, n)) {;} //ignore return value
    629629    } else {
    630630        psError(PS_ERR_LOCATION_INVALID, true, _("Buffer to small to store XML doc."));
Note: See TracChangeset for help on using the changeset viewer.