[Python-checkins] r52502 - python/trunk/Objects/dictobject.c python/trunk/Objects/setobject.c
neal.norwitz
python-checkins at python.org
Sat Oct 28 23:16:55 CEST 2006
Author: neal.norwitz
Date: Sat Oct 28 23:16:54 2006
New Revision: 52502
Modified:
python/trunk/Objects/dictobject.c
python/trunk/Objects/setobject.c
Log:
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.
Modified: python/trunk/Objects/dictobject.c
==============================================================================
--- python/trunk/Objects/dictobject.c (original)
+++ python/trunk/Objects/dictobject.c Sat Oct 28 23:16:54 2006
@@ -307,6 +307,8 @@
else if (ep->me_key == dummy && freeslot == NULL)
freeslot = ep;
}
+ assert(0); /* NOT REACHED */
+ return 0;
}
/*
@@ -366,6 +368,8 @@
if (ep->me_key == dummy && freeslot == NULL)
freeslot = ep;
}
+ assert(0); /* NOT REACHED */
+ return 0;
}
/*
Modified: python/trunk/Objects/setobject.c
==============================================================================
--- python/trunk/Objects/setobject.c (original)
+++ python/trunk/Objects/setobject.c Sat Oct 28 23:16:54 2006
@@ -179,6 +179,8 @@
if (entry->key == dummy && freeslot == NULL)
freeslot = entry;
}
+ assert(0); /* NOT REACHED */
+ return 0;
}
/*
More information about the Python-checkins
mailing list