From: Moshe Zadka Date: Fri, 4 Aug 2000 15:53:06 +0000 (+0000) Subject: Removing warnings discovered by gcc -Wall X-Git-Tag: v2.0b1~569 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a078edb0768d1304d285362384476f3ecf309ba;p=python Removing warnings discovered by gcc -Wall --- diff --git a/Modules/audioop.c b/Modules/audioop.c index 8d251892c5..49cd8c9575 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -87,7 +87,7 @@ static int ulaw_table[256] = { 120, 112, 104, 96, 88, 80, 72, 64, 56, 48, 40, 32, 24, 16, 8, 0 }; -/* #define ZEROTRAP /* turn on the trap as per the MIL-STD */ +/* #define ZEROTRAP */ /* turn on the trap as per the MIL-STD */ #define BIAS 0x84 /* define the add-in bias for 16 bit samples */ #define CLIP 32635 diff --git a/Modules/tkappinit.c b/Modules/tkappinit.c index 52874469df..c551fcab44 100644 --- a/Modules/tkappinit.c +++ b/Modules/tkappinit.c @@ -18,14 +18,14 @@ int Tcl_AppInit(Tcl_Interp *interp) { - Tk_Window main; + Tk_Window main_window; if (Tcl_Init (interp) == TCL_ERROR) return TCL_ERROR; if (Tk_Init (interp) == TCL_ERROR) return TCL_ERROR; - main = Tk_MainWindow(interp); + main_window = Tk_MainWindow(interp); #ifdef WITH_MOREBUTTONS { @@ -33,9 +33,9 @@ Tcl_AppInit(Tcl_Interp *interp) extern Tcl_CmdProc triButtonCmd; Tcl_CreateCommand(interp, "studbutton", studButtonCmd, - (ClientData) main, NULL); + (ClientData) main_window, NULL); Tcl_CreateCommand(interp, "tributton", triButtonCmd, - (ClientData) main, NULL); + (ClientData) main_window, NULL); } #endif