<?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>topic Re: HCS12 compiler does not throw an error for function arguments number mismatch in declaration and definition in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621482#M5317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;can you please send me a demo project of this problem?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Apr 2017 06:26:16 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2017-04-06T06:26:16Z</dc:date>
    <item>
      <title>HCS12 compiler does not throw an error for function arguments number mismatch in declaration and definition</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621481#M5316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A function is declared with 2 arguments, but the definition has only 1 argument&lt;/P&gt;&lt;P&gt;The HCS12 compiler does not throw an error or warning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CodeWarrior IDE version 5.9.0 build 5294&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 05:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621481#M5316</guid>
      <dc:creator>surabikrishnamu</dc:creator>
      <dc:date>2017-03-27T05:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 compiler does not throw an error for function arguments number mismatch in declaration and definition</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621482#M5317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;can you please send me a demo project of this problem?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 06:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621482#M5317</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-04-06T06:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 compiler does not throw an error for function arguments number mismatch in declaration and definition</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621483#M5318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18458iE82BCB1D164C4FD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 09:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621483#M5318</guid>
      <dc:creator>surabikrishnamu</dc:creator>
      <dc:date>2017-04-06T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 compiler does not throw an error for function arguments number mismatch in declaration and definition</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621484#M5319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18550i392F3947808657BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a main.c file which calls the function add&lt;/P&gt;&lt;P&gt;The function add is declared in add.h and defined in add.c&lt;/P&gt;&lt;P&gt;I have added all these files in the project&lt;/P&gt;&lt;P&gt;I don't get an error when I compile the project&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 10:00:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621484#M5319</guid>
      <dc:creator>surabikrishnamu</dc:creator>
      <dc:date>2017-04-06T10:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 compiler does not throw an error for function arguments number mismatch in declaration and definition</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621485#M5320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The declaration in add.h has 2 arguments&lt;/P&gt;&lt;P&gt;The definition in add.c has just 1 argument&lt;/P&gt;&lt;P&gt;When I call the function in main.c, I am passing 2 arguments which would result in error&lt;/P&gt;&lt;P&gt;I was expecting an error or warning "wrong number of arguments"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 02:52:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621485#M5320</guid>
      <dc:creator>surabikrishnamu</dc:creator>
      <dc:date>2017-04-07T02:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 compiler does not throw an error for function arguments number mismatch in declaration and definition</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621486#M5321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surabi,&lt;/P&gt;&lt;P&gt;I have to disagree that this is a compiler bug/error. You are missing to include&lt;/P&gt;&lt;P&gt;#include "add.h"&lt;/P&gt;&lt;P&gt;inside add.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the C language, the compiler won't be able (and shall not) produce an error for this. The linker has no chance to detect this neither. If you want to catch something like this, you would have to compile your sources in C++ mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 07:03:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621486#M5321</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-04-07T07:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 compiler does not throw an error for function arguments number mismatch in declaration and definition</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621487#M5322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply&lt;/P&gt;&lt;P&gt;Enabling C++ in Compiler options does detect&amp;nbsp;this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Surabi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 04:04:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/HCS12-compiler-does-not-throw-an-error-for-function-arguments/m-p/621487#M5322</guid>
      <dc:creator>surabikrishnamu</dc:creator>
      <dc:date>2017-04-10T04:04:43Z</dc:date>
    </item>
  </channel>
</rss>

