[Debian-med-packaging] Bug#749733: adun.app: GCC warnings that may lead to runtime issues with new GNUstep libraries

Yavor Doganov yavor at gnu.org
Thu May 29 13:48:16 UTC 2014


Source: adun.app
Version: 0.81-6
Severity: normal
Tags: sid jessie
User: pkg-gnustep-maintainers at lists.alioth.debian.org
Usertags: gnustep-base1.24-transition gnustep-gui0.24-transition gnustep-transition

Your package builds successfully with the new GNUstep libraries, but
there are some GCC warnings that *may* lead to problems at runtime and
may affect the forthcoming gnustep transition/jessie release.  Latest
versions of the core GNUstep packages are available at mentors.d.n [*];
they will be uploaded to experimental first.

Please note that the warnings may be unrelated to GNUstep or changes in
GNUstep but could be legitimate nevertheless.  In case the fix is
applicable for the current gnustep-* library packages in sid (-base/1.22
and -gui/0.20) you can upload the fixed package before the transition
begins.  Otherwise, please wait for the transition to complete and
do not forget to adjust the Build-Depends field accordingly:

  libgnustep-base-dev (>= 1.24.6)
  or
  libgnustep-gui-dev (>= 0.24)

Relevant portion(s) of the log:

Making all in subprojects of framework AdunKernel...
[...]
Making all for subproject Framework...
[...]
AdFrameworkFunctions.m: In function 'AdLogMatrixRows':
AdFrameworkFunctions.m:356:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  if(index != NSNotFound)
  ^
AdFrameworkFunctions.m:362:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  if(index != NSNotFound)
  ^
AdFrameworkFunctions.m:368:16: warning: comparison is always true due to limited range of data type [-Wtype-limits]
   while((index = [indexSet indexGreaterThanIndex: index]) != NSNotFound);
                ^
gcc AdIndexSetConversions.m -c \
      -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -pthread -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -O2 -fgnu-runtime -W -O3 -fconstant-string-class=NSConstantString -fconstant-string-class=NSConstantString -fexec-charset=UTF-8 -I/usr/local/include -I../ -I../../ -I../Headers -I/usr/local/include -I./../derived_src -I. -I/usr/local/include/GNUstep -I/usr/include/GNUstep \
       -o obj/Framework.obj/AdIndexSetConversions.m.o
AdIndexSetConversions.m: In function '-[NSIndexSet(AdIndexSetConversions) initWithCoder:]':
AdIndexSetConversions.m:122:3: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
   rangeArray = (NSRange*)[decoder decodeBytesForKey:@"" returnedLength: &length];
   ^
AdIndexSetConversions.m:122:3: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdIndexSetConversions.m:127:3: warning: passing argument 1 of 'decodeBytesWithReturnedLength:' from incompatible pointer type [enabled by default]
   rangeArray = (NSRange*)[decoder decodeBytesWithReturnedLength: &length];
   ^
AdIndexSetConversions.m:127:3: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
[...]
AdunDataMatrix.m: In function '-[NSArray(AdKernelAdditions) subarrayFromElementSelection:]':
AdunDataMatrix.m:114:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  if(index != NSNotFound)
  ^
AdunDataMatrix.m:126:4: warning: passing argument 1 of 'getIndexes:maxCount:inIndexRange:' from incompatible pointer type [enabled by default]
    inIndexRange: NULL];
    ^
AdunDataMatrix.m:126:4: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
[...]
AdunDataMatrix.m: In function '-[AdDataMatrix valueForKey:]':
AdunDataMatrix.m:761:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  if(index != NSNotFound)
  ^
AdunDataMatrix.m: In function '-[AdDataMatrix elementAtRow:ofColumnWithHeader:]':
AdunDataMatrix.m:853:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if((columnIndex = [columnHeaders indexOfObject: columnHeader]) == NSNotFound)
                  ^
AdunDataMatrix.m: In function '-[AdDataMatrix columnWithHeader:]':
AdunDataMatrix.m:879:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if((columnIndex = [columnHeaders indexOfObject: columnHeader]) == NSNotFound)
                  ^
AdunDataMatrix.m: In function '-[AdDataMatrix addColumnWithHeader:toArray:]':
AdunDataMatrix.m:927:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if((columnIndex = [columnHeaders indexOfObject: columnHeader]) == NSNotFound)
                  ^
AdunDataMatrix.m: In function '-[AdDataMatrix dataTypeForColumnWithHeader:]':
AdunDataMatrix.m:1029:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if((columnIndex = [columnHeaders indexOfObject: columnHeader]) == NSNotFound)
                  ^
