diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-10 15:42:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-10 15:42:23 +0000 |
commit | 389578d7a660986712eefc1785c9278d3457cd7a (patch) | |
tree | 4591603963109113adf2823a973632dfe302707f /libgo/runtime/go-now.c | |
parent | cd3410cc7b57fe3745f0fe764f5c322e0265ea1a (diff) | |
download | gcc-389578d7a660986712eefc1785c9278d3457cd7a.zip gcc-389578d7a660986712eefc1785c9278d3457cd7a.tar.gz gcc-389578d7a660986712eefc1785c9278d3457cd7a.tar.bz2 |
re PR c/82922 (Request: add -Wstrict-prototypes to -Wextra as K&R style is obsolescent)
PR c/82922
runtime, syscall: use full prototypes in C code
Based on patch by Martin Sebor.
Reviewed-on: https://go-review.googlesource.com/86815
From-SVN: r256437
Diffstat (limited to 'libgo/runtime/go-now.c')
-rw-r--r-- | libgo/runtime/go-now.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/go-now.c b/libgo/runtime/go-now.c index 13e8f51..a45890b 100644 --- a/libgo/runtime/go-now.c +++ b/libgo/runtime/go-now.c @@ -16,11 +16,11 @@ struct walltime_ret int32_t nsec; }; -struct walltime_ret now() __asm__ (GOSYM_PREFIX "runtime.walltime") +struct walltime_ret now(void) __asm__ (GOSYM_PREFIX "runtime.walltime") __attribute__ ((no_split_stack)); struct walltime_ret -now() +now(void) { struct timespec ts; struct walltime_ret ret; |