[Matroska-devel] Re: Ebml and Borland C++ Builder 2006

Zen aaa at aaaa.com
Wed Jan 25 22:10:11 CET 2006


 From Ebml 0.7.6 :
   [C++ Warning] EbmlId.h(56): W8027 Functions containing for are not 
expanded inline
   [C++ Warning] EbmlId.h(76): W8027 Functions containing for are not 
expanded inline
   [C++ Warning] EbmlId.h(56): W8027 Functions containing for are not 
expanded inline
   [C++ Warning] EbmlId.h(76): W8027 Functions containing for are not 
expanded inline
   [C++ Warning] EbmlId.h(56): W8027 Functions containing for are not 
expanded inline
   [C++ Warning] EbmlId.h(76): W8027 Functions containing for are not 
expanded inline
   [C++ Warning] EbmlId.h(56): W8027 Functions containing for are not 
expanded inline
   [C++ Warning] EbmlId.h(76): W8027 Functions containing for are not 
expanded inline
   [C++ Warning] EbmlDate.h(90): W8022 'EbmlDate::operator <(const 
EbmlDate &) const' hides virtual function 'EbmlElement::operator <(const 
EbmlElement &) const'
   [C++ Warning] EbmlElement.cpp(76): W8012 Comparing signed and 
unsigned values
   [C++ Warning] EbmlElement.cpp(156): W8004 'Result' is assigned a 
value that is never used
   [C++ Warning] EbmlElement.cpp(142): W8004 'PossibleSizeLength' is 
assigned a value that is never used
   [C++ Warning] EbmlElement.cpp(287): W8004 'Result' is assigned a 
value that is never used
   [C++ Warning] EbmlElement.cpp(281): W8004 'ReadSize' is assigned a 
value that is never used
   [C++ Warning] EbmlElement.cpp(354): W8004 'IdBitMask' is assigned a 
value that is never used
   [C++ Warning] EbmlElement.cpp(500): W8004 'Result' is assigned a 
value that is never used
   [C++ Warning] EbmlSInteger.cpp(71): W8072 Suspicious pointer arithmetic
   [C++ Warning] EbmlSInteger.cpp(91): W8041 Negating unsigned value
   [C++ Warning] EbmlSInteger.cpp(93): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlSInteger.cpp(94): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlSInteger.cpp(96): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlSInteger.cpp(97): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlSInteger.cpp(99): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlSInteger.cpp(100): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlString.cpp(136): W8072 Suspicious pointer arithmetic
   [C++ Warning] EbmlString.cpp(137): W8072 Suspicious pointer arithmetic
   [C++ Warning] EbmlUInteger.cpp(72): W8072 Suspicious pointer arithmetic
   [C++ Warning] EbmlUInteger.cpp(94): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlUInteger.cpp(96): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlUInteger.cpp(98): W8056 Integer arithmetic overflow
   [C++ Warning] EbmlUnicodeString.cpp(172): W8068 Constant out of range 
in comparison
   [C++ Warning] EbmlUnicodeString.cpp(184): W8068 Constant out of range 
in comparison
   [C++ Warning] EbmlUnicodeString.cpp(293): W8072 Suspicious pointer 
arithmetic
   [C++ Warning] EbmlUnicodeString.cpp(294): W8072 Suspicious pointer 
arithmetic
   [C++ Warning] xlocinfo(53): W8058 Cannot create pre-compiled header: 
initialized data in header
   [C++ Warning] MemIOCallback.cpp(74): W8072 Suspicious pointer arithmetic
   [C++ Warning] MemIOCallback.cpp(80): W8072 Suspicious pointer arithmetic
   [C++ Warning] MemIOCallback.cpp(103): W8072 Suspicious pointer arithmetic
   [C++ Warning] MemIOCallback.cpp(118): W8072 Suspicious pointer arithmetic
   [C++ Warning] StdIOCallback.cpp(138): W8066 Unreachable code
   [C++ Warning] WinIOCallback.cpp(99): W8012 Comparing signed and 
unsigned values
   [C++ Warning] WinIOCallback.cpp(182): W8012 Comparing signed and 
unsigned values
   [C++ Warning] WinIOCallback.cpp(254): W8055 Possible overflow in 
shift operation


 From Matroska 0.8.0

   [C++ Warning] KaxBlock.cpp(320): W8004 'cursor' is assigned a value 
that is never used
   [C++ Warning] KaxBlock.cpp(391): W8004 'cursor' is assigned a value 
that is never used
   [C++ Warning] KaxBlock.cpp(501): W8004 'cursor' is assigned a value 
that is never used
   [C++ Warning] KaxBlock.cpp(700): W8004 'Result' is assigned a value 
that is never used
   [C++ Warning] KaxCluster.cpp(199): W8012 Comparing signed and 
unsigned values
   [C++ Warning] KaxCluster.cpp(246): W8012 Comparing signed and 
unsigned values
   [C++ Warning] KaxCues.cpp(134): W8056 Integer arithmetic overflow
   [C++ Warning] KaxCues.cpp(158): W8004 'aPointNext' is assigned a 
value that is never used
   [C++ Warning] KaxCuesData.cpp(273): W8056 Integer arithmetic overflow
   [C++ Warning] KaxSeekHead.cpp(105): W8004 'aId' is assigned a value 
that is never used
   [C++ Warning] xlocinfo(53): W8058 Cannot create pre-compiled header: 
initialized data in header

Zen

Steve Lhomme a écrit :
> Hi Zen,
> 
> I added these lines to EbmlConfig.h:
> #if __BORLANDC__ >= 0x0581 //Borland C++ Builder 2006 preview
>    #include <stdlib.h>  //malloc(), free()
>    #include <memory.h> //memcpy()
> #endif //__BORLANDC__
> 
> You can get it from SVN. Can you send us the log of warnings ? Some may 
> be interresting.
> 
> thanks
> 
> Zen wrote:
>> Hi,
>>
>> I use Ebml and Matroska libraries with Borland C++ Builder.
>>
>> No problem with the version 5.5 (=Borland C++ Builder 6) of this 
>> compiler, but the version 5.81 (= Borland Developper Studio C++ 2006 
>> Preview technology), there is one little problem with EBML.
>>
>> The compiler does not succeed to find malloc, free and memcpy.
>>
>> I did a quick workaroud, with theses lines in ebml/EbmlConfig.h (where 
>> you want) :
>> ---
>> #if __BORLANDC__==0x0581 //Borland C++ Builder 2006 preview
>>    #include <stdlib.h>  //malloc(), free()
>>    #include <memory.h> //memcpy()
>> #endif //__BORLANDC__
>> ---
>>
>> It would be nice if you can add theses lines in future versions...
>> (there are a lot of other things, but only warnings)
>>
>> Zen
>> http://mediainfo.sourceforge.net
> 




More information about the Matroska-devel mailing list