I've got a project and I have many warnings along the line of,
main.c:219:: warning: (1518) direct function call made with an incomplete prototype (I2cStop)
At line 219 of main I have,
In i2c.c I have,
And in i2c.h I have,
In main, before this warning I have various other calls to the i2c routines that don't cause any warning whatsoever.
Anyone any idea what's causing this?
I know it's only a warning but there are so many of them I can't see any "real" warnings and will probably miss them.
Thanks,
Mike.
As I'm typing this I worked it out, I need void inside the empty brackets of the prototypes. Has this been recently introduced? I'm sure I used this exact same code many years ago without any warnings.
main.c:219:: warning: (1518) direct function call made with an incomplete prototype (I2cStop)
At line 219 of main I have,
In i2c.c I have,
And in i2c.h I have,
In main, before this warning I have various other calls to the i2c routines that don't cause any warning whatsoever.
Anyone any idea what's causing this?
I know it's only a warning but there are so many of them I can't see any "real" warnings and will probably miss them.
Thanks,
Mike.
As I'm typing this I worked it out, I need void inside the empty brackets of the prototypes. Has this been recently introduced? I'm sure I used this exact same code many years ago without any warnings.