Fix warning message when declaring global variables in configuration
authorLaurent Bessard
Wed, 19 Dec 2012 12:25:56 +0100
changeset 713 e3ca0f4d47b3
parent 712 58aadb212976
child 714 91fe96900800
child 793 268bf4ca5fa1
Fix warning message when declaring global variables in configuration
lib/accessor.h
--- a/lib/accessor.h	Tue Dec 04 00:05:22 2012 +0100
+++ b/lib/accessor.h	Wed Dec 19 12:25:56 2012 +0100
@@ -40,7 +40,7 @@
 		return (*GLOBAL__##name).value;\
 	}
 #define __DECLARE_GLOBAL_PROTOTYPE(type, name)\
-    extern type* __GET_GLOBAL_##name();
+    extern type* __GET_GLOBAL_##name(void);
 #define __DECLARE_EXTERNAL(type, name)\
 	__IEC_##type##_p name;
 #define __DECLARE_EXTERNAL_FB(type, name)\