diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 21:37:16 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 21:37:16 (GMT) |
commit | 7e3ec048f988b08392cc04c8cb7cf4d66da11580 (patch) | |
tree | c60ff6d28a864ea1f6f26dc7df5fd821c4706a29 /Objects | |
parent | b5fdf0da2151527b9f7625e41ac40cfdceb0f8f3 (diff) | |
download | cpython-7e3ec048f988b08392cc04c8cb7cf4d66da11580.zip cpython-7e3ec048f988b08392cc04c8cb7cf4d66da11580.tar.gz cpython-7e3ec048f988b08392cc04c8cb7cf4d66da11580.tar.bz2 |
Backport 52502:
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.
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; } /* |