bugGNU GRUB - Bugs: bug #63246, New -Wsign-compare with GCC 13

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #63246: New -Wsign-compare with GCC 13

Submitter:  Martin Liška <marxin>
Submitted:  Thu 20 Oct 2022 03:47:46 PM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  None
Planned Release:  None

Tue 27 Dec 2022 10:36:08 AM UTC, comment #1: 

Apparently, it's only downstream change and it gets fixed with:
https://github.com/rhboot/grub2/pull/115

Martin Liška <marxin>
Thu 20 Oct 2022 03:47:46 PM UTC, original submission:  

[  168s] ../../grub-core/net/http.c: In function 'http_establish':
[  168s] ../../grub-core/net/http.c:414:48: error: operand of '?:' changes signedness from 'int' to 'enum <anonymous>' due to unsignedness of other operand [-Werror=sign-compare]
[  168s]   414 |                 data->filename, server, port ? port : HTTP_PORT);
[  168s]       |                                                ^~~~
[  168s] ../../include/grub/misc.h:38:88: note: in definition of macro 'grub_dprintf'
[  168s]    38 | #define grub_dprintf(condition, ...) grub_real_dprintf(GRUB_FILE, _LINE_, condition, _VA_ARGS_)
[  168s]       |                                                                                        ^~~~~~~~~~~
[  168s] ../../grub-core/net/http.c:416:42: error: operand of '?:' changes signedness from 'int' to 'enum <anonymous>' due to unsignedness of other operand [-Werror=sign-compare]
[  168s]   416 |                                   port ? port : HTTP_PORT, http_receive,
[  168s]       |                                          ^~~~

and it's reported as GCC issue here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107314

Martin Liška <marxin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by marxin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-0159.
    Corresponding source code