I have code that trips the warning:

warning: function might be possible candidate for ‘printf’ format attribute

Unfortunately, mingw uses a different declaration for saying something is printf like than gcc does running on MacOS and Linux.


Is there a way to do the declaration in a portable manner?