AdunDataMatrix.m: In function '-[AdDataMatrix submatrixFromRowSelection:]':
AdunDataMatrix.m:1154:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  if(index != NSNotFound)
  ^
AdunDataMatrix.m:1168:4: warning: passing argument 1 of 'getIndexes:maxCount:inIndexRange:' from incompatible pointer type [enabled by default]
    inIndexRange: NULL];
    ^
AdunDataMatrix.m:1168:4: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataMatrix.m: In function '-[AdDataMatrix submatrixFromColumnSelection:]':
AdunDataMatrix.m:1204:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  if(index != NSNotFound)
  ^
AdunDataMatrix.m: In function '-[AdDataMatrix _initWithCoderPre0:7:]':
AdunDataMatrix.m:1279:6: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
      returnedLength: &length];
      ^
AdunDataMatrix.m:1279:6: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataMatrix.m:1264:6: warning: variable 'matrixElements' set but not used [-Wunused-but-set-variable]
  int matrixElements;
      ^
AdunDataMatrix.m: In function '-[AdDataMatrix initWithCoder:]':
AdunDataMatrix.m:1570:5: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
     returnedLength: &length];
     ^
AdunDataMatrix.m:1570:5: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataMatrix.m:1576:5: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
     returnedLength: &length];
     ^
AdunDataMatrix.m:1576:5: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataMatrix.m:1605:3: warning: passing argument 1 of 'decodeBytesWithReturnedLength:' from incompatible pointer type [enabled by default]
   bytes = (void*)[decoder decodeBytesWithReturnedLength: &length];
   ^
AdunDataMatrix.m:1605:3: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataMatrix.m:1609:3: warning: passing argument 1 of 'decodeBytesWithReturnedLength:' from incompatible pointer type [enabled by default]
   bytes = (void*)[decoder decodeBytesWithReturnedLength: &length];
   ^
AdunDataMatrix.m:1609:3: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataMatrix.m: In function '-[AdMutableDataMatrix setElementAtRow:ofColumnWithHeader:withValue:]':
AdunDataMatrix.m:1987:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if((columnIndex = [columnHeaders indexOfObject: columnHeader]) == NSNotFound)
                  ^
[...]
AdunDataMatrix.m:2148:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
   if(index != NSNotFound)
   ^
AdunDataMatrix.m: In function '-[AdMutableDataMatrix removeRowsWithIndexes:]':
AdunDataMatrix.m:2195:4: warning: passing argument 1 of 'getIndexes:maxCount:inIndexRange:' from incompatible pointer type [enabled by default]
    inIndexRange: NULL];
    ^
AdunDataMatrix.m:2195:4: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataMatrix.m:2196:2: warning: passing argument 1 of 'removeObjectsFromIndices:numIndices:' from incompatible pointer type [enabled by default]
  [matrix removeObjectsFromIndices: buffer numIndices: [indexSet count]];
  ^
AdunDataMatrix.m:2196:2: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
[...]
AdunDataSource.m: In function '-[AdDataSource(AdDataSourceCodingExtensions) _decodeIndexArrayForKey:usingCoder:encodedByteOrder:]':
AdunDataSource.m:521:8: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
        returnedLength: &length];
        ^
AdunDataSource.m:521:8: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataSource.m:525:6: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
      returnedLength: &length];
      ^
AdunDataSource.m:525:6: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataSource.m:530:3: warning: passing argument 1 of 'decodeBytesWithReturnedLength:' from incompatible pointer type [enabled by default]
   rangesPerSet = (int*)[decoder decodeBytesWithReturnedLength: &length];
   ^
AdunDataSource.m:530:3: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataSource.m:532:3: warning: passing argument 1 of 'decodeBytesWithReturnedLength:' from incompatible pointer type [enabled by default]
   totalRangeArray = (NSRange*)[decoder decodeBytesWithReturnedLength: &length];
   ^
AdunDataSource.m:532:3: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
AdunDataSource.m: In function '-[AdMutableDataSource removeElements:]':
AdunDataSource.m:1221:2: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if(index == NSNotFound)
  ^
AdunDataSource.m:1242:15: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  while((index = [indexSet indexLessThanIndex: index]) != NSNotFound);
               ^
[...]
AdunContainerDataSource.m:224:4: warning: comparison is always true due to limited range of data type [-Wtype-limits]
    while(index != NSNotFound)
    ^
