diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-01-04 22:23:27 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-01-04 22:23:27 (GMT) |
commit | 13ae5915d6044acc6a4675901be0f10a3f3d3bec (patch) | |
tree | f4c0055cc2f0c75b498e243dcaadf2d2caad5e83 /win | |
parent | ae279a393f8d5d1938ed5fad5882fe59cd8050e8 (diff) | |
download | tcl-13ae5915d6044acc6a4675901be0f10a3f3d3bec.zip tcl-13ae5915d6044acc6a4675901be0f10a3f3d3bec.tar.gz tcl-13ae5915d6044acc6a4675901be0f10a3f3d3bec.tar.bz2 |
Fix signed<->unsigned comparsion warning (occurring in some gcc compilation flags).
Micro-optimization: Use char array in stead of const char pointer for static variable.
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinPipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index e596cac..e33273b 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -1621,9 +1621,9 @@ BuildCommandLine( Tcl_DString ds; /* characters to enclose in quotes if unpaired quote flag set */ - const static char *specMetaChars = "&|^<>!()%"; - /* characters to enclose in quotes in any case (regardless unpaired-flag) */ - const static char *specMetaChars2 = "%"; + static const char specMetaChars[] = "&|^<>!()%"; + /* character to enclose in quotes in any case (regardless unpaired-flag) */ + static const char specMetaChars2[] = "%"; /* Quote flags: * CL_ESCAPE - escape argument; |