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/math/psRandom.c

    r15627 r20547  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-11-16 00:41:07 $
     12*  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2008-11-05 11:12:39 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5050    } else {
    5151        // Read urandom to get seed
    52         fread(&seedVal, sizeof(psU64),1,fd);
     52        if (fread(&seedVal, sizeof(psU64),1,fd)) {;} // ignore return value
    5353        // Close file
    5454        fclose(fd);
Note: See TracChangeset for help on using the changeset viewer.