<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Classic/Legacy CodeWarrior中的主题 Indirection to different types</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Indirection-to-different-types/m-p/143079#M1528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have this definition :&lt;/DIV&gt;&lt;DIV&gt;SBYTE const SUIVANT[6]={'S','U','I','V',1,0};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I call the function LCDPutString(SUIVANT,2,15) which is defined like it :&lt;/DIV&gt;&lt;DIV&gt;void LCDPutString(SBYTE *s,BYTE lgn,BYTE pos)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When i compile i have this warning :&amp;nbsp;Indirection to different types ('const signed char *' instead of 'signed char *')&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I undestand this warning but would it be possible to do something to avoid it? I&amp;nbsp;could declare SUIVANT not in const but i will lose ram. The LCDPutString can receive&amp;nbsp;other arguments that&amp;nbsp;const arguments.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can i do?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you very much&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2007 23:26:12 GMT</pubDate>
    <dc:creator>calou</dc:creator>
    <dc:date>2007-01-17T23:26:12Z</dc:date>
    <item>
      <title>Indirection to different types</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Indirection-to-different-types/m-p/143079#M1528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have this definition :&lt;/DIV&gt;&lt;DIV&gt;SBYTE const SUIVANT[6]={'S','U','I','V',1,0};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I call the function LCDPutString(SUIVANT,2,15) which is defined like it :&lt;/DIV&gt;&lt;DIV&gt;void LCDPutString(SBYTE *s,BYTE lgn,BYTE pos)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When i compile i have this warning :&amp;nbsp;Indirection to different types ('const signed char *' instead of 'signed char *')&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I undestand this warning but would it be possible to do something to avoid it? I&amp;nbsp;could declare SUIVANT not in const but i will lose ram. The LCDPutString can receive&amp;nbsp;other arguments that&amp;nbsp;const arguments.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can i do?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you very much&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 23:26:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Indirection-to-different-types/m-p/143079#M1528</guid>
      <dc:creator>calou</dc:creator>
      <dc:date>2007-01-17T23:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Indirection to different types</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Indirection-to-different-types/m-p/143080#M1529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Does LCDPutString ever change its first argument? Given the name of the function I would not expect this.&lt;BR /&gt;If it does never change the s parameter, you can add the const there as its not a problem to call "const SBYTE *"'s with a "SBYTE *", only the other way around does cause the warning.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 07:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Indirection-to-different-types/m-p/143080#M1529</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-01-18T07:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Indirection to different types</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Indirection-to-different-types/m-p/143081#M1530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thank you for your answer. The content of s is not changed&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 21:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Indirection-to-different-types/m-p/143081#M1530</guid>
      <dc:creator>calou</dc:creator>
      <dc:date>2007-01-18T21:00:24Z</dc:date>
    </item>
  </channel>
</rss>

