<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 6, 2021 at 3:28 PM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> On 6 Apr 2021, at 5:38 am, Ryan Long <<a href="mailto:ryan.long@oarcorp.com" target="_blank">ryan.long@oarcorp.com</a>> wrote:<br>
> <br>
> CID 1255344: Unused value in copy().<br>
> <br>
> Closes #4339<br>
> ---<br>
> cpukit/libmisc/shell/main_cp.c | 64 ++++++++++++++++++++++++++++++++++++++++++<br>
> 1 file changed, 64 insertions(+)<br>
> <br>
> diff --git a/cpukit/libmisc/shell/main_cp.c b/cpukit/libmisc/shell/main_cp.c<br>
> index cddbc95..2984a50 100644<br>
> --- a/cpukit/libmisc/shell/main_cp.c<br>
> +++ b/cpukit/libmisc/shell/main_cp.c<br>
> @@ -310,11 +310,31 @@ copy(rtems_shell_cp_globals* cp_globals,<br>
> case FTS_ERR:<br>
> warnx("%s: %s",<br>
> curr->fts_path, strerror(curr->fts_errno));<br>
> + #if __rtems__<br>
<br>
Is this ok or should it be #ifdef?<br></blockquote><div><br></div><div>Style preference. Your choice. What's the libbsd rule?</div><div><br></div><div>-DVAR gets 1 but "#define VAR" is empty.</div><div><br></div><div>__rtems__ is 1 on RTEMS toolsets </div><div><br></div><div>I think I just told Ryan the wrong thing privately.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Chris<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>