<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 4, 2020 at 11:12 AM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@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">Hello Aschref Ben thabet,<br>
<br>
On Tue, Aug 4, 2020 at 6:35 AM Aschref Ben-Thabet<br>
<<a href="mailto:aschref.ben-thabet@embedded-brains.de" target="_blank">aschref.ben-thabet@embedded-brains.de</a>> wrote:<br>
><br>
> Dear RTEMS developers Team,<br>
> i am a new member focusing now on fixing the GCC10 warnings Compiler.this last has told that these both functions are declared but not used.<br>
> In /rtems/testsuites/libtests/dl10/dl-load.c,the test file includes this both functions without further use. that can generate a warning like Wunused-function.<br>
> can you tell me please for which issue are these static functions in this test file declared, and when they have any effect in the test, is it helpful to erase them (it fixes the warning)?<br>
<br>
I think these functions are just copied from other dltests. Chris<br>
Johns may comment on their elimination.<br>
<br>
You would want to look at the purpose of the test, and how similar<br>
tests are structured. Was it a mistake not to call these functions? Or<br>
are they not needed for this test?<br></blockquote><div><br></div><div>The inclusion of these may generate special relocation records. Chris</div><div>would know that.</div><div><br></div><div>If they have to be there, there are examples on how to disable a specific</div><div>warning around a block of code. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> static void dl_close (void* handle)<br>
> {<br>
> int r;<br>
> printf ("handle: %p closing\n", handle);<br>
> r = dlclose (handle);<br>
> if (r != 0)<br>
> printf("dlclose failed: %s\n", dlerror()) ;<br>
> rtems_test_assert (r == 0);<br>
> }<br>
> static int dl_call (void* handle, const char* func)<br>
> {<br>
> call_sig call = dlsym (handle, func);<br>
> if (call == NULL)<br>
> {<br>
> printf("dlsym failed: symbol not found: %s\n", func);<br>
> return 1;<br>
> }<br>
> call ();<br>
> return 0;<br>
> }<br>
<br>
It may be helpful to avoid html markup in mailing lists. We don't<br>
filter it out, but some mailing lists (and clients) may.<br>
<br>
> Beste regards<br>
> Aschref Ben thabet<br>
> Embedded Brains GmbH<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><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><br>
</blockquote></div></div>