<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>Disable compiler warning</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/31307/disable-compiler-warning</link><description> 
How do you disable compiler warnings in uVision 4? It&amp;#39;s for a K20
procesor so it&amp;#39;s an ARM Cortex M4. I tried the standard C++ #pragma
warning but it didn&amp;#39;t sppear to work... 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/148287?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 22:34:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:beab9c21-a5bd-4c79-9cff-daa28c05752a</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
Some visitors tend to provide indirect answers; other visitors
tend to provide direct answers; so that we have more and more
contributors, isn&amp;#39;t it a win-win?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/147865?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 22:00:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:da59f9d2-e6ab-41d7-9101-861f6308307e</guid><dc:creator>K Machingar</dc:creator><description>&lt;p&gt;&lt;p&gt;
So next time my wife can&amp;#39;t start her car, I&amp;#39;ll tell her to check
the battery and do nothing else.&lt;/p&gt;

&lt;p&gt;
Yeah, right.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/148292?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 19:21:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6b1c4532-ae17-465b-9bb1-43028aba11c4</guid><dc:creator>BaEjack Zhang</dc:creator><description>&lt;p&gt;&lt;p&gt;
Follow Andrew Neil&amp;#39;s links you can find these two reference
pages:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/armccref/armccref_CHDHFIAG.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/armccref/armccref_CHDHFIAG.htm"&gt;www.keil.com/.../armccref_CHDHFIAG.htm&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;

&lt;a href="http://www.keil.com/support/man/docs/armccref/armccref_CIHECIAD.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/armccref/armccref_CIHECIAD.htm"&gt;www.keil.com/.../armccref_CIHECIAD.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
By compiler options or by #pragma extensions.&lt;br /&gt;
Also a lot more you can configure to direct the compiler how to
compile your application.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/147863?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 19:01:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:414f8832-2b96-4d8c-a22a-a3d1375363e4</guid><dc:creator>Ryan Brown</dc:creator><description>&lt;p&gt;&lt;p&gt;
There&amp;#39;s maybe a few ways to do it but then I would like to know
all the ways and some advice on which one is the best. Giving none of
the ways doesn&amp;#39;t really help...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/146972?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 18:27:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b0fa773b-fbf4-4bbd-a987-23e913cfbb60</guid><dc:creator>BaEjack Zhang</dc:creator><description>&lt;p&gt;&lt;p&gt;
An old Chinese saying:&lt;br /&gt;
&lt;i&gt;It&amp;#39;s more appreciated to teach one how to fish than to give him a
fish.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Another one:&lt;br /&gt;
&lt;i&gt;Give answer without hesitation may deprive him of rights to
think.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
For someone&amp;#39;s good, I think we could provide him informations,
theories, thoughts, links, references, etc., but never provide the
direct results. HE CAN THINK AND DRAW CONCLUSION BY HIMSELF.&lt;br /&gt;
Also I would seldom provide codelets in a forum.&lt;br /&gt;
Faith and logic.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/146990?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 13:01:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2fbfbc84-883e-41b3-9560-41784f242ee7</guid><dc:creator>Ryan Brown</dc:creator><description>&lt;p&gt;&lt;p&gt;
It is nice that someone stands up to typical forum answerers (they
are everywhere) but they are still better than having no help so I
don&amp;#39;t want to be ungrateful. I hear you though, forums are not
typically a friendly place to ask questions...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/132182?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 12:36:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:92835f32-0b5e-433d-9845-f3876ef42aa7</guid><dc:creator>K Machingar</dc:creator><description>&lt;p&gt;&lt;p&gt;
You&amp;#39;re welcome.&lt;/p&gt;

&lt;p&gt;
Now lets just wait for the protestations from those &lt;i&gt;half
posters&lt;/i&gt; ;)&lt;/p&gt;

