Skip to content

Solve usleep compilation warning in keyspace_events.c#11073

Merged
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:solve_warning
Aug 2, 2022
Merged

Solve usleep compilation warning in keyspace_events.c#11073
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:solve_warning

Conversation

@enjoy-binbin
Copy link
Contributor

@enjoy-binbin enjoy-binbin commented Aug 2, 2022

There is a -Wimplicit-function-declaration warning in here:

keyspace_events.c: In function ‘KeySpace_NotificationGeneric’:
keyspace_events.c:67:9: warning: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
   67 |         usleep(1);
      |         ^~~~~~
      |         sleep

Introduced in #11016

There is a -Wimplicit-function-declaration warning in here:
```
keyspace_events.c: In function ‘KeySpace_NotificationGeneric’:
keyspace_events.c:67:9: warning: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
   67 |         usleep(1);
      |         ^~~~~~
      |         sleep
```
@oranagra oranagra merged commit 9f0f533 into redis:unstable Aug 2, 2022
@enjoy-binbin enjoy-binbin deleted the solve_warning branch August 2, 2022 15:02
enjoy-binbin added a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
There is a -Wimplicit-function-declaration warning in here:
```
keyspace_events.c: In function ‘KeySpace_NotificationGeneric’:
keyspace_events.c:67:9: warning: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
   67 |         usleep(1);
      |         ^~~~~~
      |         sleep
```
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

Successfully merging this pull request may close these issues.

2 participants