<div dir="ltr">Thanks for the answer!<div>I can see that we shouldn't have any asserts in the code, we are submitting some changes and drivers for the lpc1768 soon and will try to delete all the asserts in that code.</div><div>Thanks again!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 4:31 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On March 9, 2015 2:25:29 PM CDT, "Marcos Díaz" <<a href="mailto:marcos.diaz@tallertechnologies.com">marcos.diaz@tallertechnologies.com</a>> wrote:<br>
>Hi!<br>
><br>
>I wanted to know which warning this raised, and how is the correct way<br>
>to set this flag in production code?<br>
<br>
</span>First, there should be no assert's in cpukit so those there should be fixed. I think the same applies for BSPs.<br>
<br>
It tripped some warnings for set but not used variables on m68k. I noticed it had -DNDEBUG which it shouldn't have, so I removed them.<br>
<br>
Adding it to CFLAGS on the configure line is the best way but there shouldn't have been any.<br>
<br>
There is a ticket for the asserts to be removed.<br>
<div class="HOEnZb"><div class="h5"><br>
>Thanks!<br>
><br>
><br>
>On Mon, Mar 9, 2015 at 2:38 PM, Joel Sherrill<br>
><<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>> wrote:<br>
><br>
>---<br>
> c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
>diff --git a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg<br>
>b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg<br>
>index 4cf24c8..a5ed9c6 100644<br>
>--- a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg<br>
>+++ b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg<br>
>@@ -8,7 +8,7 @@ RTEMS_CPU = arm<br>
><br>
> CPU_CFLAGS = -march=armv7-m -mthumb<br>
><br>
>-CFLAGS_OPTIMIZE_V = -O2 -ggdb3 -DNDEBUG<br>
>+CFLAGS_OPTIMIZE_V = -O2 -ggdb3<br>
> BINEXT?=.bin<br>
> # This defines the operations performed on the linked executable.<br>
> # is currently required.<br>
>--<br>
>1.9.3<br>
><br>
>_______________________________________________<br>
>devel mailing list<br>
><a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
><a href="http://lists.rtems.org/mailman/listinfo/devel" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
><br>
><br>
><br>
><br>
>--<br>
><br>
>______________________________<br>
><br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">>Marcos Díaz<br>
><br>
>Software Engineer<br>
><br>
><br>
>San Lorenzo 47, 3rd Floor, Office 5<br>
><br>
>Córdoba, Argentina<br>
><br>
><br>
>Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452<br>
><br>
>Skype: markdiaz22<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--joel<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:16px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">______________________________</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><a href="http://www.tallertechnologies.com" target="_blank"><img src="http://www.tallertechnologies.com/templates/tallertechnologies/images/signature.png" width="200" height="78"></a></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><br><span style="font-size:16px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></b></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font face="verdana, sans-serif" size="4">Marcos Díaz</font></span></p><p dir="ltr" style="margin-top:0pt;margin-bottom:0pt"><font color="#000000" face="verdana, sans-serif"><span style="line-height:17px;white-space:pre-wrap">Software Engineer</span></font></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></b></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif" size="1">San Lorenzo 47, 3rd Floor, Office 5</font></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif" size="1">Córdoba, Argentina </font></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><font face="arial, helvetica, sans-serif" size="1"><br><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></font></b></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><font face="arial, helvetica, sans-serif" size="1"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Phone:</span><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> +54 351 4217888 / +54 351 4218211/ </span><span style="color:rgb(0,0,0);line-height:12px;white-space:pre-wrap">+54 351 7617452</span></font></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><font face="arial, helvetica, sans-serif" size="1"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Skype:</span><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> markdiaz22</span></font></p><div><span style="font-size:11px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><br></span></div></span></div></div>
</div>