Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6802d8713202e33a73fe73fe7ccbe8c709ed010225eb98197b1323fc26ed215b
Ticket: d550f4837a078ff3054d3b00a156d8a11fb628cf
Undeclared exit function in tcl.m4
User & Date: fweimer on 2022-11-18 08:55:19
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    A change like this one is needed to avoid the implicit function declaration.
    (This avoids relying on a feature that has been removed from C99.)
    
    diff --git a/unix/tcl.m4 b/unix/tcl.m4
    index ed12cda75bbc4ad9..d77184421bf8df16 100644
    --- a/unix/tcl.m4
    +++ b/unix/tcl.m4
    @@ -2352,7 +2352,7 @@ AC_DEFUN([SC_TIME_HANDLER], [
     	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]],
     	[[extern long timezone;
     	    timezone += 1;
    -	    exit (0);]])],
    +	    return 0;]])],
     	    [tcl_cv_timezone_long=yes], [tcl_cv_timezone_long=no])])
         if test $tcl_cv_timezone_long = yes ; then
     	AC_DEFINE(HAVE_TIMEZONE_VAR, 1, [Should we use the global timezone variable?])
    @@ -2364,7 +2364,7 @@ AC_DEFUN([SC_TIME_HANDLER], [
     	    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]],
     	    [[extern time_t timezone;
     		timezone += 1;
    -		exit (0);]])],
    +		return 0;]])],
     		[tcl_cv_timezone_time=yes], [tcl_cv_timezone_time=no])])
     	if test $tcl_cv_timezone_time = yes ; then
     	    AC_DEFINE(HAVE_TIMEZONE_VAR, 1, [Should we use the global timezone variable?])
    
  5. is_private changed to: "0"
  6. login: "fweimer"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "7f85b79b26149a656dc4aa89cb806ddd68c61396"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "fweimer"
  13. subsystem changed to: "53. Configuration and Build Tools"
  14. title changed to: "Undeclared exit function in tcl.m4"
  15. type changed to: "Bug"