← Back to team overview

cuneiform team mailing list archive

[Bug 476602] Re: Try compile refactoring branch

 

Result of ccpcheck of refactoring branch

[src/ccom/ccom.cpp:1106]: (error) Resource leak: fp
[src/cfio/ctcglobalheader.h:36]: (error) Class GlobalHeader which is inherited by class MemoryHeader does not have a virtual destructor
[src/cstr/cgraph.cpp:623]: (error) Memory leak: lp
[src/cstr/cgraph.cpp:724]: (error) Memory leak: lp
[src/cstr/cgraph.cpp:836]: (error) Resource leak: in
[src/ctb/ctb_gray.cpp:89]: (error) Array index out of bounds
[src/rbal/statsearchbl.cpp:1355]: (error) Memory leak: pY1Array
[src/rbal/statsearchbl.cpp:1355]: (error) Memory leak: pY2Array
[src/rfrmt/pagetree.cpp:1258]: (error) Memory leak: intr
[src/rfrmt/pagetree.cpp:1549]: (error) Memory leak: Beg
[src/rfrmt/pagetree.cpp:1877]: (error) Memory leak: Index
[src/rfrmt/pagetree.cpp:1877]: (error) Memory leak: IndexV
[src/rfrmt/pagetree.cpp:786]: (error) Memory leak: intr
[src/rfrmt/pagetree.cpp:786]: (error) Memory leak: begI
[src/rfrmt/pagetree.cpp:786]: (error) Memory leak: endI
[src/rfrmt/pagetree.cpp:786]: (error) Memory leak: LineVK
[src/rfrmt/pagetree.cpp:786]: (error) Memory leak: LineHK
[src/rfrmt/pagetree.cpp:786]: (error) Memory leak: StatCell
[src/rfrmt/util_lst.cpp:1007]: (error) Memory leak: arr
[src/rfrmt/util_lst.cpp:1007]: (error) Memory leak: arrY
[src/rfrmt/util_spl.cpp:202]: (error) Memory leak: Upp
[src/rfrmt/util_spl.cpp:202]: (error) Memory leak: Low
[src/rfrmt/util_spl.cpp:313]: (error) Memory leak: arrB1
[src/rling/sources/speldici.cpp:366]: (error) Resource leak: lst
[src/rselstr/rotate.cpp:343]: (error) Memory leak: safe
[src/rselstr/rotate.cpp:550]: (error) Memory leak: safe
[src/rselstr/testforvertical.cpp:550]: (error) Possible null pointer dereference: add - otherwise it is redundant to check if add is null at line 551
[src/rselstr/testforvertical.cpp:591]: (error) Possible null pointer dereference: add - otherwise it is redundant to check if add is null at line 592
[src/rselstr/testforvertical.cpp:223]: (error) Memory leak: pmasp

-- 
Try compile refactoring branch
https://bugs.launchpad.net/bugs/476602
You received this bug notification because you are a member of Cuneiform
Linux, which is the registrant for Cuneiform for Linux.

Status in Linux port of Cuneiform: Fix Committed

Bug description:
I try compile refactoring branch. I get error


