diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-22 16:34:28 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-22 16:34:28 +0200 |
commit | b2decdab33ce8b74051a8dcddfa409d7f9af8fb1 (patch) | |
tree | d58fc597874e0c5bb3e878ed2b446bcb606f5f04 /Python/frozen.c | |
parent | b69651179a1ac37b3e959a404388ce9fc1b273f8 (diff) | |
parent | edc97951e09d9ea20937dbddf4b0d9b09c6cb463 (diff) | |
download | cpython-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.c | 4 |
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; |