Message ID | 20181214144236.19294-1-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show |
Series | parser: fix gcc warning: set but not used parameter | expand |
On 14/12/18 15:42, Christian Storm wrote: > gcc 8.2 reports a warning: parameter 'tmp' set but > not used [-Wunused-but-set-parameter] for function > set_find_path(). Silence this warning. > > Signed-off-by: Christian Storm <christian.storm@siemens.com> > --- > corelib/parsing_library.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/corelib/parsing_library.c b/corelib/parsing_library.c > index f1b8a1b..009cd2a 100644 > --- a/corelib/parsing_library.c > +++ b/corelib/parsing_library.c > @@ -204,6 +204,7 @@ bool set_find_path(const char **nodes, const char *newpath, char **tmp) > char *token, *ref; > bool first = true; > int allocstr = 0; > + (void)tmp; > > /* > * Include of files is not supported, > Applied to -master, thanks ! Best regards, Stefano Babic
diff --git a/corelib/parsing_library.c b/corelib/parsing_library.c index f1b8a1b..009cd2a 100644 --- a/corelib/parsing_library.c +++ b/corelib/parsing_library.c @@ -204,6 +204,7 @@ bool set_find_path(const char **nodes, const char *newpath, char **tmp) char *token, *ref; bool first = true; int allocstr = 0; + (void)tmp; /* * Include of files is not supported,
gcc 8.2 reports a warning: parameter 'tmp' set but not used [-Wunused-but-set-parameter] for function set_find_path(). Silence this warning. Signed-off-by: Christian Storm <christian.storm@siemens.com> --- corelib/parsing_library.c | 1 + 1 file changed, 1 insertion(+)