Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious use of Sleep? #8

Open
msprotz opened this issue Oct 25, 2017 · 1 comment
Open

Spurious use of Sleep? #8

msprotz opened this issue Oct 25, 2017 · 1 comment

Comments

@msprotz
Copy link
Member

msprotz commented Oct 25, 2017

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?

@BarryBo
Copy link

BarryBo commented Oct 25, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants