MinGW works under Windows. Can you see MinGW in GCC tree? No.
I know fpc is cross platform. Did I say it wasn't? No. I know I maybe didn't express my opinion very well, but what I meant was that fpc is an alternative for GCC for Pascal family, and one option like any other compiler for Pascal developement under Windows.
You can get both ICC and VC for free.
Some projects I've participated and which were supposed to be compilable with many compilers, including MSVC and GCC, without warnings, used macros for this purpose. IIRC in one project there was two macros, unused, and USE(). They were used and defined like this:
Code:
#ifdef __GNUC__
# define unused __attribute__((unused))
# define USE(x)
#elif defined(_MSC_VER)
# define unused
# define USE(x) (x)
#endif /* __GNUC__ */
void func(int x unused)
{
USE(x);
...
}
I know this isn't very elegant solution, but I think it's better than long list of warnings.