removed warnings
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Apr 2007 17:34:50 +0000 (17:34 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Apr 2007 17:34:50 +0000 (17:34 +0000)
HLT/BASE/AliHLTComponent.cxx
HLT/BASE/AliHLTDataBuffer.cxx

index 7995190..fe4ce04 100644 (file)
@@ -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 );
index 25bf21f..8044ad3 100644 (file)
@@ -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<AliHLTRawBuffer*>::iterator buffer=fgFreeBuffers.begin();
   while (buffer!=fgFreeBuffers.end() && pRawBuffer==NULL) {
     if ((*buffer)->fTotalSize>=reqSize && ((*buffer)->fTotalSize-reqSize)<fgMargin) {