aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-01-03 17:43:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-01-03 17:43:37 -0500
commit1ca05b0f393c0201c0e8efe87831edddb6a53532 (patch)
tree4419fdb78cba0962313f8e6bcf35d16a3401183e /src/types.h
parentb5bb9db8425b3b463e634874e3a201a354d55ac7 (diff)
downloadseabios-1ca05b0f393c0201c0e8efe87831edddb6a53532.tar.gz
Be sure to add "void" to all function prototypes that take no args.
Omitting "void" leads to a K&R style declaration which was not intended.
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types.h b/src/types.h
index 59999c5a..7b87b867 100644
--- a/src/types.h
+++ b/src/types.h
@@ -34,9 +34,9 @@ union u64_u32_u {
#define UNIQSEC __FILE__ "." __stringify(__LINE__)
#define __noreturn __attribute__((noreturn))
-extern void __force_link_error__only_in_32bit_flat() __noreturn;
-extern void __force_link_error__only_in_32bit_segmented() __noreturn;
-extern void __force_link_error__only_in_16bit() __noreturn;
+extern void __force_link_error__only_in_32bit_flat(void) __noreturn;
+extern void __force_link_error__only_in_32bit_segmented(void) __noreturn;
+extern void __force_link_error__only_in_16bit(void) __noreturn;
#define __ASM(code) asm(".section .text.asm." UNIQSEC "\n\t" code)