Milos Nikic, le dim. 12 avril 2026 15:46:04 -0700, a ecrit:
> Added assertions to calls to fflush and getc,
> removed an unused include and added one new.
> ---
>  libdiskfs/boot-start.c | 20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> @@ -33,7 +34,6 @@
>  #include <string.h>
>  #include <argz.h>
>  #include <error.h>
> -#include "exec_S.h"
>  #include "exec_startup_S.h"
>  #include "fsys_S.h"
>  #include "fsys_reply_U.h"
> @@ -150,7 +150,7 @@ diskfs_start_bootstrap (void)
>               Hurd server bootstrap: bootfs[bootdev] exec ourfs
>        */
>        printf ("\nContinuing on new root filesystem %s:", diskfs_disk_name);
> -      fflush (stdout);
> +      assert_backtrace (fflush (stdout) == 0);

No, that won't fly in builds with NDEBUG defined, the content of the
assert would then get dropped.

Samuel

Reply via email to