<?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>Defined but not used warning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87100/defined-but-not-used-warning</link><description>I added some functionality to asset_tracker_v2. I used two pins of Nordic chip for following purpose: 1. Detect BMS, pin as Input 2. Reset BMS, pin as output. The pins overlay is added in nrf9160dk_nrf9160_ns.overlay file. The pins configuration and binding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Apr 2022 11:04:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87100/defined-but-not-used-warning" /><item><title>RE: Defined but not used warning</title><link>https://devzone.nordicsemi.com/thread/363872?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 11:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb0bf0d-75f5-46bb-9ec6-18dd8ad73ebb</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://en.wikipedia.org/wiki/Include_guard"&gt;https://en.wikipedia.org/wiki/Include_guard&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I recommend that you do not include global variables in header files. &lt;br /&gt;I myself would have used get and set functions instead.&lt;/p&gt;
&lt;p&gt;This stack overflow article also talk about the subject: &lt;br /&gt;&lt;a href="https://stackoverflow.com/questions/8108634/global-variables-in-header-file"&gt;https://stackoverflow.com/questions/8108634/global-variables-in-header-file&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>