diff mbox series

Fix warnings when CONFIG_LIBCONFIG is not set

Message ID 20181026154112.20968-1-sbabic@denx.de
State Accepted
Headers show
Series Fix warnings when CONFIG_LIBCONFIG is not set | expand

Commit Message

Stefano Babic Oct. 26, 2018, 3:41 p.m. UTC
Signed-off-by: Christian Storm <christian.storm@siemens.com>
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 include/swupdate_settings.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/swupdate_settings.h b/include/swupdate_settings.h
index 7101cc5..c3b083d 100644
--- a/include/swupdate_settings.h
+++ b/include/swupdate_settings.h
@@ -36,7 +36,10 @@  static inline int read_settings_user_id(const char __attribute__ ((__unused__))*
 }
 
 static inline int settings_into_dict(void __attribute__ ((__unused__)) *settings,
-					void __attribute__ ((__unused__))*data);
+					void __attribute__ ((__unused__))*data)
+{
+	return -1;
+}
 #endif
 
 #endif