Commit 3f47aa8c37cf1ab86df03dcf3a91c6f7249bdc12
1 parent
19f329ad
Fix some functions declared () rather than (void) (Ian Jackson)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4029 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
7 changed files
with
12 additions
and
12 deletions
block-vvfat.c
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | #define stderr STDERR |
54 | 54 | FILE* stderr = NULL; |
55 | 55 | |
56 | -static void checkpoint(); | |
56 | +static void checkpoint(void); | |
57 | 57 | |
58 | 58 | #ifdef __MINGW32__ |
59 | 59 | void nonono(const char* file, int line, const char* msg) { |
... | ... | @@ -2813,7 +2813,7 @@ BlockDriver bdrv_vvfat = { |
2813 | 2813 | }; |
2814 | 2814 | |
2815 | 2815 | #ifdef DEBUG |
2816 | -static void checkpoint() { | |
2816 | +static void checkpoint(void) { | |
2817 | 2817 | assert(((mapping_t*)array_get(&(vvv->mapping), 0))->end == 2); |
2818 | 2818 | check1(vvv); |
2819 | 2819 | check2(vvv); | ... | ... |
darwin-user/qemu.h
... | ... | @@ -113,7 +113,7 @@ extern int loglevel; |
113 | 113 | extern FILE *logfile; |
114 | 114 | |
115 | 115 | /* commpage.c */ |
116 | -void commpage_init(); | |
116 | +void commpage_init(void); | |
117 | 117 | void do_commpage(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uint32_t arg3, |
118 | 118 | uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, uint32_t arg8); |
119 | 119 | ... | ... |
darwin-user/syscall.c
... | ... | @@ -417,7 +417,7 @@ long do_mach_syscall(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uint3 |
417 | 417 | uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, |
418 | 418 | uint32_t arg8) |
419 | 419 | { |
420 | - extern uint32_t mach_reply_port(); | |
420 | + extern uint32_t mach_reply_port(void); | |
421 | 421 | |
422 | 422 | long ret = 0; |
423 | 423 | |
... | ... | @@ -551,7 +551,7 @@ long do_thread_syscall(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uin |
551 | 551 | uint32_t arg8) |
552 | 552 | { |
553 | 553 | extern uint32_t cthread_set_self(uint32_t); |
554 | - extern uint32_t processor_facilities_used(); | |
554 | + extern uint32_t processor_facilities_used(void); | |
555 | 555 | long ret = 0; |
556 | 556 | |
557 | 557 | arg1 = tswap32(arg1); |
... | ... | @@ -830,7 +830,7 @@ static inline void byteswap_timeval(struct timeval *t) |
830 | 830 | } |
831 | 831 | |
832 | 832 | long do_unix_syscall_indirect(void *cpu_env, int num); |
833 | -long do_sync(); | |
833 | +long do_sync(void); | |
834 | 834 | long do_exit(uint32_t arg1); |
835 | 835 | long do_getlogin(char *out, uint32_t size); |
836 | 836 | long do_open(char * arg1, uint32_t arg2, uint32_t arg3); |
... | ... | @@ -996,7 +996,7 @@ long do_exit(uint32_t arg1) |
996 | 996 | return -1; |
997 | 997 | } |
998 | 998 | |
999 | -long do_sync() | |
999 | +long do_sync(void) | |
1000 | 1000 | { |
1001 | 1001 | sync(); |
1002 | 1002 | return 0; | ... | ... |
hw/alpha_palcode.c
... | ... | @@ -56,7 +56,7 @@ pal_handler_t pal_handlers[] = { |
56 | 56 | |
57 | 57 | #if 0 |
58 | 58 | /* One must explicitely check that the TB is valid and the FOE bit is reset */ |
59 | -static void update_itb () | |
59 | +static void update_itb (void) | |
60 | 60 | { |
61 | 61 | /* This writes into a temp register, not the actual one */ |
62 | 62 | mtpr(TB_TAG); |
... | ... | @@ -65,7 +65,7 @@ static void update_itb () |
65 | 65 | mtpr(ITB_PTE); |
66 | 66 | } |
67 | 67 | |
68 | -static void update_dtb (); | |
68 | +static void update_dtb (void); | |
69 | 69 | { |
70 | 70 | mtpr(TB_CTL); |
71 | 71 | /* This write into a temp register, not the actual one */ | ... | ... |
target-i386/helper.c
target-i386/svm.h
... | ... | @@ -323,7 +323,7 @@ struct __attribute__ ((__packed__)) vmcb { |
323 | 323 | |
324 | 324 | /* function references */ |
325 | 325 | |
326 | -void helper_stgi(); | |
326 | +void helper_stgi(void); | |
327 | 327 | void vmexit(uint64_t exit_code, uint64_t exit_info_1); |
328 | 328 | int svm_check_intercept_param(uint32_t type, uint64_t param); |
329 | 329 | static inline int svm_check_intercept(unsigned int type) { | ... | ... |