summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-10-28 21:37:16 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-10-28 21:37:16 (GMT)
commit7e3ec048f988b08392cc04c8cb7cf4d66da11580 (patch)
treec60ff6d28a864ea1f6f26dc7df5fd821c4706a29 /Objects/setobject.c
parentb5fdf0da2151527b9f7625e41ac40cfdceb0f8f3 (diff)
downloadcpython-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/setobject.c')
-rw-r--r--Objects/setobject.c2
1 files changed, 2 insertions, 0 deletions
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;
}
/*