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/


Reply via email to