vale icon indicating copy to clipboard operation
vale copied to clipboard

Spurious use of `Sleep`?

Open msprotz opened this issue 8 years ago • 1 comments

obj/crypto/hashing/testsha256.c:34:3: warning: implicit declaration of function 'Sleep' [-Wimplicit-function-declaration]
   Sleep(200);  // Sleep for 200ms

On Linux:

NAME
       sleep - sleep for a specified number of seconds

SYNOPSIS
       #include <unistd.h>

Worth an #ifdef?

msprotz avatar Oct 25 '17 20:10 msprotz

The containing function is actually dead code. Easier fix is to delete it.

BarryBo avatar Oct 25 '17 20:10 BarryBo