&lt;p&gt;
Or will they have been suppressed by my saying the above?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/132117?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 12:26:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0834389f-14e7-45d6-94bb-f8bb64721101</guid><dc:creator>Ryan Brown</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thank you!!!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/131947?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 12:20:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:41b91666-8596-478a-a826-e12bf3a59aa4</guid><dc:creator>K Machingar</dc:creator><description>&lt;p&gt;&lt;p&gt;
How I hate these half answers certain posters give. It just annoys
and proves nothing (except for the obnoxicity of the writer).&lt;/p&gt;

&lt;p&gt;
Anyway, you&amp;#39;ve nearly got it.&lt;/p&gt;

&lt;p&gt;
You can disable a specific warning. Say you want to disable
warning 161. It can be done either as a command line parameter in the
MiscControls section of&lt;/p&gt;

&lt;pre&gt;
--diagsuppress=161
&lt;/pre&gt;

&lt;p&gt;
or as a pragma with&lt;/p&gt;

&lt;pre&gt;
#pragma diag_warning 161
&lt;/pre&gt;

&lt;p&gt;
So even if you do find where to put the entry into &lt;i&gt;a GUI like
uVision&lt;/i&gt;, you still frequently have to find the relevant details
concerning what you have to put in.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/131185?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 11:09:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f7370b68-6922-4544-b8cd-876b497301ce</guid><dc:creator>Ryan Brown</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/armccref/armccref_CHDHFIAG.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/armccref/armccref_CHDHFIAG.htm"&gt;www.keil.com/.../armccref_CHDHFIAG.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Hmm all I see there is disabling all warnings... I looked all over
those two pages you linked and couldn&amp;#39;t find it.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/127972?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 10:59:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:99019eb0-68c3-4e70-90e3-353e52cac03d</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You didn&amp;#39;t follow far enough, then.&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;Hint:&lt;/b&gt; follow the link to the command-line option...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/117151?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 09:55:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4a9a5f46-fa23-4465-a0d4-1a537a0701db</guid><dc:creator>Ryan Brown</dc:creator><description>&lt;p&gt;&lt;p&gt;
I looked at them, I didn&amp;#39;t see a way to just turn off one specific
one, just all of them... I don&amp;#39;t remember the exact warning off-hand
and I don&amp;#39;t have access to my compiler right at the moment.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/106768?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 09:43:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1c6d3acc-5dea-4d6f-a09d-96e3374e67b2</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Follow the previously-given links - they will quickly lead you to
the answer...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/80898?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 09:27:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f2f272dc-7411-4c7e-96e2-10b3a75a4315</guid><dc:creator>Ryan Brown</dc:creator><description>&lt;p&gt;&lt;p&gt;
Well I&amp;#39;d like to disable one specific warning, the rest are very
useful...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/68011?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 04:09:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9eee90ee-32e7-4e5d-b530-f4d45e0c1eac</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
There are no standard C++ #pragma warning handling, even if the
#pragma keyword is standard.&lt;/p&gt;

&lt;p&gt;
#pragma itself may be standard, but the rest of the line isn&amp;#39;t
standard.&lt;/p&gt;

&lt;p&gt;
#pragma is an official way to specify compiler-specific attributes
to a compiler.&lt;/p&gt;

&lt;p&gt;
So whenever you want to use #pragma, you need to locate the
#pragma documentation for the specific compiler. Not only that -
quite a number of compilers think they are &amp;quot;clever&amp;quot; and will generate
warnings for unknown #pragma use - so many compilers will even
require that you quality your #pragma use within #ifdef blocks if you
want silent builds using multiple compilers.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable compiler warning</title><link>https://community.arm.com/thread/68012?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2013 01:49:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b9daad72-b3ea-48ae-9126-4948a77062c7</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
The beauty of a GUI like uVision is you don&amp;#39;t have to do all that
tiresome &lt;i&gt;(sic)&lt;/i&gt; reading of manuals - you just look through the
dialogues until you see something that says &amp;quot;Warnings&amp;quot; or
similar...&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_ca_compassembl_set.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_ca_compassembl_set.htm"&gt;www.keil.com/.../uv4_ca_compassembl_set.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_dg_adscc.htm"&gt;http://www.keil.com/support/man/docs/uv4/uv4_dg_adscc.htm&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>