diff options
author | rpj <rpj> | 2001-10-24 05:28:42 +0000 |
---|---|---|
committer | rpj <rpj> | 2001-10-24 05:28:42 +0000 |
commit | 7b714286cfd65e797364fbdc583e13adba71a2ee (patch) | |
tree | 2684ef55880cca237d4cd5d2216a545c9f7442f0 /attr.c | |
parent | d0abe46d41d3c8db1772337e4160ca200b9dbcff (diff) |
* attr.c (pthread_attr_setstacksize): Quell warning
from LCC by conditionally compiling the stacksize
validity check. LCC correctly warns that the condition
(stacksize < PTHREAD_STACK_MIN) is suspicious
because STACK_MIN is 0 and stacksize is of type
size_t (or unsigned int).
Diffstat (limited to 'attr.c')
-rw-r--r-- | attr.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -87,12 +87,16 @@ pthread_attr_setstacksize(pthread_attr_t *attr, { #ifdef _POSIX_THREAD_ATTR_STACKSIZE +#if PTHREAD_STACK_MIN > 0 + /* Verify that the stack size is within range. */ if (stacksize < PTHREAD_STACK_MIN) { return EINVAL; } +#endif + if (is_attr(attr) != 0) { return EINVAL; |