bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Silence compiler warnings with MinGW64


From: Eli Zaretskii
Subject: Re: [PATCH] Silence compiler warnings with MinGW64
Date: Wed, 05 Apr 2023 11:47:08 +0300

> From: Arash Esbati <arash@gnu.org>
> Date: Wed, 05 Apr 2023 09:46:28 +0200
> 
> The only other warnings I get are (linebreaks added manually):
> 
> --8<---------------cut here---------------start------------->8---
> parsetexi/handle_commands.c: In function 'handle_other_command':
> parsetexi/handle_commands.c:399:31: warning: cast from pointer to
>           integer of different size [-Wpointer-to-int-cast]
>   399 |                 max_columns = (long) k->value;
>       |                               ^
> parsetexi/handle_commands.c: In function 'handle_line_command':
> parsetexi/handle_commands.c:755:29: warning: cast from pointer to
>          integer of different size [-Wpointer-to-int-cast]
>   755 |                     level = (long) k->value + 1;
>       |                             ^
> parsetexi/extra.c: In function 'add_extra_integer':
> parsetexi/extra.c:124:48: warning: cast to pointer from integer
>           of different size [-Wint-to-pointer-cast]
>   124 |   add_associated_info_key (e->extra_info, key, (ELEMENT *) value, 
> extra_integer);
>       |                                                ^
> --8<---------------cut here---------------end--------------->8---

Those are real bugs: we should cast to inptr_t instead of long.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]