From 416c0d99d3c6657ed927ca0ed877214261fa4b32 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 10 Jun 2015 10:53:25 +0000 Subject: Mac OS: remove 5 compilation warnings of this kind: warning: comparison of function 'CGDataConsumerCreateWithCFData' not equal to a null pointer is always true note: prefix with the address-of operator to silence this warning git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Window_shape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Window_shape.cxx') diff --git a/src/Fl_Window_shape.cxx b/src/Fl_Window_shape.cxx index 76750530b..fe635407f 100644 --- a/src/Fl_Window_shape.cxx +++ b/src/Fl_Window_shape.cxx @@ -337,7 +337,7 @@ void Fl_Window::shape(const Fl_Image* img) { void Fl_Window::draw() { if (shape_data_) { # if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 - if (shape_data_->mask && (CGContextClipToMask != NULL)) { + if (shape_data_->mask && (&CGContextClipToMask != NULL)) { CGContextClipToMask(fl_gc, CGRectMake(0,0,w(),h()), shape_data_->mask); // requires Mac OS 10.4 } CGContextSaveGState(fl_gc); -- cgit v1.2.3