diff options
| author | Manolo Gouy <Manolo> | 2015-06-10 10:53:25 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-06-10 10:53:25 +0000 |
| commit | 416c0d99d3c6657ed927ca0ed877214261fa4b32 (patch) | |
| tree | 4f5acad55bbfbd117884e1ac58dd6df373378490 /src/Fl_Copy_Surface.cxx | |
| parent | d4081333979be37f0666a9c24acc745eb94582a8 (diff) | |
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
Diffstat (limited to 'src/Fl_Copy_Surface.cxx')
| -rw-r--r-- | src/Fl_Copy_Surface.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Copy_Surface.cxx b/src/Fl_Copy_Surface.cxx index 02f1afbd8..69f9fea6c 100644 --- a/src/Fl_Copy_Surface.cxx +++ b/src/Fl_Copy_Surface.cxx @@ -185,7 +185,7 @@ void Fl_Copy_Surface::init_PDF_context(int w, int h) pdfdata = CFDataCreateMutable(NULL, 0); CGDataConsumerRef myconsumer; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 - if(CGDataConsumerCreateWithCFData != NULL) { + if (&CGDataConsumerCreateWithCFData != NULL) { myconsumer = CGDataConsumerCreateWithCFData(pdfdata); // 10.4 } else |
