Merge pull request #199 from gnustep/warningfix

Warning Fix
This commit is contained in:
Riccardo 2023-09-18 18:22:11 +02:00 committed by GitHub
commit 14baf92024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 41 deletions

View file

@ -683,20 +683,7 @@ GSWindowDecorationView.h \
GSXibElement.h \
GSXibLoading.h \
GSXibKeyedUnarchiver.h \
GSHelpAttachment.h \
GSAutoLayoutVFLParser.h \
GSAutoLayoutEngine.h \
GSCassowarySolver.h \
GSCSConstraint.h \
GSCSVariable.h \
GSCSFloatComparator.h \
GSCSSolution.h \
GSCSLinearExpression.h \
GSCSConstraintOperator.h \
GSCSStrength.h \
GSCSEditVariableManager.h \
GSCSEditInfo.h \
GSCSTableau.h
GSHelpAttachment.h
libgnustep-gui_HEADER_FILES = ${GUI_HEADERS}

View file

@ -461,8 +461,8 @@ static GSAutocompleteWindow *gsWindow = nil;
if ( (flag) ||
(movement == NSCancelTextMovement) )
{
ASSIGN(_originalWord, nil);
ASSIGN(_words, nil);
DESTROY(_originalWord);
DESTROY(_words);
}
}

View file

@ -110,8 +110,8 @@ NSUnregisterServicesProvider(NSString *name)
object: listenerConnection];
DESTROY(listenerConnection);
}
ASSIGN(servicesProvider, nil);
ASSIGN(providerName, nil);
DESTROY(servicesProvider);
DESTROY(providerName);
}
/**

View file

@ -78,14 +78,6 @@ _GSBezierEval(_GSBezierDesc *b, float t)
return b->a[0] + t * (b->a[1] + t * (b->a[2] + t * b->a[3]));
}
static inline float
_GSBezierDerivEval(_GSBezierDesc *b, float t)
{
if (!b->areCoefficientsComputed)
_GSBezierComputeCoefficients(b);
return b->a[1] + t * (2.0 * b->a[2] + t * 3.0 * b->a[3]);
}
static inline void
_GSRationalBezierComputeBezierDesc(_GSRationalBezierDesc *rb)
{
@ -106,18 +98,6 @@ _GSRationalBezierEval(_GSRationalBezierDesc *rb, float t)
return _GSBezierEval(&(rb->n), t) / _GSBezierEval(&(rb->d), t);
}
static inline float
_GSRationalBezierDerivEval(_GSRationalBezierDesc *rb, float t)
{
float h;
if (!rb->areBezierDescComputed)
_GSRationalBezierComputeBezierDesc(rb);
h = _GSBezierEval(&(rb->d), t);
return (_GSBezierDerivEval(&(rb->n), t) * h
- _GSBezierEval (&(rb->n), t) * _GSBezierDerivEval(&(rb->d), t))
/ (h*h);
}
static
_NSAnimationCurveDesc _gs_animationCurveDesc[] =
{

View file

@ -47,6 +47,14 @@ static NSNotificationCenter *nc;
inView: (NSView *)controlView;
@end
/*
* Declaration of private NSTextField method
*/
@interface NSTextField (GNUstepPrivate)
- (BOOL)textView: (NSTextView*)textView doCommandBySelector: (SEL)command;
@end
/**
<unit>
<heading>Class Description</heading>

View file

@ -48,7 +48,7 @@
{
NSError *error = nil;
NSAssert(completionHandler != nil, NSInvalidArgumentException);
NSAssert(completionHandler != NULL, NSInvalidArgumentException);
CALL_NON_NULL_BLOCK(completionHandler, error);
}

View file

@ -363,7 +363,7 @@ static NSMutableDictionary *units = nil;
}
else
{
ASSIGN(_markers, nil);
DESTROY(_markers);
}
[self setNeedsDisplay: YES];
}

View file

@ -577,7 +577,7 @@ selectCellWithString: (NSString*)title
else
{
ASSIGN (_directory, [path stringByAppendingPathComponent: title]);
ASSIGN (_fullFileName, nil);
DESTROY (_fullFileName);
}
[self _selectTextInColumn:column];