Skip to content

Commit 94d91a6

Browse files
committed
Workspace: fixed various compiler warnings.
1 parent 82530a1 commit 94d91a6

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Diff for: Applications/Workspace/Inspectors/FileToolsInspector.m

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#import <SystemKit/OSEDefaults.h>
2525
#import <DesktopKit/Utilities.h>
2626
#import "FileToolsInspector.h"
27+
#import "Controller+NSWorkspace.h"
2728

2829
static inline void AddAppToMatrix(NSString *appName, NSMatrix *matrix)
2930
{

Diff for: Applications/Workspace/Inspectors/FolderInspector.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ - (void)setSortBy:sender
121121
NSArray *files = nil;
122122
NXTSortType sortType;
123123

124-
ASSIGN(folderDefaults, nil);
124+
DESTROY(folderDefaults);
125125

126126
[self getSelectedPath:&path andFiles:&files];
127127

Diff for: Applications/Workspace/Viewers/FileViewer.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -689,15 +689,15 @@ - (void)validatePath:(NSString **)relativePath selection:(NSArray **)filenames
689689
while (![fm fileExistsAtPath:fullPath isDirectory:&isDir]) {
690690
if ([path isEqualToString:@"/"]) {
691691
if (!isRootViewer) {
692-
ASSIGN(*filenames, nil);
693-
ASSIGN(*relativePath, nil);
692+
DESTROY(*filenames);
693+
DESTROY(*relativePath);
694694
[window close];
695695
}
696696
return;
697697
}
698698
path = [path stringByDeletingLastPathComponent];
699699
fullPath = [rootPath stringByAppendingPathComponent:path];
700-
ASSIGN(*filenames, nil);
700+
DESTROY(*filenames);
701701
NSDebugLLog(@"FileViewer", @"Stripped down to %@", path);
702702
}
703703

Diff for: Applications/Workspace/WM/texture.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ WTexGradient *wTextureMakeGradient(WScreen *scr, int style, const RColor *from,
210210
return texture;
211211
}
212212

213-
WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[2],
214-
int thickness2, const RColor colors2[2])
213+
WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[],
214+
int thickness2, const RColor colors2[])
215215
{
216216
WTexIGradient *texture;
217217
XGCValues gcv;

Diff for: Applications/Workspace/WM/wmcomposer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1702,9 +1702,9 @@ void wComposerRunLoop()
17021702
} while (QLength(dpy));
17031703

17041704
if (allDamage && !autoRedirect) {
1705-
static int paint;
1705+
// static int paint;
17061706
paint_all(dpy, allDamage);
1707-
paint++;
1707+
// paint++;
17081708
XSync(dpy, False);
17091709
allDamage = None;
17101710
is_clip_changed = False;

0 commit comments

Comments
 (0)