Skip to content
Tcl Source Code Artifact [ce054a0614]
Login

Artifact [ce054a0614]

Artifact ce054a06146c3e603fc0916efaa979a8a393c56cc32b8ee860f5d8e492821bdd:

Ticket change [ce054a0614] - New ticket [dc1db1588e4c6c36|dc1db1588e] <i>warnings when building on macOS</i>. by dkf on 2021-07-03 11:40:53.
D 2021-07-03T11:40:53.442
J assignee nobody
J closer nobody
J cmimetype text/html
J comment In\sthe\scurrent\s<code>core-8-branch</code>\sthere\sare\slots\sof\swarnings\swhen\sbuilding\sthe\snotifier.\sThe\sfollowing\sis\sfrom\s<code>tclKqueueNotfy.c</code>,\sbut\sequivalent\sones\sare\salso\sproduced\sby\s<code>tclEpollNotfy.c</code>.\s\r\n\r\n<pre\sstyle="overflow-x:scroll;">\r\nIn\sfile\sincluded\sfrom\s/Users/dkf/tcl/unix/tclKqueueNotfy.c:1:\r\n/Users/dkf/tcl/generic/tclInt.h:5208:52:\swarning:\suninitialized\s'const\sTclUnusedFile_unix_tclKqueueNotfy_c'\sis\sinvalid\sin\sC++\s[-Wc++-compat]\r\n\s5208\s|\s\s\s\s\sstatic\s__attribute__((used))\sconst\svoid\s*const\sTclUnusedFile_\s##\sname;\s\\\r\n\s\s\s\s\s\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~~~~~~~~~~~~~\r\n/Users/dkf/tcl/unix/tclKqueueNotfy.c:766:1:\snote:\sin\sexpansion\sof\smacro\s'TCL_MAC_EMPTY_FILE'\r\n\s\s766\s|\sTCL_MAC_EMPTY_FILE(unix_tclKqueueNotfy_c)\r\n\s\s\s\s\s\s|\s^~~~~~~~~~~~~~~~~~\r\n/Users/dkf/tcl/generic/tclInt.h:5209:30:\swarning:\sduplicate\sdeclaration\sof\s'TclUnusedFile_unix_tclKqueueNotfy_c'\sis\sinvalid\sin\sC++\s[-Wc++-compat]\r\n\s5209\s|\s\s\s\s\sstatic\sconst\svoid\s*const\sTclUnusedFile_\s##\sname\s=\sNULL;\r\n\s\s\s\s\s\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~~~~~~~~~~~~~\r\n/Users/dkf/tcl/unix/tclKqueueNotfy.c:766:1:\snote:\sin\sexpansion\sof\smacro\s'TCL_MAC_EMPTY_FILE'\r\n\s\s766\s|\sTCL_MAC_EMPTY_FILE(unix_tclKqueueNotfy_c)\r\n\s\s\s\s\s\s|\s^~~~~~~~~~~~~~~~~~\r\n/Users/dkf/tcl/generic/tclInt.h:5208:52:\snote:\sprevious\sdeclaration\sof\s'TclUnusedFile_unix_tclKqueueNotfy_c'\swas\shere\r\n\s5208\s|\s\s\s\s\sstatic\s__attribute__((used))\sconst\svoid\s*const\sTclUnusedFile_\s##\sname;\s\\\r\n\s\s\s\s\s\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~~~~~~~~~~~~~\r\n/Users/dkf/tcl/unix/tclKqueueNotfy.c:766:1:\snote:\sin\sexpansion\sof\smacro\s'TCL_MAC_EMPTY_FILE'\r\n\s\s766\s|\sTCL_MAC_EMPTY_FILE(unix_tclKqueueNotfy_c)\r\n\s\s\s\s\s\s|\s^~~~~~~~~~~~~~~~~~\r\n</pre>\r\n\r\nThe\sproblem\sis\sthat\sdeleting\sthe\ssymbol\smakes\sthe\smacOS\slinker\scomplain\sabout\san\sempty\sfile.\sMy\spreferred\sfix\sis\ssimple:\sdon't\suse\sthe\s<code>-Wc++-compat</code>\sflag\sas\sthese\sfiles\ssimply\sdo\snot\sever\sneed\sto\sbuild\sas\sC++.\sAlternatively,\swe\scould\sfind\ssome\sother\sway\sof\smaking\sa\ssymbol\sthat\sexists\sso\sthat\sfile\sis\snon-empty\sbut\sgets\selided\sduring\slinking,\sbut\sfrankly\sI'd\sjust\sdrop\sTIP\s557\ssupport\sin\sthese\simplementation\sfiles\sas\sit\shas\sproved\sto\snot\sbe\sa\swin\s(but\ssupporting\sit\sfor\sour\s<em>headers</em>\sis\sfine).\sIt's\sequivalent\s(in\smy\smind)\sto\show\ssome\sof\sTk's\simplementation\son\ssome\splatforms\sis\sin\sObjective\sC,\sbut\sTk's\sAPI\sis\snot.
J is_private 0
J login dkf
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter dkf
J subsystem 01.\sNotifier
J title warnings\swhen\sbuilding\son\smacOS
J type Bug
K dc1db1588e4c6c36f12fb447ec77036cefdbaf18
U dkf
Z 42c587280284d237664c73e41748e95b