Commit 935c447a authored by Flavio Santes's avatar Flavio Santes Committed by Andrew Boie
Browse files

shell: Add ARG_UNUSED macro to avoid compiler warnings



The ARG_UNUSED macro is added to avoid compiler warnings.

Change-Id: If14c3928a30c8f3156cdcd0fe11e22407a78c088
Signed-off-by: default avatarFlavio Santes <flavio.santes@intel.com>
parent 5349af87
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -118,7 +118,12 @@ void shell_register_default_module(const char *name);
#ifdef CONFIG_ENABLE_SHELL
int shell_run(struct device *dev);
#else
static inline int shell_run(struct device *dev) { return 0; }
static inline int shell_run(struct device *dev)
{
	ARG_UNUSED(dev);

	return 0;
}
#endif