Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
56379c0d
Commit
56379c0d
authored
Dec 02, 2012
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
parent
8ca1d5f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Misc/NEWS
Misc/NEWS
+2
-0
Python/thread_pthread.h
Python/thread_pthread.h
+3
-0
No files found.
Misc/NEWS
View file @
56379c0d
...
...
@@ -10,6 +10,8 @@ What's New in Python 3.2.4
Core and Builtins
-----------------
- Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
- Issue #16306: Fix multiple error messages when unknown command line
parameters where passed to the interpreter. Patch by Hieu Nguyen.
...
...
Python/thread_pthread.h
View file @
56379c0d
...
...
@@ -309,6 +309,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
)
...
...
@@ -341,6 +342,7 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds,
int
status
,
error
=
0
;
struct
timespec
ts
;
(
void
)
error
;
/* silence unused-but-set-variable warning */
dprintf
((
"PyThread_acquire_lock_timed(%p, %lld, %d) called
\n
"
,
lock
,
microseconds
,
intr_flag
));
...
...
@@ -391,6 +393,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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment