diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-09-22 15:24:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-09-22 15:24:11 (GMT) |
commit | cb1f5ad4901220060bc319970cf3434734b3a1aa (patch) | |
tree | f3f50ec898e4a58a8832047e598219068a9b304f /win | |
parent | bd3fec22b475c3e3e0420a4db76adc41b1cdd8bf (diff) | |
download | tcl-cb1f5ad4901220060bc319970cf3434734b3a1aa.zip tcl-cb1f5ad4901220060bc319970cf3434734b3a1aa.tar.gz tcl-cb1f5ad4901220060bc319970cf3434734b3a1aa.tar.bz2 |
Decorate Tcl_Panic and Tcl_PanicVA with the noreturn option, alowing further optimizations by the C-compiler.panic_noreturn
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinError.c | 2 | ||||
-rwxr-xr-x | win/tclWinFile.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinError.c b/win/tclWinError.c index 4d3250d..30079b9 100644 --- a/win/tclWinError.c +++ b/win/tclWinError.c @@ -381,7 +381,7 @@ TclWinConvertError( *---------------------------------------------------------------------- */ -void +TCL_NORETURN void tclWinDebugPanic( const char *format, ...) { diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 02927ad..f6e3a4b 100755 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -172,7 +172,7 @@ static int WinLink(const TCHAR *LinkSource, const TCHAR *LinkTarget, int linkAction); static int WinSymLinkDirectory(const TCHAR *LinkDirectory, const TCHAR *LinkTarget); -MODULE_SCOPE void tclWinDebugPanic(const char *format, ...); +MODULE_SCOPE TCL_NORETURN void tclWinDebugPanic(const char *format, ...); /* *-------------------------------------------------------------------- @@ -789,7 +789,7 @@ NativeWriteReparse( *---------------------------------------------------------------------- */ -void +TCL_NORETURN void tclWinDebugPanic( const char *format, ...) { |