mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Work around a gcc bug (causing false warnings about integral constant being too large, even when the integral constant was e.g. 1).
This commit is contained in:
parent
d49f286335
commit
18d5819376
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26582
@ -1612,10 +1612,21 @@ toicon(tn)
|
||||
warning(56);
|
||||
}
|
||||
} else {
|
||||
#ifdef XXX_BROKEN_GCC
|
||||
if (v->v_quad > INT_MAX) {
|
||||
/* integral constant too large */
|
||||
warning(56);
|
||||
}
|
||||
else if (v->v_quad < INT_MIN) {
|
||||
/* integral constant too large */
|
||||
warning(56);
|
||||
}
|
||||
#else
|
||||
if (v->v_quad > INT_MAX || v->v_quad < INT_MIN) {
|
||||
/* integral constant too large */
|
||||
warning(56);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
free(v);
|
||||
|
Loading…
Reference in New Issue
Block a user