[  5%] Built target alphabets                       
[  5%] Building CXX object src/ccom/CMakeFiles/ccom.dir/ccom.cpp.o
/home/mgraf/refactoring/src/ccom/ccom.cpp: In function ‘Bool32 CCOM_GetExportData(uint32_t, void*)’:   
/home/mgraf/refactoring/src/ccom/ccom.cpp:1167: Error: cast from ‘CCOM_comp* (*)(void*, int32_t, int32_t, int32_t, int32_t)’ to ‘uint32_t’ loses precision                                                   
/home/mgraf/refactoring/src/ccom/ccom.cpp:1170: Error: cast from ‘Bool32 (*)(CCOM_comp*, int16_t, int32_t, uchar*, int16_t, uchar, uchar, RecVersions*, CCOM_USER_BLOCK*)’ to ‘uint32_t’ loses precision     
/home/mgraf/refactoring/src/ccom/ccom.cpp:1173: Error: cast from ‘Bool32 (*)(CCOM_comp*, CCOM_comp*)’ to ‘uint32_t’ loses precision                                                                          
/home/mgraf/refactoring/src/ccom/ccom.cpp:1176: Error: cast from ‘Bool32 (*)(void*, CCOM_comp*)’ to ‘uint32_t’ loses precision                                                                               
/home/mgraf/refactoring/src/ccom/ccom.cpp:1179: Error: cast from ‘CCOM_comp* (*)(void*, Bool32 (*)(int32_t, int32_t, int32_t, int32_t))’ to ‘uint32_t’ loses precision                                       
/home/mgraf/refactoring/src/ccom/ccom.cpp:1182: Error: cast from ‘CCOM_comp* (*)(CCOM_comp*, Bool32 (*)(int32_t, int32_t, int32_t, int32_t))’ to ‘uint32_t’ loses precision                                  
/home/mgraf/refactoring/src/ccom/ccom.cpp:1185: Error: cast from ‘int16_t (*)(CCOM_comp*, CCOM_linerep*)’ to ‘uint32_t’ loses precision                                                                      
/home/mgraf/refactoring/src/ccom/ccom.cpp:1188: Error: cast from ‘Bool32 (*)(CCOM_comp*, RecRaster*)’ to ‘uint32_t’ loses precision                                                                          
/home/mgraf/refactoring/src/ccom/ccom.cpp:1191: Error: cast from ‘Bool32 (*)(CCOM_comp*, RecVersions*)’ to ‘uint32_t’ loses precision                                                                        
/home/mgraf/refactoring/src/ccom/ccom.cpp:1194: Error: cast from ‘Bool32 (*)(CCOM_comp*, CCOM_USER_BLOCK*)’ to ‘uint32_t’ loses precision                                                                    
/home/mgraf/refactoring/src/ccom/ccom.cpp:1197: Error: cast from ‘void* (*)()’ to ‘uint32_t’ loses precision                                                                                                 
/home/mgraf/refactoring/src/ccom/ccom.cpp:1200: Error: cast from ‘Bool32 (*)(void*)’ to ‘uint32_t’ loses precision                                                                                           
/home/mgraf/refactoring/src/ccom/ccom.cpp:1203: Error: cast from ‘Bool32 (*)(CCOM_comp*, RecRaster*)’ to ‘uint32_t’ loses precision                                                                          
/home/mgraf/refactoring/src/ccom/ccom.cpp:1206: Error: cast from ‘Bool32 (*)(RecRaster*, uchar*, int16_t*, int16_t*)’ to ‘uint32_t’ loses precision                                                          
/home/mgraf/refactoring/src/ccom/ccom.cpp:1209: Error: cast from ‘Bool32 (*)(CCOM_comp*, CCOM_USER_BLOCK*)’ to ‘uint32_t’ loses precision                                                                    
/home/mgraf/refactoring/src/ccom/ccom.cpp:1212: Error: cast from ‘int32_t (*)()’ to ‘uint32_t’ loses precision                                                                                               
/home/mgraf/refactoring/src/ccom/ccom.cpp:1218: Error: cast from ‘Bool32 (*)(void*)’ to ‘uint32_t’ loses precision                                                                                           
/home/mgraf/refactoring/src/ccom/ccom.cpp:1221: Error: cast from ‘void* (*)()’ to ‘uint32_t’ loses precision                                                                                                 
/home/mgraf/refactoring/src/ccom/ccom.cpp:1224: Error: cast from ‘void (*)()’ to ‘uint32_t’ loses precision                                                                                                  
/home/mgraf/refactoring/src/ccom/ccom.cpp:1227: Error: cast from ‘CCOM_comp* (*)(void*, int32_t, int32_t, int32_t, int32_t, int32_t)’ to ‘uint32_t’ loses precision                                          
/home/mgraf/refactoring/src/ccom/ccom.cpp:1230: Error: cast from ‘Bool32 (*)(CCOM_comp*, CCOM_lnhead**)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1233: Error: cast from ‘Bool32 (*)(CCOM_comp*, int16_t, int16_t)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1236: Error: cast from ‘void (*)(CCOM_comp*)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1239: Error: cast from ‘Bool32 (*)(Bool32)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1242: Error: cast from ‘Bool32 (*)(CCOM_comp*)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1245: Error: cast from ‘Bool32 (*)(CCOM_comp*, RecRaster*)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1248: Error: cast from ‘Bool32 (*)(void*)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1251: Error: cast from ‘Bool32 (*)(CCOM_comp*, RecRaster*, int32_t)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1254: Error: cast from ‘Bool32 (*)(void*)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1257: Error: cast from ‘Bool32 (*)(void*, int16_t)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1260: Error: cast from ‘Bool32 (*)(void*, int16_t*)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1263: Error: cast from ‘Bool32 (*)(void*)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1269: Error: cast from ‘Bool32 (*)(CCOM_comp*)’ to ‘uint32_t’ loses precision
/home/mgraf/refactoring/src/ccom/ccom.cpp:1272: Error: cast from ‘Bool32 (*)(CCOM_comp*, int16_t, int16_t, RecRaster*)’ to ‘uint32_t’ loses precision
make[2]: *** [src/ccom/CMakeFiles/ccom.dir/ccom.cpp.o] Error 1
make[1]: *** [src/ccom/CMakeFiles/ccom.dir/all] Error 2
make: *** [all] Error 2

I use gcc 4.4.2





References