diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-23 07:07:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-23 07:07:57 +0000 |
commit | bed152ba1fc2f1316eaefb5c3d24d48195560f76 (patch) | |
tree | 0564fbaf0c7ff23390031d68b741e89a40071333 /dev-tcltk/tix/files | |
parent | 57c2e006d0af9ab77ced676461d7100cade4a716 (diff) |
gentoo auto-resync : 23:11:2022 - 07:07:57
Diffstat (limited to 'dev-tcltk/tix/files')
-rw-r--r-- | dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch b/dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch new file mode 100644 index 000000000000..b97d55c05a77 --- /dev/null +++ b/dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch @@ -0,0 +1,49 @@ +https://sourceforge.net/p/tix/bugs/112/ + +Avoid implicit int declarations, a feature removed from C language with C99. + +--- a/generic/tixDiImg.c ++++ b/generic/tixDiImg.c +@@ -352,6 +352,8 @@ Tix_ImageItemDisplay(drawable, iPtr, x, y, width, height, xOffset, yOffset, + int y; + int width; + int height; ++ int xOffset; ++ int yOffset; + int flags; + { + TixImageItem *itPtr = (TixImageItem *)iPtr; +--- a/generic/tixDiWin.c ++++ b/generic/tixDiWin.c +@@ -458,6 +458,8 @@ Tix_WindowItemDisplay(drawable, iPtr, x, y, width, height, xOffset, yOffset, + int y; + int width; + int height; ++ int xOffset; ++ int yOffset; + int flags; + { + TixWindowItem *itPtr = (TixWindowItem *)iPtr; +--- a/generic/tixForm.c ++++ b/generic/tixForm.c +@@ -150,7 +150,7 @@ static Tcl_HashTable masterInfoHashTable; + /* + * Have static variables in this module been initialized? + */ +-static initialized = 0; ++static int initialized = 0; + + static int ReqSize(tkwin, axis) + Tk_Window tkwin; +--- a/unix/tixUnixMwm.c ++++ b/unix/tixUnixMwm.c +@@ -768,7 +768,7 @@ GetMwmInfo(interp, tkwin) + Tcl_Interp * interp; + Tk_Window tkwin; + { +- static inited = 0; ++ static int inited = 0; + Tcl_HashEntry *hashPtr; + int isNew; + + |