[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60798] Make does not compile with GCC 11.1.0
From: |
Jouke Witteveen |
Subject: |
[bug #60798] Make does not compile with GCC 11.1.0 |
Date: |
Sat, 4 Dec 2021 10:32:37 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0 |
Follow-up Comment #4, bug #60798 (project make):
As a sort of exercise, I got rid of the final warning too. This required some
moving code around and I duplicated the `strchr` call and the `p[-1] != '\\'`
test. Let me know if these changes make any sense.
While at it, I also added an update to the string length variable which was
missing from the old code.
With the last two patches, Make compiles with no warnings on my Arch Linux
system with GCC 11.1.0.
(file #52425)
_______________________________________________________
Additional Item Attachment:
File name: SV-60798-Rework-to-silence-GCC11-warning.patch Size:3 KB
<https://file.savannah.gnu.org/file/SV-60798-Rework-to-silence-GCC11-warning.patch?file_id=52425>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60798>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/