<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SEGGER Embedded Studio v6.20 compiler warning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85397/segger-embedded-studio-v6-20-compiler-warning</link><description>Hi DevZone, 
 I recently updated my version of SEGGER Embedded Studio for ARM to v6.20. Now, warnings that were not shown before are caught. 
 
 I want to ignore the warning triggered specifically when giving reference to a member of a packed struct I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Mar 2022 09:26:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85397/segger-embedded-studio-v6-20-compiler-warning" /><item><title>RE: SEGGER Embedded Studio v6.20 compiler warning</title><link>https://devzone.nordicsemi.com/thread/356796?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 09:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13fc974e-092f-42b6-9157-5e8af5ed61ca</guid><dc:creator>Casper Kronborg Pedersen</dc:creator><description>&lt;p&gt;Word is back from SEGGER.&lt;/p&gt;
&lt;p&gt;Apparently, when using a Nordic license for SEGGER, one has to use the community forums and not the direct support.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fforum.segger.com%2F&amp;amp;data=04%7C01%7Cckp%40danishaerospace.com%7Cd274f999532e499be4e008da005ab595%7C041aed29a85f4ac2a7fba7ff2a8cb228%7C0%7C1%7C637822686868198507%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=lJ9BBGf4m63ByZ9nncB0L7GOnt13WePLrwVOlvSeLfk%3D&amp;amp;reserved=0"&gt;https://forum.segger.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, I still got a pointer in the right direction from the Engineer who got back to me and was able to figure it out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Go to Project Options -&amp;gt; Code -&amp;gt; Compiler -&amp;gt; Additional C/C++ Compiler Options&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make sure to chose&amp;nbsp; the &amp;quot;Common&amp;quot; build configuration if you want this for all build configurations. Alternatively select the specific build configuration of interest.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Add the line&amp;nbsp;-Wno-address-of-packed-member&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Save and rebuild&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, check out&amp;nbsp;&lt;a href="https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html"&gt;https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html&lt;/a&gt;&amp;nbsp;for more options.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps someone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Br. Casper&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGGER Embedded Studio v6.20 compiler warning</title><link>https://devzone.nordicsemi.com/thread/356317?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 13:36:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f4de80c-3adf-467f-b458-3e6d9bc7f83a</guid><dc:creator>Casper Kronborg Pedersen</dc:creator><description>&lt;p&gt;Ok, I have just sent a ticket. Fingers crossed.&lt;/p&gt;
&lt;p&gt;Br. Casper&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGGER Embedded Studio v6.20 compiler warning</title><link>https://devzone.nordicsemi.com/thread/356315?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 13:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ef86ae1-537a-4826-8a7e-fb9cc7aa91b2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, if you get this resolved with the help from Segger it would be great if you post the solution here. Just keep it open &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGGER Embedded Studio v6.20 compiler warning</title><link>https://devzone.nordicsemi.com/thread/356309?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 13:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9bfe4f5-b614-4e5c-bc27-02301e4989f2</guid><dc:creator>Casper Kronborg Pedersen</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Sorry for asking Nordic about this. To be honest I sometimes forget that you and SEGGER are not a single unit.&lt;/p&gt;
&lt;p&gt;I will post a Ticket to SEGGER directly, thank you for the link.&lt;/p&gt;
&lt;p&gt;However, if it is ok with you then I could post the answer here if there is one. But I guess that would require this post to stay open until it is resolved?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGGER Embedded Studio v6.20 compiler warning</title><link>https://devzone.nordicsemi.com/thread/356308?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 13:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12d3fbc2-43be-4e79-bfd9-2609fc14c5f7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not aware of any way to suppress specific warnings in Segger Embedded Studio (with a few specific exceptions as documented in &lt;a href="https://wiki.segger.com/Embedded_Studio_Code_Options"&gt;Embedded Studio Code Options&lt;/a&gt;). You could &lt;a href="https://www.segger.com/support/technical-support/"&gt;ask SEGGER&lt;/a&gt; directly, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>