From: richterm Date: Tue, 17 Apr 2007 17:34:50 +0000 (+0000) Subject: removed warnings X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=7a5ccd96a42770d6852f425b753ed1d9ec23bbd8;p=u%2Fmrichter%2FAliRoot.git removed warnings --- diff --git a/HLT/BASE/AliHLTComponent.cxx b/HLT/BASE/AliHLTComponent.cxx index 7995190e0bc..fe4ce04d436 100644 --- a/HLT/BASE/AliHLTComponent.cxx +++ b/HLT/BASE/AliHLTComponent.cxx @@ -160,7 +160,7 @@ int AliHLTComponent::Init( AliHLTComponentEnvironment* environ, void* environPar if (parameter.BeginsWith("0x") && parameter.Replace(0,2,"",0).IsHex()) { AliHLTComponentLogSeverity loglevel=kHLTLogNone; - sscanf(parameter.Data(),"%x", &loglevel); + sscanf(parameter.Data(),"%x", (unsigned int*)&loglevel); SetLocalLoggingLevel(loglevel); } else { HLTError("wrong parameter for argument %s, hex number expected", argument.Data()); @@ -740,7 +740,7 @@ int AliHLTComponent::InsertOutputBlock(void* pBuffer, int iSize, const AliHLTCom // see header file for function documentation int iResult=0; if (pBuffer) { - if (fpOutputBuffer && iSize<=(fOutputBufferSize-fOutputBufferFilled)) { + if (fpOutputBuffer && iSize<=(int)(fOutputBufferSize-fOutputBufferFilled)) { AliHLTUInt8_t* pTgt=fpOutputBuffer+fOutputBufferFilled; AliHLTComponentBlockData bd; FillBlockData( bd ); diff --git a/HLT/BASE/AliHLTDataBuffer.cxx b/HLT/BASE/AliHLTDataBuffer.cxx index 25bf21f6f86..8044ad34e96 100644 --- a/HLT/BASE/AliHLTDataBuffer.cxx +++ b/HLT/BASE/AliHLTDataBuffer.cxx @@ -349,7 +349,7 @@ AliHLTDataBuffer::AliHLTRawBuffer* AliHLTDataBuffer::CreateRawBuffer(AliHLTUInt3 { // see header file for function documentation AliHLTRawBuffer* pRawBuffer=NULL; - int reqSize=size+fgkSafetyPatternSize; + unsigned int reqSize=size+fgkSafetyPatternSize; vector::iterator buffer=fgFreeBuffers.begin(); while (buffer!=fgFreeBuffers.end() && pRawBuffer==NULL) { if ((*buffer)->fTotalSize>=reqSize && ((*buffer)->fTotalSize-reqSize)