diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 21:16:54 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 21:16:54 (GMT) |
commit | a5ccda95f26abae0eb854d9619d4f80ec1cd6606 (patch) | |
tree | ef94650c5137ddb230e7e7a8ef166dbb08c823f7 /Objects | |
parent | 837ce9389e246c84a8791cf0ed64b277efce1f6b (diff) | |
download | cpython-a5ccda95f26abae0eb854d9619d4f80ec1cd6606.zip cpython-a5ccda95f26abae0eb854d9619d4f80ec1cd6606.tar.gz cpython-a5ccda95f26abae0eb854d9619d4f80ec1cd6606.tar.bz2 |
Fix warnings with HP's C compiler. It doesn't recognize that infinite
loops are, um, infinite. These conditions should not be able to happen.
Will backport.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 4 | ||||
-rw-r--r-- | Objects/setobject.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 4e82798..e127d96 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -307,6 +307,8 @@ lookdict(dictobject *mp, PyObject *key, register long hash) else if (ep->me_key == dummy && freeslot == NULL) freeslot = ep; } + assert(0); /* NOT REACHED */ + return 0; } /* @@ -366,6 +368,8 @@ lookdict_string(dictobject *mp, PyObject *key, register long hash) if (ep->me_key == dummy && freeslot == NULL) freeslot = ep; } + assert(0); /* NOT REACHED */ + return 0; } /* diff --git a/Objects/setobject.c b/Objects/setobject.c index 440b2fb..9d72b33 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -179,6 +179,8 @@ set_lookkey_string(PySetObject *so, PyObject *key, register long hash) if (entry->key == dummy && freeslot == NULL) freeslot = entry; } + assert(0); /* NOT REACHED */ + return 0; } /* |