Skip to content
Tcl Source Code Check-in [fd55b65ca8]
Login

Check-in [fd55b65ca8]

Overview
Comment:gcc 4.8.5 is unhappy with macros that explicitly test (&foo) as booleans, like: In file included from /home/dgp/fossil/tcl/generic/tcl.h:2265:0, from /home/dgp/fossil/tcl/generic/tclPort.h:25, from /home/dgp/fossil/tcl/generic/tclInt.h:63, from /home/dgp/fossil/tcl/generic/tclStringObj.c:37: /home/dgp/fossil/tcl/generic/tclStringObj.c: In function ‘Tcl_GetCharLength’: /home/dgp/fossil/tcl/generic/tclDecls.h:3947:3: warning: the address of ‘numChars’ will always evaluate as ‘true’ [-Waddress] ((sizePtr) && (sizeof(*(sizePtr)) == sizeof(int) && sizeof(int) != sizeof(size_t)) ? \ ^ /home/dgp/fossil/tcl/generic/tclStringObj.c:426:9: note: in expansion of macro ‘Tcl_GetByteArrayFromObj’ (void) Tcl_GetByteArrayFromObj(objPtr, &numChars); This branch silences the warnings, but is hanging out here on a branch to discover which toolchains scream in the opposite direction.
Timelines: family | ancestors | descendants | both | gcc-485-silence-warning
Files: files | file ages | folders
SHA3-256: fd55b65ca8680ba2adc09457d3f97b89ad4feedf5ee8b3c01c4e3d07e88737dd
User & Date: dgp on 2022-05-26 19:43:21.502
Other Links: branch diff | manifest | tags
Context
2022-06-03
15:50
Merge trunk except for ineffective alternative fix. check-in: 2fef21c66e user: dgp tags: gcc-485-silence-warning
2022-05-26
19:43
gcc 4.8.5 is unhappy with macros that explicitly test (&foo) as booleans, like: In file included fr... check-in: fd55b65ca8 user: dgp tags: gcc-485-silence-warning
2022-05-25
22:26
See [https://github.com/tcltk/tcl/pull/14] check-in: d30891ab4e user: jan.nijtmans tags: trunk, main
Changes