Silence warnings

This commit is contained in:
Gregory John Casamento 2023-08-08 09:09:40 -04:00 committed by Gregory Casamento
parent 8e6a546d05
commit 354f323344
3 changed files with 15 additions and 2 deletions

View file

@ -31,6 +31,9 @@
#include "headlesslib/HeadlessFontEnumerator.h"
#include "headlesslib/HeadlessFontInfo.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wobjc-method-access"
@implementation HeadlessFontEnumerator
+ (Class) faceInfoClass
@ -48,3 +51,5 @@
}
@end
#pragma GCC diagnostic pop

View file

@ -55,11 +55,16 @@
[self subclassResponsibility:_cmd];
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmismatched-return-types"
- (cairo_surface_t *) surface
{
return _surface;
}
#pragma GCC diagnostic pop
- (void) handleExposeRect: (NSRect)rect
{
}

View file

@ -89,12 +89,12 @@ void __objc_xgcontextwindow_linking (void)
/*
* The next two functions derived from WindowMaker by Alfredo K. Kojima
*/
static unsigned char*PropGetCheckProperty(Display *dpy, Window window, Atom hint, Atom type,
int format, int count, int *retCount)
{
return NULL;
}
*/
/*
* Setting Motif Hints for Window Managers (Nicola Pero, July 2000)
@ -411,7 +411,10 @@ Bool _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
{
}
- (NSInteger) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style : (int)screen
- (NSInteger) window: (NSRect)frame
: (NSBackingStoreType)type
: (unsigned int)style
: (int)screen
{
gswindow_device_t *window;