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:
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.