New submission from Bruno Dupuis:
Looks like #10951, but for another version of gcc.
I get these warnings:
In file included from Python/thread.c:86:0:
Python/thread_pthread.h: In function ‘PyThread_free_lock’:
Python/thread_pthread.h:304:17: attention : variable ‘error’ set but not used
[-Wunused-but-set-variable]
Python/thread_pthread.h: In function ‘PyThread_acquire_lock_timed’:
Python/thread_pthread.h:335:17: attention : variable ‘error’ set but not used
[-Wunused-but-set-variable]
Python/thread_pthread.h: In function ‘PyThread_release_lock’:
Python/thread_pthread.h:386:17: attention : variable ‘error’ set but not used
[-Wunused-but-set-variable]
I tried to remove the variables, but the build crash as they are used in
#define CHECK_STATUS(name) if (status != 0) { perror(name); error = 1; }
looks like a gcc 4.7.2 bug.
----------
components: Build
messages: 176737
nosy: bruno.dupuis
priority: normal
severity: normal
status: open
title: gcc 4.7 ilegitimate unused-but-set warnings on Python/thread_pthread.h
versions: Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16588>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com