I just used psoc designer5.0 to write the timer16_initisr service interruption function. There was a warning when warning appeared. In the previous version of 4.3, I googled it and found the solution.
question: wh En I compile a project with new version of psoc designer, I get warning "Old Style Function Definition ". but earlier, this project used to build without any warning. why is this warning generated and how do I remove this warning? Response:In Old function definitions, if there is no argument needed to be passed to function, then argument list cocould be left blank. For example, earlier 'main' function cocould be defined: Void main () { } But now compiler generates a warning, "Old Style Function Definition for 'main'". Though this warning can be safely ignored, if you wowould like to remove this warning, write definition as below: Void main (void) { } Therefore, when the new compiler is compiled, the void must be supplemented without passing parameters. |