diff options
author | Jesus Cea <jcea@jcea.es> | 2012-12-05 13:41:11 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-12-05 13:41:11 (GMT) |
commit | 7ddd9c21da9ffb47a9b669f584d4666deca23d1c (patch) | |
tree | 44794e3fc1a59c3749f567c53f1c03d68319420e | |
parent | 8c7c697e49336ef764462494a02250023716e82e (diff) | |
download | cpython-7ddd9c21da9ffb47a9b669f584d4666deca23d1c.zip cpython-7ddd9c21da9ffb47a9b669f584d4666deca23d1c.tar.gz cpython-7ddd9c21da9ffb47a9b669f584d4666deca23d1c.tar.bz2 |
Closes #16588: Silence unused-but-set warnings in Python/thread_pthread.h
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Python/thread_pthread.h | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -55,6 +55,8 @@ Core and Builtins HTTP servers and reduce memory usage. It's actually a backport of a Python 3.2 fix. Thanks to Adrien Kunysz. +- Issue #16588: Silence unused-but-set warnings in Python/thread_pthread + - Issue #13992: The trashcan mechanism is now thread-safe. This eliminates sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 44e2552..c1c92d1 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -284,6 +284,7 @@ PyThread_free_lock(PyThread_type_lock lock) sem_t *thelock = (sem_t *)lock; int status, error = 0; + (void) error; /* silence unused-but-set-variable warning */ dprintf(("PyThread_free_lock(%p) called\n", lock)); if (!thelock) @@ -314,6 +315,7 @@ PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) sem_t *thelock = (sem_t *)lock; int status, error = 0; + (void) error; /* silence unused-but-set-variable warning */ dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); do { @@ -341,6 +343,7 @@ PyThread_release_lock(PyThread_type_lock lock) sem_t *thelock = (sem_t *)lock; int status, error = 0; + (void) error; /* silence unused-but-set-variable warning */ dprintf(("PyThread_release_lock(%p) called\n", lock)); status = sem_post(thelock); |