Mercurial > cpython-lru_cache-weakref
diff Modules/_struct.c @ 59438:4a6be864c6b8 legacy-trunk
Silence compiler warning.
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 07 Mar 2010 17:10:19 +0000 |
| parents | cfb442d702cd |
| children | 0540a9628698 |
line wrap: on
line diff
--- a/Modules/_struct.c Sun Mar 07 16:24:45 2010 +0000 +++ b/Modules/_struct.c Sun Mar 07 17:10:19 2010 +0000 @@ -155,8 +155,11 @@ assert(PyLong_Check(v)); r = v; } - else + else { + r = NULL; /* silence compiler warning about + possibly uninitialized variable */ assert(0); /* shouldn't ever get here */ + } return r; }
