summaryrefslogtreecommitdiff
path: root/Python/frozen.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-22 16:34:28 +0200
committerChristian Heimes <christian@cheimes.de>2013-07-22 16:34:28 +0200
commitb2decdab33ce8b74051a8dcddfa409d7f9af8fb1 (patch)
treed58fc597874e0c5bb3e878ed2b446bcb606f5f04 /Python/frozen.c
parentb69651179a1ac37b3e959a404388ce9fc1b273f8 (diff)
parentedc97951e09d9ea20937dbddf4b0d9b09c6cb463 (diff)
downloadcpython-b2decdab33ce8b74051a8dcddfa409d7f9af8fb1.tar.gz
Some compilers complain about 'control reaches end of non-void function'
because they don't understand that Py_FatalError() terminates the program.
Diffstat (limited to 'Python/frozen.c')
-rw-r--r--Python/frozen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/frozen.c b/Python/frozen.c
index 25fdc17b3f..9bc662b994 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -28,7 +28,7 @@ static unsigned char M___hello__[] = {
#define SIZE (int)sizeof(M___hello__)
-static struct _frozen _PyImport_FrozenModules[] = {
+static const struct _frozen _PyImport_FrozenModules[] = {
/* importlib */
{"_frozen_importlib", _Py_M__importlib, (int)sizeof(_Py_M__importlib)},
/* Test module */
@@ -42,4 +42,4 @@ static struct _frozen _PyImport_FrozenModules[] = {
/* Embedding apps may change this pointer to point to their favorite
collection of frozen modules: */
-struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;
+const struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;