summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXImage.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-01 22:11:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-01 22:11:42 (GMT)
commit5931b9b61e7df9c4fe0a28265d9ffd7e1c73f874 (patch)
treea0bde1f91ae1999e97bd3eee329491f32b54696a /macosx/tkMacOSXImage.c
parent1d2fbf0b67d3ebfca3632d712654d9bc01af76dd (diff)
downloadtk-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.c7
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));