diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-01 22:11:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-01 22:11:42 (GMT) |
commit | 5931b9b61e7df9c4fe0a28265d9ffd7e1c73f874 (patch) | |
tree | a0bde1f91ae1999e97bd3eee329491f32b54696a /macosx/tkMacOSXImage.c | |
parent | 1d2fbf0b67d3ebfca3632d712654d9bc01af76dd (diff) | |
download | tk-5931b9b61e7df9c4fe0a28265d9ffd7e1c73f874.zip tk-5931b9b61e7df9c4fe0a28265d9ffd7e1c73f874.tar.gz tk-5931b9b61e7df9c4fe0a28265d9ffd7e1c73f874.tar.bz2 |
Fix many warnings in MacOSX build (caused by -Wextra -Wc++-compat). All harmless. Not finished yet.
Diffstat (limited to 'macosx/tkMacOSXImage.c')
-rw-r--r-- | macosx/tkMacOSXImage.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c index 0d8be32..a8c7922 100644 --- a/macosx/tkMacOSXImage.c +++ b/macosx/tkMacOSXImage.c @@ -21,6 +21,8 @@ int _XInitImageFuncPtrs( XImage *image) { + (void)image; + return 0; } @@ -42,6 +44,9 @@ _XInitImageFuncPtrs( */ static void ReleaseData(void *info, const void *data, size_t size) { + (void)data; + (void)size; + ckfree(info); } @@ -176,6 +181,7 @@ XGetImage( unsigned int scalefactor=1, scaled_height=height, scaled_width=width; NSWindow *win = TkMacOSXDrawableWindow(drawable); static enum {unknown, no, yes} has_retina = unknown; + (void)plane_mask; if (win && has_retina == unknown) { #ifdef __clang__ @@ -451,6 +457,7 @@ XCreateImage( int bytes_per_line) { XImage *ximage; + (void)visual; display->request++; ximage = ckalloc(sizeof(XImage)); |