Tk Source Code

View Ticket
Login
Ticket UUID: a47f0809625bed361db021a2d72ecef56e63d6ed
Title: macOS Aqua : warning
Type: Support Version: trunk
Submitter: nab Created on: 2023-08-31 06:35:32
Subsystem: 83. Mac OS X Build Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2023-09-01 19:46:15
Resolution: Fixed Closed By: fvogel
    Closed on: 2023-09-01 19:46:15
Description:
Hi,
here's one warning when compiling latest trunk:
/usr/bin/clang -c -I/Users/nico/daylight/lib/framework/customTk/unix/../unix -I/Users/nico/daylight/lib/framework/customTk/unix/../generic -I/Users/nico/daylight/lib/framework/customTk/unix/../bitmaps -I/Users/nico/daylight/lib/framework/customTk/unix/../macosx -I/Users/nico/daylight/lib/framework/customTk/unix/../xlib -O2 -pipe  -finput-charset=UTF-8  -mmacosx-version-min=10.15  -Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith -Wc++-compat -fextended-identifiers -fno-common -DBUILD_tk -I/Users/nico/daylight/lib/framework/tcl-02ecc768a8/generic -I/Users/nico/daylight/lib/framework/tcl-02ecc768a8/unix -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.7\" -DPACKAGE_STRING=\"tk\ 8.7\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DTCL_CFGVAL_ENCODING=\"utf-8\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_STDBOOL_H=1 -DTCL_SHLIB_EXT=\".dylib\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1 -DMAC_OSX_TK=1 -DTK_FRAMEWORK=1      -DTCL_UTF_MAX=3 -x objective-c -DTK_FRAMEWORK_VERSION=\"8.7\" -DUSE_TCL_STUBS /Users/nico/daylight/lib/framework/customTk/unix/../macosx/tkMacOSXRegion.c
/Users/nico/daylight/lib/framework/customTk/unix/../macosx/tkMacOSXRegion.c:351:1: warning: unused function 'RetainRegion' [-Wunused-function]
RetainRegion(
^
1 warning generated.


++
nicolas
User Comments: fvogel added on 2023-09-01 19:46:15:
Agreed. Now done in core-8-6-branch and trunk.

chrstphrchvz added on 2023-08-31 21:10:13:

I suggest removing this function. See [2cb602807b]