www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19280] New: Remove unnecessary error checks in


          Issue ID: 19280
           Summary: Remove unnecessary error checks in
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

Microsoft Windows QueryPerformanceCounter doesn't fail on Windows XP or later.

Posix gettimeofday called with a valid timeval address and a null second
parameter doesn't fail.

Posix clock_gettime called with a valid clock_id and a valid timespec address
is in principle allowed to fail if the number of seconds doesn't fit in time_t,
so even though no known implementation does this it is probably best to retain
the error check at this time.

Sep 30 2018