[Debian GNUstep maintainers] Bug#749756: gtamsanalyzer.app: GCC warnings that may lead to runtime issues with new GNUstep libraries

Yavor Doganov yavor at gnu.org
Thu May 29 16:20:04 UTC 2014


Source: gtamsanalyzer.app
Version: 0.42-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:

appDelegate.m: In function '-[appDelegate applicationWillFinishLaunching:]':
appDelegate.m:201:13: warning: implicit declaration of function 'getColorForInt' [-Wimplicit-function-declaration]
             dd = [NSArchiver archivedDataWithRootObject: getColorForInt([gPrefBoss tagColorValue])];
             ^
appDelegate.m:201:13: warning: passing argument 1 of 'archivedDataWithRootObject:' makes pointer from integer without a cast [enabled by default]
appDelegate.m:201:13: note: expected 'id' but argument is of type 'int'
appDelegate.m: In function '-[appDelegate getWorkItems]':
appDelegate.m:293:5: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
     [swi sortUsingFunction: pathNameComp context: nil];
     ^
appDelegate.m:293:5: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSString *)'
appDelegate.m: In function '-[appDelegate setWorkItems:]':
appDelegate.m:303:5: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
     [wi sortUsingFunction: pathNameComp context: nil];
     ^
appDelegate.m:303:5: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSString *)'
appDelegate.m: In function '-[appDelegate rebuildWorkMenu:atBase:withAction:withExistCheck:]':
appDelegate.m:322:5: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
     [wiArray sortUsingFunction: pathNameComp context: nil];
     ^
appDelegate.m:322:5: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSString *)'
[...]
dotGraphWatcher.m:287:25: warning: assignment from distinct Objective-C type [enabled by default]
                         ea = [pairAttribs objectForKey1: [colList objectAtIndex: i] key2: [colList objectAtIndex: j]];
                         ^
dotGraphWatcher.m:318:21: warning: assignment from distinct Objective-C type [enabled by default]
                     if((eans = [seDict objectForKey1: temp key2: @"Backward"]) != nil)
                     ^
dotGraphWatcher.m:323:21: warning: assignment from distinct Objective-C type [enabled by default]
                     else if((eans = [seDict objectForKey1: temp key2: @"Both"]) != nil)
                     ^
dotGraphWatcher.m:328:21: warning: assignment from distinct Objective-C type [enabled by default]
                     else if((eans = [seDict objectForKey1: currVal key2: @"Forward"]) != nil)
                     ^
dotGraphWatcher.m:330:21: warning: assignment from distinct Objective-C type [enabled by default]
                     else if((eans = [seDict objectForKey1: currVal key2: @"Forward"]) != nil)
                     ^
dotGraphWatcher.m:334:25: warning: passing argument 1 of 'appendString:' from distinct Objective-C type [enabled by default]
                         [ans appendString:  [edgeAttribs objectForKey1: temp key2: [sk objectAtIndex: i]]];
                         ^
[...]
MWDoubleDictionary.m: In function '-[MWDoubleDictionary intForKey1:key2:]':
MWDoubleDictionary.m:82:5: warning: assignment from distinct Objective-C type [enabled by default]
     what = [self objectForKey1: who1 key2: who2];
     ^
[...]
MWKeyedResult.m:104:5: warning: assignment from distinct Objective-C type [enabled by default]
     nKeys = [namedSelDict allKeys];
     ^
[...]
MWSummaryReport.m: In function '-[MWSummaryReport sortData:withStack:]':
MWSummaryReport.m:65:9: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
         [who sortUsingFunction: stackComp context: ms];
         ^
MWSummaryReport.m:65:9: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSMutableArray *)'
[...]
MyDocument.m: In function '-[MyDocument newCode:]':
MyDocument.m:1640:9: warning: assignment from distinct Objective-C type [enabled by default]
         chk2 = NSTRIM(chkstr);
         ^
[...]
MyDocument.m:1776:3: warning: passing argument 1 of 'compare:' from distinct Objective-C type [enabled by default]
   else if ((n = [temp compare: [q buff]]) == NSOrderedAscending)
   ^
[...]
MyDocument.m:1902:13: warning: passing argument 2 of 'attributesAtIndex:effectiveRange:' from incompatible pointer type [enabled by default]
             initState = [myTS attributesAtIndex: where.location effectiveRange: nil];
             ^
MyDocument.m:1902:13: note: expected 'struct NSRange *' but argument is of type 'id'
[...]
MyDocument.m:2119:5: warning: assignment from distinct Objective-C type [enabled by default]
MyDocument.m:2125:5: warning: local declaration of 'hotCodeList' hides instance variable [enabled by default]
     FORALL(hotCodeList)
     ^
[...]
myProject.m:577:10: warning: return makes integer from pointer without a cast [enabled by default]
[...]
myProject.m:1604:5: warning: assignment makes integer from pointer without a cast [enabled by default]
  st = [searchTypeMenu tagOfSelectedItem];
     ^
