diff options
Diffstat (limited to 'rts/RtsFlags.c')
-rw-r--r-- | rts/RtsFlags.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 95656c3da6..ddd561b29c 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -1381,6 +1381,9 @@ error = true; #if !defined(PROFILING) switch (rts_argv[arg][2]) { case '\0': + errorBelch("-h is deprecated and will be removed in the next release (9.4),\nuse -hT instead."); + + FALLTHROUGH; case 'T': OPTION_UNSAFE; RtsFlags.ProfFlags.doHeapProfile = HEAP_BY_CLOSURE_TYPE; @@ -2133,6 +2136,8 @@ static bool read_heap_profiling_flag(const char *arg) bool error = false; switch (arg[2]) { case '\0': + errorBelch("-h is deprecated and will be removed in the next release (9.4),\nuse -hc instead."); + FALLTHROUGH; case 'C': case 'c': case 'M': |