[...]
AdunElementSelection.m: In function '-[AdElementSelection _rowsInMatrix:matchingSpecifiers:categoryColumn:subcategoryColumn:restrictToRows:]':
AdunElementSelection.m:347:2: warning: passing argument 1 of 'getIndexes:maxCount:inIndexRange:' from incompatible pointer type [enabled by default]
  [nonSelectedRows getIndexes: buffer maxCount: numberRows inIndexRange: NULL];
  ^
AdunElementSelection.m:347:2: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
[...]
AdunSimpleListHandler.m: In function '-[AdSimpleListHandler createList]':
AdunSimpleListHandler.m:153:5: warning: passing argument 1 of 'getIndexes:maxCount:inIndexRange:' from incompatible pointer type [enabled by default]
     retVal = [indexSet getIndexes: indexBuffer maxCount: 100 inIndexRange: &indexRange];
     ^
AdunSimpleListHandler.m:153:5: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
[...]
AdunHarmonicConstraintTerm.m: In function '-[AdHarmonicConstraintTerm evaluateForces]':
AdunHarmonicConstraintTerm.m:179:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  while(index != NSNotFound)
  ^
AdunHarmonicConstraintTerm.m: In function '-[AdHarmonicConstraintTerm evaluateEnergy]':
AdunHarmonicConstraintTerm.m:209:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  while(index != NSNotFound)
  ^
[...]
AdunHarmonicConstraintTerm.m:192:68: warning: array subscript is above array bounds [-Warray-bounds]
    forceMatrix->matrix[index][i] = forceMagnitude*difference.vector[i]*rLength;
                                                                    ^
[...]
Making all for subproject CoreAdditions...
[...]
AdunTemplateProcessor.m:344:54: warning: comparison between pointer and integer [enabled by default]
  if(![testTemplate objectForKey: @"externalObjects"] == nil)
                                                      ^
[...]
AdunFileSystemSimulationStorage.m:218:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if([cacheFrames count] > cacheLimit)
                          ^
[...]
AdunTrajectory.m: In function '-[AdTrajectory compareCheckpointsForSystem:inTrajectory:toSystem:range:]':
AdunTrajectory.m:234:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=range.location; i<NSMaxRange(range); i++)
                         ^
[...]
Making all for framework MolTalk...
[...]
MTPDBParser.m: In function '-[MTPDBParser(Private) readAtom:]':
MTPDBParser.m:561:8: warning: array subscript is above array bounds [-Warray-bounds]
   rname[4]='\0';
        ^
MTPDBParser.m:582:30: warning: array subscript is above array bounds [-Warray-bounds]
   for (i=0; i<4; i++) { segid[i]=buffer[i+72]; } /* 73 - 76 segment id */
                              ^
[...]
MTPDBParser.m:787:30: warning: array subscript is above array bounds [-Warray-bounds]
   for (i=0; i<4; i++) { segid[i]=buffer[i+72]; } /* 73 - 76 segment id */
                              ^
[...]
Making all for framework ULFramework...
[...]
ULDatabaseIndex.m: In function '-[ULDatabaseIndex removeOutputReferenceToObjectWithId:fromObjectWithId:]':
ULDatabaseIndex.m:401:2: warning: overflow in implicit constant conversion [-Woverflow]
  for(position = NSNotFound, i=0; i<(int)[outputReferences count]; i++) 
  ^
[...]
ULProcess.m: In function '-[ULProcess setControllerResults:]':
ULProcess.m:215:4: warning: 'dataSet' is used uninitialized in this function [-Wuninitialized]
  if(dataSet != results)
    ^
[...]
ULSimpleMergerDelegate.m: In function '-[ULSimpleMergerDelegate _updateConfiguration]':
ULSimpleMergerDelegate.m:109:4: warning: passing argument 1 of 'getIndexes:maxCount:inIndexRange:' from incompatible pointer type [enabled by default]
    inIndexRange: NULL];
    ^
ULSimpleMergerDelegate.m:109:4: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
ULSimpleMergerDelegate.m:111:4: warning: passing argument 1 of 'removeObjectsFromIndices:numIndices:' from incompatible pointer type [enabled by default]
    removeObjectsFromIndices: buffer numIndices: [totalMissingAtoms count]];
    ^
ULSimpleMergerDelegate.m:111:4: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
ULSimpleMergerDelegate.m:113:4: warning: passing argument 1 of 'removeObjectsFromIndices:numIndices:' from incompatible pointer type [enabled by default]
    removeObjectsFromIndices: buffer numIndices: [totalMissingAtoms count]];
    ^
