(dummy.c) : Create also prototype to shut up GCC.
authoraj <aj>
Wed, 27 Dec 2000 17:17:58 +0000 (17:17 +0000)
committeraj <aj>
Wed, 27 Dec 2000 17:17:58 +0000 (17:17 +0000)
Rules

diff --git a/Rules b/Rules
index 956a2eb..464495e 100644 (file)
--- a/Rules
+++ b/Rules
@@ -74,7 +74,8 @@ endef
 
 $(common-objpfx)dummy.c:
        rm -f $@
-       echo 'void __dummy__ (void) { }' > $@
+       (echo 'extern void __dummy__ (void);'; \
+        echo 'void __dummy__ (void) { }') > $@
 common-generated += dummy.o dummy.c
 \f
 # This makes all the auxiliary and test programs.