Skip to content

Commit

Permalink
Merge pull request #248 from sifive/sys_times_pedantic_fix
Browse files Browse the repository at this point in the history
When GCC is run with more pedantic flags, it needs 'inline' before type
  • Loading branch information
nategraff-sifive authored Apr 17, 2020
2 parents 9347969 + 2626c77 commit decf307
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gloss/sys_times.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
* timebase to be less than about 4,000,000,000,000 (4 trillion).
*/

static unsigned long long inline muldiv(unsigned long long v,
unsigned long long num,
unsigned long long den) {
static inline unsigned long long
muldiv(unsigned long long v, unsigned long long num, unsigned long long den) {
return (((v % den) * num) / den) + ((v / den) * num);
}

Expand Down

0 comments on commit decf307

Please sign in to comment.