[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd 01/11] Initialize a few error variables to avoid GCC war
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd 01/11] Initialize a few error variables to avoid GCC warnings |
Date: |
Fri, 29 Dec 2023 22:29:41 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Flavio Cruz, le ven. 29 déc. 2023 16:20:55 -0500, a ecrit:
> ---
> ext2fs/pager.c | 2 +-
> fatfs/pager.c | 2 +-
> trans/random.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/ext2fs/pager.c b/ext2fs/pager.c
> index 2869f4d..61db0df 100644
> --- a/ext2fs/pager.c
> +++ b/ext2fs/pager.c
> @@ -170,7 +170,7 @@ static error_t
> file_pager_read_page (struct node *node, vm_offset_t page,
> void **buf, int *writelock)
> {
> - error_t err;
> + error_t err = 0;
> int offs = 0;
> int partial = 0; /* A page truncated by the EOF. */
> pthread_rwlock_t *lock = NULL;
> diff --git a/fatfs/pager.c b/fatfs/pager.c
> index 36e7012..efe0203 100644
> --- a/fatfs/pager.c
> +++ b/fatfs/pager.c
> @@ -210,7 +210,7 @@ static error_t
> file_pager_read_huge_page (struct node *node, vm_offset_t page,
> void **buf, int *writelock)
> {
> - error_t err;
> + error_t err = 0;
> int offs = 0;
> pthread_rwlock_t *lock = NULL;
> int left = vm_page_size;
> diff --git a/trans/random.c b/trans/random.c
> index b68354e..7e3d3eb 100644
> --- a/trans/random.c
> +++ b/trans/random.c
> @@ -158,7 +158,7 @@ update_random_seed_file (void)
> static error_t
> read_random_seed_file (void)
> {
> - error_t err;
> + error_t err = 0;
> int fd;
> struct stat s;
> void *map;
> --
> 2.39.2
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
- [PATCH hurd 06/11] x86_64: use 21 bytes in libps since %z might require more characters., (continued)
- [PATCH hurd 06/11] x86_64: use 21 bytes in libps since %z might require more characters., Flavio Cruz, 2023/12/29
- [PATCH hurd 09/11] Fix overflow issues in tmpfs and vmallocate, Flavio Cruz, 2023/12/29
- [PATCH hurd 10/11] libftpconn: add out >= 2 condition to make GCC happy, Flavio Cruz, 2023/12/29
- [PATCH hurd 11/11] pfinet: fix type alias, Flavio Cruz, 2023/12/29
- [PATCH hurd 08/11] proxy-defpager: add missing return statement, Flavio Cruz, 2023/12/29
- Re: [PATCH hurd 01/11] Initialize a few error variables to avoid GCC warnings,
Samuel Thibault <=