This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2017年09月14日 17:37 by christian.heimes, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 3581 | merged | christian.heimes, 2017年09月14日 17:43 | |
| Messages (3) | |||
|---|---|---|---|
| msg302188 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2017年09月14日 17:37 | |
GCC 7.1 shows a bunch onf warnings related to -Wnonnull and -Wint-in-bool-context when compiling Python 2.7: In file included from Include/Python.h:78:0, from Objects/listobject.c:3: Objects/listobject.c: In function ‘list_resize’: Include/pymem.h:110:34: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] (type *) PyMem_REALLOC((p), (n) * sizeof(type)) ) ^ Include/pymem.h:77:21: note: in definition of macro ‘PyMem_REALLOC’ : realloc((p), (n) ? (n) : 1)) ^ Objects/listobject.c:62:9: note: in expansion of macro ‘PyMem_RESIZE’ PyMem_RESIZE(items, PyObject *, new_allocated); ^~~~~~~~~~~~ In file included from Python/formatter_string.c:17:0: Python/../Objects/stringlib/formatter.h: In function ‘format_float_internal’: Python/../Objects/stringlib/formatter.h:576:9: warning: argument 2 null where non-null expected [-Wnonnull] memmove(buf, ^~~~~~~~~~~~ prefix, ~~~~~~~ spec->n_prefix * sizeof(STRINGLIB_CHAR)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Include/Python.h:38:0, from Python/formatter_string.c:6: /usr/include/string.h:47:14: note: in a call to function ‘memmove’ declared here extern void *memmove (void *__dest, const void *__src, size_t __n) |
|||
| msg302286 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2017年09月15日 18:27 | |
New changeset fd39e2a6845f33a74fbb0671c434c0d84a5ec2f3 by Christian Heimes in branch '2.7': bpo-31474: Fix -Wint-in-bool-context warnings (#3581) https://github.com/python/cpython/commit/fd39e2a6845f33a74fbb0671c434c0d84a5ec2f3 |
|||
| msg367367 - (view) | Author: Zachary Ware (zach.ware) * (Python committer) | Date: 2020年04月27日 03:27 | |
This seems to have been fixed but never closed? Closing it now anyway due to EOL :) |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:52 | admin | set | github: 75655 |
| 2020年04月27日 03:27:58 | zach.ware | set | status: open -> closed nosy: + zach.ware messages: + msg367367 resolution: fixed stage: patch review -> resolved |
| 2018年02月28日 17:55:45 | ned.deily | link | issue31013 superseder |
| 2017年09月15日 18:27:25 | christian.heimes | set | messages: + msg302286 |
| 2017年09月14日 17:45:45 | christian.heimes | set | versions: + Python 2.7, - Python 3.3 |
| 2017年09月14日 17:43:04 | christian.heimes | set | keywords:
+ patch stage: needs patch -> patch review pull_requests: + pull_request3571 |
| 2017年09月14日 17:37:30 | christian.heimes | create | |