Re: [PATCH] toplev.c: Check for null argument to fprintf

2020-04-29 Thread Jeff Law via Gcc-patches
On Tue, 2020-04-28 at 09:03 +0200, Stefan Schulze Frielinghaus via Gcc-patches wrote: > Ensure that CF does not equal NULL in function output_stack_usage_1 > before calling fprintf. This fixes the following warning/error: > > gcc/toplev.c:976:13: error: argument 1 null where non-null expected [-

[PATCH] toplev.c: Check for null argument to fprintf

2020-04-28 Thread Stefan Schulze Frielinghaus via Gcc-patches
Ensure that CF does not equal NULL in function output_stack_usage_1 before calling fprintf. This fixes the following warning/error: gcc/toplev.c:976:13: error: argument 1 null where non-null expected [-Werror=nonnull] 976 | fprintf (cf, "\\n" HOST_WIDE_INT_PRINT_DEC " bytes (%s)", |