On 04/08/2010 02:28 AM, jef moskot wrote:
> This is on a FreeBSD 7.1/amd64 machine.
>
> I'll spare you the whole output of make, but there's a lot of this:
>
> ...
> CXX BasicBlock.lo
> CXX ConstantFold.lo
> CXX Constants.lo
> llvm/lib/VMCore/Constants.cpp: In static member function 'static
> llvm::Constant* llvm::ConstantExpr::getAlignOf(const llvm::Type*)':
> llvm/lib/VMCore/Constants.cpp:1532: warning: missing sentinel in
> function call
It certainly HAS a sentinel:
const Type *AligningTy = StructType::get(Ty->getContext(),
Type::getInt1Ty(Ty->getContext()),
Ty, NULL);
Which compiler version are you using?
> CXX Core.lo
> CXX Dominators.lo
> CXX Function.lo
> In file included from llvm/lib/VMCore/Function.cpp:367:
> ./llvm/include/llvm/Intrinsics.gen: In function 'const
> llvm::FunctionType* llvm::Intrinsic::getType(llvm::LLVMContext&,
> llvm::Intrinsic::ID, const llvm::Type**, unsigned int)':
> ./llvm/include/llvm/Intrinsics.gen:4503: warning: missing sentinel in
> function call
These have the proper sentinels too.
>
> Anything to worry about?
The compiler shouldn't give those warnings since the code is fine, it'd
be good to find out why the compiler is confused.
Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml