{"id":1095,"date":"2020-03-22T11:24:02","date_gmt":"2020-03-22T11:24:02","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=1095"},"modified":"2022-02-18T15:37:48","modified_gmt":"2022-02-18T15:37:48","slug":"issues-with-code-configurator","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/mplab-x\/issues\/issues-with-code-configurator","title":{"rendered":"Issues with Code Configurator"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">warning: (520) function \u201c_SomeFunctionName\u201d is never called<\/h4>\n\n\n\n<p>Setting warning level to 0 will get rid of this one<\/p>\n\n\n\n<p>Right click project &gt; Properties &gt; XC8 Global Options &gt; XC8 Compiler &gt; Warning Level = 0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">warning: (1518) direct function call made with an incomplete prototype<\/h4>\n\n\n\n<p>For example warning will be created for calling this code configurator generated function:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ADC_StartConversion();<\/code><\/pre>\n\n\n\n<p>  Warning is created because code configurator code is incorrect, they have declared their (void) functions without including the &#8220;void&#8221; in the function definition brackets.  This is not correct for a C function, hence the warning.  You can ignore the warning or have to go through and update all of the code configurator functions you call with void added inside the brackets.  <\/p>\n\n\n\n<p>Microchip tech support response:  You can update the bool ADC_StartConversion(); function in adc.h file to bool ADC_StartConversion(void); such that a prototype that used to have () now has a (void) within the parenthesis and that will fix the warnings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>warning: (520) function \u201c_SomeFunctionName\u201d is never called Setting warning level to 0 will get rid of this one Right click project &gt; Properties &gt; XC8 Global Options &gt; XC8 Compiler &gt; Warning Level = 0 warning: (1518) direct function call made with an incomplete prototype For example warning will be created for calling this code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,88],"tags":[],"class_list":["post-1095","post","type-post","status-publish","format-standard","hentry","category-issues","category-mcc"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=1095"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1095\/revisions"}],"predecessor-version":[{"id":1184,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1095\/revisions\/1184"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=1095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=1095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=1095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}