Browse Source

Fix compiler warning

Before this change, the clang compiler produced the following warning:

```
In file included from src/libespeak-ng/espeak_api.c:35:
src/libespeak-ng/event.h:65:28: warning: declaration of 'struct timespec' will
      not be visible outside of this function [-Wvisibility]
void clock_gettime2(struct timespec *ts);
                           ^
src/libespeak-ng/event.h:66:28: warning: declaration of 'struct timespec' will
      not be visible outside of this function [-Wvisibility]
void add_time_in_ms(struct timespec *ts, int time_in_ms);
                           ^
2 warnings generated.
```
master
Sascha Brawer 7 years ago
parent
commit
1b923fb0d6
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/libespeak-ng/event.h

+ 1
- 0
src/libespeak-ng/event.h View File

void event_terminate(void); void event_terminate(void);


// general functions // general functions
struct timespec;
void clock_gettime2(struct timespec *ts); void clock_gettime2(struct timespec *ts);
void add_time_in_ms(struct timespec *ts, int time_in_ms); void add_time_in_ms(struct timespec *ts, int time_in_ms);



Loading…
Cancel
Save