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,7 +53,7 @@ | ||
53 | #define stderr STDERR | 53 | #define stderr STDERR |
54 | FILE* stderr = NULL; | 54 | FILE* stderr = NULL; |
55 | 55 | ||
56 | -static void checkpoint(); | 56 | +static void checkpoint(void); |
57 | 57 | ||
58 | #ifdef __MINGW32__ | 58 | #ifdef __MINGW32__ |
59 | void nonono(const char* file, int line, const char* msg) { | 59 | void nonono(const char* file, int line, const char* msg) { |
@@ -2813,7 +2813,7 @@ BlockDriver bdrv_vvfat = { | @@ -2813,7 +2813,7 @@ BlockDriver bdrv_vvfat = { | ||
2813 | }; | 2813 | }; |
2814 | 2814 | ||
2815 | #ifdef DEBUG | 2815 | #ifdef DEBUG |
2816 | -static void checkpoint() { | 2816 | +static void checkpoint(void) { |
2817 | assert(((mapping_t*)array_get(&(vvv->mapping), 0))->end == 2); | 2817 | assert(((mapping_t*)array_get(&(vvv->mapping), 0))->end == 2); |
2818 | check1(vvv); | 2818 | check1(vvv); |
2819 | check2(vvv); | 2819 | check2(vvv); |
darwin-user/qemu.h
@@ -113,7 +113,7 @@ extern int loglevel; | @@ -113,7 +113,7 @@ extern int loglevel; | ||
113 | extern FILE *logfile; | 113 | extern FILE *logfile; |
114 | 114 | ||
115 | /* commpage.c */ | 115 | /* commpage.c */ |
116 | -void commpage_init(); | 116 | +void commpage_init(void); |
117 | void do_commpage(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uint32_t arg3, | 117 | void do_commpage(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uint32_t arg3, |
118 | uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, uint32_t arg8); | 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,7 +417,7 @@ long do_mach_syscall(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uint3 | ||
417 | uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, | 417 | uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, |
418 | uint32_t arg8) | 418 | uint32_t arg8) |
419 | { | 419 | { |
420 | - extern uint32_t mach_reply_port(); | 420 | + extern uint32_t mach_reply_port(void); |
421 | 421 | ||
422 | long ret = 0; | 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,7 +551,7 @@ long do_thread_syscall(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uin | ||
551 | uint32_t arg8) | 551 | uint32_t arg8) |
552 | { | 552 | { |
553 | extern uint32_t cthread_set_self(uint32_t); | 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 | long ret = 0; | 555 | long ret = 0; |
556 | 556 | ||
557 | arg1 = tswap32(arg1); | 557 | arg1 = tswap32(arg1); |
@@ -830,7 +830,7 @@ static inline void byteswap_timeval(struct timeval *t) | @@ -830,7 +830,7 @@ static inline void byteswap_timeval(struct timeval *t) | ||
830 | } | 830 | } |
831 | 831 | ||
832 | long do_unix_syscall_indirect(void *cpu_env, int num); | 832 | long do_unix_syscall_indirect(void *cpu_env, int num); |
833 | -long do_sync(); | 833 | +long do_sync(void); |
834 | long do_exit(uint32_t arg1); | 834 | long do_exit(uint32_t arg1); |
835 | long do_getlogin(char *out, uint32_t size); | 835 | long do_getlogin(char *out, uint32_t size); |
836 | long do_open(char * arg1, uint32_t arg2, uint32_t arg3); | 836 | long do_open(char * arg1, uint32_t arg2, uint32_t arg3); |
@@ -996,7 +996,7 @@ long do_exit(uint32_t arg1) | @@ -996,7 +996,7 @@ long do_exit(uint32_t arg1) | ||
996 | return -1; | 996 | return -1; |
997 | } | 997 | } |
998 | 998 | ||
999 | -long do_sync() | 999 | +long do_sync(void) |
1000 | { | 1000 | { |
1001 | sync(); | 1001 | sync(); |
1002 | return 0; | 1002 | return 0; |
hw/alpha_palcode.c
@@ -56,7 +56,7 @@ pal_handler_t pal_handlers[] = { | @@ -56,7 +56,7 @@ pal_handler_t pal_handlers[] = { | ||
56 | 56 | ||
57 | #if 0 | 57 | #if 0 |
58 | /* One must explicitely check that the TB is valid and the FOE bit is reset */ | 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 | /* This writes into a temp register, not the actual one */ | 61 | /* This writes into a temp register, not the actual one */ |
62 | mtpr(TB_TAG); | 62 | mtpr(TB_TAG); |
@@ -65,7 +65,7 @@ static void update_itb () | @@ -65,7 +65,7 @@ static void update_itb () | ||
65 | mtpr(ITB_PTE); | 65 | mtpr(ITB_PTE); |
66 | } | 66 | } |
67 | 67 | ||
68 | -static void update_dtb (); | 68 | +static void update_dtb (void); |
69 | { | 69 | { |
70 | mtpr(TB_CTL); | 70 | mtpr(TB_CTL); |
71 | /* This write into a temp register, not the actual one */ | 71 | /* This write into a temp register, not the actual one */ |
target-i386/helper.c
@@ -1670,7 +1670,7 @@ void helper_cmpxchg8b(void) | @@ -1670,7 +1670,7 @@ void helper_cmpxchg8b(void) | ||
1670 | CC_SRC = eflags; | 1670 | CC_SRC = eflags; |
1671 | } | 1671 | } |
1672 | 1672 | ||
1673 | -void helper_single_step() | 1673 | +void helper_single_step(void) |
1674 | { | 1674 | { |
1675 | env->dr[6] |= 0x4000; | 1675 | env->dr[6] |= 0x4000; |
1676 | raise_exception(EXCP01_SSTP); | 1676 | raise_exception(EXCP01_SSTP); |
target-i386/svm.h
@@ -323,7 +323,7 @@ struct __attribute__ ((__packed__)) vmcb { | @@ -323,7 +323,7 @@ struct __attribute__ ((__packed__)) vmcb { | ||
323 | 323 | ||
324 | /* function references */ | 324 | /* function references */ |
325 | 325 | ||
326 | -void helper_stgi(); | 326 | +void helper_stgi(void); |
327 | void vmexit(uint64_t exit_code, uint64_t exit_info_1); | 327 | void vmexit(uint64_t exit_code, uint64_t exit_info_1); |
328 | int svm_check_intercept_param(uint32_t type, uint64_t param); | 328 | int svm_check_intercept_param(uint32_t type, uint64_t param); |
329 | static inline int svm_check_intercept(unsigned int type) { | 329 | static inline int svm_check_intercept(unsigned int type) { |
vl.c
@@ -899,7 +899,7 @@ static struct qemu_alarm_timer alarm_timers[] = { | @@ -899,7 +899,7 @@ static struct qemu_alarm_timer alarm_timers[] = { | ||
899 | {NULL, } | 899 | {NULL, } |
900 | }; | 900 | }; |
901 | 901 | ||
902 | -static void show_available_alarms() | 902 | +static void show_available_alarms(void) |
903 | { | 903 | { |
904 | int i; | 904 | int i; |
905 | 905 |