]> git.sur5r.net Git - openocd/commit
corrective fix for MinGW GNU C99 printf compliance
authorRedirect 'Slash' NIL <redirect.slash.nil@gmail.com>
Mon, 19 Oct 2009 16:49:34 +0000 (09:49 -0700)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 19 Oct 2009 16:49:34 +0000 (09:49 -0700)
commit113679ff59e20530c621051d0aceb1876a49c45d
treeb2c8bad588933bd2dc50aac0091f17dab5ef3075
parent557d1b6490fab73bd0df0b1127275db784281595
corrective fix for MinGW GNU C99 printf compliance

Compilation on cygwin, using gcc v3 with option -mno-cygwin,
currently produces 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 with gcc v4.4
and is not recognized with earlier versions.

The attached fix adds gcc version detection to the previous patch
to avoid the problem.
src/helper/command.h
src/helper/log.h