Commit b02e65cb authored by Yavor Doganov's avatar Yavor Doganov

gcc-warnings.patch: New; fix some GCC warnings.

parent cc283a4b
......@@ -11,12 +11,13 @@ wrapperfactory.app (0.1.0-5) UNRELEASED; urgency=medium
(Vcs-Browser): New field.
* debian/source/format: Set to 3.0 (quilt).
* debian/patches/00list: Rename as...
* debian/patches/series: ...
* debian/patches/series: ...and update.
* debian/patches/05_objdir.dpatch: Delete, no longer necessary.
* debian/patches/10_libGSWrapper_libobjc.dpatch: Rename as...
* debian/patches/link-libs.patch: ...and quiltify.
* debian/patches/make-v2-strict.patch: New; fix FTBFS with gnustep-make
in strict v2 mode, adapt code to a v2 environment (Closes: #897620).
* debian/patches/gcc-warnings.patch: New; fix some GCC warnings.
* debian/README.source: Delete; useless.
* debian/menu: Delete as per policy requirement.
* debian/manpages: New file.
......
Description: Fix some compilation warnings.
- method possibly missing a [super dealloc] call
- conflicting types for ‘-(void)controlTextDidChange:(NSNotification *)not’
- ‘FreedesktopApplicationType’ defined but not used [-Wunused-variable]
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: no
Last-Update 2018-05-10
---
--- wrapperfactory.app.orig/WrapperFactory/Icon.m
+++ wrapperfactory.app/WrapperFactory/Icon.m
@@ -36,6 +36,7 @@
- (void)dealloc
{
TEST_AUTORELEASE(image);
+ [super dealloc];
}
--- wrapperfactory.app.orig/WrapperFactory/ServicesProvider.m
+++ wrapperfactory.app/WrapperFactory/ServicesProvider.m
@@ -26,11 +26,6 @@
@implementation ServicesProvider
-- (void) dealloc
-{
- NSLog(@"ServicesProvider dealloced");
-}
-
- (void) createWrapperForExecutable: (NSPasteboard *)pboard
userData: (NSString *)userData
error: (NSString **)error
--- wrapperfactory.app.orig/WrapperFactory/TypesController.m
+++ wrapperfactory.app/WrapperFactory/TypesController.m
@@ -59,6 +59,7 @@
- (void)dealloc
{
TEST_RELEASE(emptyBox);
+ [super dealloc];
}
- (void)awakeFromNib
--- wrapperfactory.app.orig/WrapperFactory/WrapperDocument.m
+++ wrapperfactory.app/WrapperFactory/WrapperDocument.m
@@ -42,7 +42,9 @@
static NSString *emptyString = @"";
static NSString *launcherName = @"GSWrapper_Launcher";
+#ifdef FREEDESKTOP
static NSString *FreedesktopApplicationType = @"Freedesktop Application";
+#endif
static NSString *actionRunScript = @"RunScript";
static NSString *actionFail = @"Fail";
@@ -120,6 +122,7 @@
TEST_RELEASE(script);
TEST_RELEASE(executable);
TEST_RELEASE(executablePath);
+ [super dealloc];
}
- (void)setFlattened: (BOOL)f
@@ -262,6 +265,7 @@
- (void)dealloc
{
RELEASE(types);
+ [super dealloc];
}
- (BOOL)loadFileWrapperRepresentation: (NSFileWrapper *)file
--- wrapperfactory.app.orig/WrapperFactory/WrapperDocumentController.h
+++ wrapperfactory.app/WrapperFactory/WrapperDocumentController.h
@@ -69,7 +69,7 @@
* delegate methods
*/
-- (void)controlTextDidChange: (id)sender;
+- (void)controlTextDidChange: (NSNotification *)not;
- (void)iconViewDidChangeIcon: (NSNotification *)not;
/*
link-libs.patch
make-v2-strict.patch
gcc-warnings.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment