Compilation on cygwin, using gcc v3 with option -mno-cygwin are currently
producing a large number of the following warnings:

   warning: `gnu_printf' is an unrecognized format function type

These have been introduced with the recent MinGW GNU C99 printf compliance
patch, as gnu_printf was only introduced for __attribute__ ((format ( ...
))) with gcc v4.4 and is not recognized with earlier versions.

The attached corrective fix adds gcc version detection to the previous patch
to avoid the problem.

Note 1: version detection follows a common __GNUC_PREREQ() macro (eg.
https://svn.mcs.anl.gov/repos/ZeptoOS/trunk/BGP/packages/busybox/src/include/platform.h
)
Note 2: it is not possible to detect the availability of gnu_printf as a
format through #ifdef gnu_printf on MinGW

Attachment: patch_gnu_printf_format.diff
Description: Binary data

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to