<?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>what is (void)dummy? nRF52840 SDK 14.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26517/what-is-void-dummy-nrf52840-sdk-14-0</link><description>Hi there, 
 I came across the function call &amp;quot;(void)dummy;&amp;quot; which I am trying to locate. Where can I find this? 
 __STATIC_INLINE void nrf_rtc_event_clear(NRF_RTC_Type * p_rtc, nrf_rtc_event_t event)
{
 *((volatile uint32_t *)((uint8_t *)p_rtc + (uint32_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Nov 2017 18:06:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26517/what-is-void-dummy-nrf52840-sdk-14-0" /><item><title>RE: what is (void)dummy? nRF52840 SDK 14.0</title><link>https://devzone.nordicsemi.com/thread/104338?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 18:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e21c20c7-ced1-418b-8890-06054d441748</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is (void)dummy? nRF52840 SDK 14.0</title><link>https://devzone.nordicsemi.com/thread/104340?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 18:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e69001ed-5500-4787-a4a7-75ea27a71721</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is (void)dummy? nRF52840 SDK 14.0</title><link>https://devzone.nordicsemi.com/thread/104339?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2017 09:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be6841dc-e917-4adf-ac89-c1853f656741</guid><dc:creator>tvdstaaij</dc:creator><description>&lt;p&gt;The important part is the line before that. The &lt;code&gt;volatile uint32_t dummy = ...&lt;/code&gt; line exists to force a read-back of the register, which is specifically needed on the Cortex M4 chips because otherwise the M4&amp;#39;s write buffer may delay the write, which is undesirable when clearing interrupt flags. Like endnode mentioned, the void cast does literally nothing and is just to suppress possible compiler warnings about &lt;code&gt;dummy&lt;/code&gt; being unused after assignment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is (void)dummy? nRF52840 SDK 14.0</title><link>https://devzone.nordicsemi.com/thread/104337?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2017 23:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0514ae91-7756-4b09-b9a4-b02c8f1d5f68</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;There is no such function, this is only to suppress certain warning during ANSI C compilation (especially when you treat all warnings as errors which many people prefer). &lt;a href="https://stackoverflow.com/questions/3417837/what-is-the-best-way-to-suppress-unused-variable-x-warning"&gt;See various ways how to handle this here&lt;/a&gt; (and many more references on the internet).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>