ULSimpleMergerDelegate.m:113:4: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
ULSimpleMergerDelegate.m: In function '-[ULSimpleMergerDelegate finalise]':
ULSimpleMergerDelegate.m:215:4: warning: passing argument 1 of 'getIndexes:maxCount:inIndexRange:' from incompatible pointer type [enabled by default]
    inIndexRange: NULL];
    ^
ULSimpleMergerDelegate.m:215:4: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
ULSimpleMergerDelegate.m:216:2: warning: passing argument 1 of 'removeObjectsFromIndices:numIndices:' from incompatible pointer type [enabled by default]
  [bondedAtomsList removeObjectsFromIndices: buffer numIndices: [totalMissingAtoms count]];
  ^
ULSimpleMergerDelegate.m:216:2: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
[...]
ULSystem.m: In function '-[ULSystem _decodeArrayOfDoublesForKey:usingCoder:]':
ULSystem.m:183:2: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
  bytes = (double*)[decoder decodeBytesForKey: key returnedLength: &bytesLength];
  ^
ULSystem.m:183:2: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
ULSystem.m: In function '-[ULSystem _decodeBondedAtomsWithCoder:]':
ULSystem.m:213:7: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
       returnedLength: &length];
       ^
ULSystem.m:213:7: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
ULSystem.m:216:6: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
      returnedLength: &length];
      ^
ULSystem.m:216:6: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
ULSystem.m: In function '-[ULSystem _decodeIndexArrayForKey:usingCoder:]':
ULSystem.m:251:2: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
  totalRangeArray = (NSRange*)[decoder decodeBytesForKey: key returnedLength: &length];
  ^
ULSystem.m:251:2: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
ULSystem.m:255:5: warning: passing argument 2 of 'decodeBytesForKey:returnedLength:' from incompatible pointer type [enabled by default]
     returnedLength: &length];
     ^
ULSystem.m:255:5: note: expected 'NSUInteger *' but argument is of type 'unsigned int *'
[...]
Making all for app UL...
[...]
ULPasteboard.m: In function '-[ULPasteboard setPasteboardOwner:]':
ULPasteboard.m:83:2: warning: passing argument 1 of 'pasteboardChangedOwner:' from distinct Objective-C type [enabled by default]
  [pasteboardOwner pasteboardChangedOwner: self];
  ^
[...]
ULSystemViewController.m: In function '-[ULSystemViewController _setDelegateForOptions:]':
ULSystemViewController.m:187:5: warning: passing argument 1 of 'initWithOptions:' makes integer from pointer without a cast [enabled by default]
     initWithOptions: options]; 
     ^
ULSystemViewController.m:187:5: note: expected 'NSPointerFunctionsOptions' but argument is of type 'id'
[...]
ULSystemViewController.m:611:11: warning: assignment makes integer from pointer without a cast [enabled by default]
    result = [metadataController result]; 
           ^
[...]
ULSystemViewController.m:666:11: warning: assignment makes integer from pointer without a cast [enabled by default]
    result = [metadataController result]; 
           ^
[...]
ULAnalyserPluginExtensions.m: In function '-[ULAnalyser(ULAnalyserPluginExtensions) displayOptionsForPlugin]':
ULAnalyserPluginExtensions.m:124:6: warning: passing argument 1 of 'initWithOptions:' makes integer from pointer without a cast [enabled by default]
      initWithOptions: currentOptions];
      ^
ULAnalyserPluginExtensions.m:124:6: note: expected 'NSPointerFunctionsOptions' but argument is of type 'id'
ULAnalyserPluginExtensions.m:135:6: warning: passing argument 1 of 'initWithOptions:' makes integer from pointer without a cast [enabled by default]
      initWithOptions: currentOptions];
      ^
ULAnalyserPluginExtensions.m:135:6: note: expected 'NSPointerFunctionsOptions' but argument is of type 'id'
[...]
ULTemplateViewController.m:433:10: warning: assignment makes integer from pointer without a cast [enabled by default]
   result = [propertyViewController result]; 
          ^


The full build log is available upon request.
The severity of this bug may be raised to "important", "serious" or
"grave" after the transition depending on the impact.

[*]
http://mentors.debian.net/debian/pool/main/g/gnustep-make/gnustep-make_2.6.6-1.dsc
http://mentors.debian.net/debian/pool/main/g/gnustep-base/gnustep-base_1.24.6-1.dsc
http://mentors.debian.net/debian/pool/main/g/gnustep-gui/gnustep-gui_0.24.0-1.dsc
http://mentors.debian.net/debian/pool/main/g/gnustep-back/gnustep-back_0.24.0-1.dsc



More information about the Debian-med-packaging mailing list