1
Coding / Re: codeblocks compile warnings
« on: October 21, 2012, 05:29:46 pm »In various header files used by UFO & UFO_TESTALL there are uses of
'__attribute__((format(printf' to enable the compiler to perform additional checks.
Changing this to '__attribute__((format(__printf__' stops the preprocessor from causing the warning in the C::B environment.
Ref: http://docs.freebsd.org/info/gcc/gcc.info.Function_Attributes.html
" You may also specify attributes with `__' preceding and following
each keyword. This allows you to use them in header files without
being concerned about a possible macro of the same name. For example,
you may use `__noreturn__' instead of `noreturn'."
I have had this working on my local copy for a few months & haven't seen any side effects in C::B
Regards
Andy