Commit fee0794
committed
Fix unused function warning in 'mult_frac'
When compiling with clang, the following warning message was generated:
src/utils.c:35:24: warning: unused function 'mult_frac' [-Wunused-function]
35 | static inline uint64_t mult_frac(uint64_t x, uint64_t n, uint64_t d)
| ^~~~~~~~~
1 warning generated.
To prevent this warning, a preprocessor condition
('#if !defined(HAVE_POSIX_TIMER)') was added, ensuring the function is
only compiled when necessary.
Reported-by: Kuan-Wei Chiu <[email protected]>1 parent 6647215 commit fee0794
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments