[LLVMdev] VC++ warnings (was: Macro redefinitions)

Óscar Fuentes ofv at wanadoo.es
Mon Dec 7 20:06:10 PST 2009


OvermindDL1 <overminddl1 at gmail.com> writes:

[snip]

> If you are curious, the remaining non-pedantic warnings are:
>
> An actual warning that should be fixed:
> 4>r:\sdks\llvm\trunk\utils\tablegen\CodeGenDAGPatterns.h(27) : warning
> C4099: 'llvm::Init' : type name first seen using 'class' now seen
> using 'struct'

[snipped some more warnings]

> The rest of the project compiles clean in non-pedantic mode, quite
> wonderful.  :)

Not so wonderful. Lots of warnings are disabled:

  add_llvm_definitions( -wd4146 -wd4503 -wd4996 -wd4800 -wd4244 -wd4624 )
  add_llvm_definitions( -wd4355 -wd4715 -wd4180 -wd4345 -wd4224 )
  add_llvm_definitions( -wd4351 )

It's very likely that some of those warnings are really useful (i.e. are
hinting at bugs.) OTOH, keeping LLVM warning-free for VC++ and gcc at
the same time looks like a never-ending uphill battle.

-- 
Óscar




More information about the llvm-dev mailing list