diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a468d8dc32..ddd2782d99 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-09-18 Rainer Orth + + * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to + rlim_t. + 2018-09-17 Philippe Waroquiers * python/lib/gdb/command/frame_filters.py (EnableFrameFilter): diff --git a/gdb/utils.c b/gdb/utils.c index d7980fe3a1..8d4a744e71 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -220,7 +220,7 @@ void dump_core (void) { #ifdef HAVE_SETRLIMIT - struct rlimit rlim = { RLIM_INFINITY, RLIM_INFINITY }; + struct rlimit rlim = { (rlim_t) RLIM_INFINITY, (rlim_t) RLIM_INFINITY }; setrlimit (RLIMIT_CORE, &rlim); #endif /* HAVE_SETRLIMIT */