myProject.m: In function '-[myProject hotCodeList]':
myProject.m:1828:5: warning: assignment from distinct Objective-C type [enabled by default]
     hc2 = [codeList allKeys];
     ^
[...]
myProject.m: In function '-[myProject exportCodesAndDefs:]':
myProject.m:2370:5: warning: assignment from distinct Objective-C type [enabled by default]
     cl = [self allCodeList];
     ^
[...]
myProject.m: In function '-[myProject codeSetAdd:]':
myProject.m:3833:5: warning: assignment from distinct Objective-C type [enabled by default]
     hc = [self allCodeList];
     ^
[...]
myProject.m: In function '-[myProject loadFileSetWithName:]':
myProject.m:3952:5: warning: assignment from distinct Objective-C type [enabled by default]
     fList = [self hotFileSet];
     ^
[...]
myProject.m: In function '-[myProject dataFileSetNames]':
myProject.m:4181:5: warning: assignment from distinct Objective-C type [enabled by default]
     tmp = [self allFileSetNames];
     ^
myProject.m: In function '-[myProject fileSetAdd:]':
myProject.m:4241:5: warning: assignment from distinct Objective-C type [enabled by default]
     hc = [self allFileList];
     ^
myProject.m: In function '-[myProject rebuildSummReportMenu]':
myProject.m:4358:17: warning: passing argument 2 of 'addItemWithTitle:action:keyEquivalent:' from incompatible pointer type [enabled by default]
                 keyEquivalent: @""];
                 ^
myProject.m:4358:17: note: expected 'SEL' but argument is of type 'id'
myProject.m:4336:26: warning: unused variable 'w2' [-Wunused-variable]
     NSMutableArray *w1, *w2;
                          ^
[...]
myProject.m:4556:5: warning: passing argument 1 of 'setupSearchMode:' makes integer from pointer without a cast [enabled by default]
myProject.m:4556:5: note: expected 'int' but argument is of type 'id'
[...]
myResults.m: In function '-[myResults deleteSourceCodes:]':
myResults.m:724:9: warning: assignment makes pointer from integer without a cast [enabled by default]
     ans = NSYESNOQUESTION(@"This will delete information from your source files. Should I proceed?");
         ^
[...]
myResults.m: In function '-[myResults addCommentDidEnd:returnCode:contextInfo:]':
myResults.m:966:13: warning: assignment from distinct Objective-C type [enabled by default]
             theCmnt = [commentField string];
             ^
[...]
myResults.m: In function '-[myResults dataRepresentationOfType:]':
myResults.m:2107:9: warning: assignment from distinct Objective-C type [enabled by default]
         nKeys = [namedSelDict allKeys];
         ^
myResults.m:2142:9: warning: assignment from distinct Objective-C type [enabled by default]
         dd = [NSArchiver archivedDataWithRootObject: rootArray];
         ^
[...]
myResults.m:2287:33: warning: passing argument 2 of 'DATASTRING' from distinct Objective-C type [enabled by default]
                                 DATASTRING(dd, what);
                                 ^
[...]
myResults.m:2355:29: warning: passing argument 2 of 'DATASTRING' from distinct Objective-C type [enabled by default]
                             DATASTRING(dd, what);
                             ^
[...]
myResults.m: In function '-[myResults sortUp:]':
myResults.m:4320:2: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
  [myData sortUsingFunction: stackComp context: sortStack];
  ^
myResults.m:4320:2: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSMutableArray *)'
myResults.m: In function '-[myResults sortData:withStack:]':
myResults.m:4335:9: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
         [who sortUsingFunction: stackComp context: a];
         ^
myResults.m:4335:9: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSMutableArray *)'
myResults.m: In function '-[myResults sortDown:]':
myResults.m:4376:2: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
  [myData sortUsingFunction: stackComp context: sortStack];
  ^
myResults.m:4376:2: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSMutableArray *)'
myResults.m: In function '-[myResults sortColumn:]':
myResults.m:4397:6: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
      [myData sortUsingFunction: longFwdComp context: key];
      ^
myResults.m:4397:6: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSString *)'
myResults.m:4399:6: warning: passing argument 1 of 'sortUsingFunction:context:' from incompatible pointer type [enabled by default]
      [myData sortUsingFunction: stringComp context: key];
      ^
myResults.m:4399:6: note: expected 'enum NSComparisonResult (*)(struct objc_object *, struct objc_object *, void *)' but argument is of type 'int (*)(struct objc_object *, struct objc_object *, struct NSString *)'
[...]
tamsutils.m: In function 'uniqueFileName':
tamsutils.m:367:5: warning: passing argument 3 of 'replaceOccurrencesOfString:withString:options:range:' makes integer from pointer without a cast [enabled by default]
     [ut replaceOccurrencesOfString: @":" withString: @"--" options: nil range: NSMakeRange(0, [ut length])];
     ^
tamsutils.m:367:5: note: expected 'NSUInteger' but argument is of type 'id'


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 pkg-GNUstep-maintainers mailing list