You are here

“Old Style Function Definition" Warning in PSoC® Designer™ - KBA83779 | Cypress Semiconductor

Support & Community

“Old Style Function Definition" Warning in PSoC® Designer™ - KBA83779

Last Updated: April 05, 2016

When I compile a project using the newer versions of PSoC Designer, I get an “Old Style Function Definition” warning. I can build this project using earlier versions earlier than PSoC Designer 5.0 without receiving any warnings. What causes this warning and how to overcome it? 


The new ImageCraft compiler (used with PSoC Designer 5.0 Service Pack 4.5 onwards until the latest PSoC Designer 5.4) is more compliant to the ANSI C standard.

Previous versions of PSoC Designer allowed you to leave the argument list blank in function definitions. For example: 

void main()

If you attempt to compile this code with the new ImageCraft compiler, you will receive an “Old Style Function Definition for ‘main’” warning. This warning can be safely ignored; however, you can eliminate this warning by adding void to the argument list. 

void main(void)
Knowledge Base Tags: 

Provide feedback on this article

Browse KB By Product

Browse KB by Type