diff options
| author | Dimitry Andric <dimitry@andric.com> | 2015-10-19 17:32:04 +0000 |
|---|---|---|
| committer | Dimitry Andric <dimitry@andric.com> | 2015-10-19 17:32:04 +0000 |
| commit | 9b8c353c90eff77390ae05856e955dfc079344d1 (patch) | |
| tree | f64e344cf14270276e240ff4102630d85bbad152 /lldb/scripts/Python/finishSwigPythonLLDB.py | |
| parent | 3cb667edaa8f48a4fea61252458ba50166ba1f67 (diff) | |
| download | llvm-9b8c353c90eff77390ae05856e955dfc079344d1.zip llvm-9b8c353c90eff77390ae05856e955dfc079344d1.tar.gz llvm-9b8c353c90eff77390ae05856e955dfc079344d1.tar.bz2 | |
On FreeBSD, PTHREADS_THREADS_MAX does not fit into an int, leading to
warnings similar to the following:
runtime/src/kmp_global.c:117:35: warning: implicit conversion from
'unsigned long' to 'int' changes value from 18446744073709551615 to -1
[-Wconstant-conversion]
int __kmp_sys_max_nth = KMP_MAX_NTH;
~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
runtime/src/kmp.h:849:34: note: expanded from macro 'KMP_MAX_NTH'
# define KMP_MAX_NTH PTHREAD_THREADS_MAX
^~~~~~~~~~~~~~~~~~~
Clamp KMP_MAX_NTH to INT_MAX to avoid these warnings. Also use INT_MAX
whenever PTHREAD_THREADS_MAX is not defined at all.
Differential Revision: http://reviews.llvm.org/D13827
llvm-svn: 250708
Diffstat (limited to 'lldb/scripts/Python/finishSwigPythonLLDB.py')
0 files changed, 0 insertions, 0 deletions
