Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c14103

Browse files
committed
Keep gcc -Wall happy
1 parent f0b69f0 commit 7c14103

5 files changed

Lines changed: 4 additions & 5 deletions

File tree

Modules/fcntlmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ all_ins(d)
279279
if (ins(d, "LOCK_EX", (long)LOCK_EX)) return -1;
280280
if (ins(d, "LOCK_NB", (long)LOCK_NB)) return -1;
281281
if (ins(d, "LOCK_UN", (long)LOCK_UN)) return -1;
282+
return 0;
282283
}
283284

284285
void

Modules/python.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
extern int Py_Main();
44

5+
int
56
main(argc, argv)
67
int argc;
78
char **argv;

Modules/reopmodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ static PyObject *ReopError; /* Exception */
6262
#define BEGINNING_OF_BUFFER 7
6363
#define END_OF_BUFFER 8
6464

65-
static unsigned char *reop_casefold;
66-
6765
static PyObject *
6866
makeresult(regs, num_regs)
6967
struct re_registers *regs;

Python/frozenmain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ Py_FrozenMain(argc, argv)
7777
if (inspect && isatty((int)fileno(stdin)))
7878
sts = PyRun_AnyFile(stdin, "<stdin>") != 0;
7979

80-
Py_Exit(sts);
81-
/*NOTREACHED*/
80+
Py_Finalize();
81+
return sts;
8282
}

Python/import.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ static int
692692
init_builtin(name)
693693
char *name;
694694
{
695-
PyInterpreterState *interp = PyThreadState_Get()->interp;
696695
struct _inittab *p;
697696
PyObject *mod;
698697

0 commit comments

Comments
 (0)