Menu

#63 Remove warnings

None
closed
None
1
2019-06-25
2019-06-17
No

Hi,

compiling rosegarden on gcc 9.1 (newest release) gives lots of warnings. I like my code warning free - you too ?

here is a patch to remove all warnings (no functional change)

Most of the changes are for catching exceptions by value - change to catch by reference
Some copy constructors explicitely defined
suppress warnings where the code does what it should !

1 Attachments

Related

Patches: #64
Patches: #65

Discussion

  • Ted Felix

    Ted Felix - 2019-06-18
    • assigned_to: Ted Felix
    • Group: -->
     
  • Ted Felix

    Ted Felix - 2019-06-18

    Thanks for the patch. I will apply as I have time.

     
  • Ted Felix

    Ted Felix - 2019-06-25

    The attached patch contains the changes from this patch that weren't introduced by [patches:#64] and [patches:#65]. Need to review and apply.

     

    Related

    Patches: #64
    Patches: #65

  • Philip Leishman

    Philip Leishman - 2019-06-25

    The patch seems to be a patch for an old revision.
    Here is a patch removing the remaining warnings for revision 15592

     
  • Ted Felix

    Ted Felix - 2019-06-25

    The XmlExporter warning should be fixed in [r15599]. I went with switching to memcpy() which I believe is the original intent of the code. I assume this gets rid of the warning. Please test.

    Thanks for the new patch file, I will switch to using it to evaluate the remaining work that needs to be done.

     

    Related

    Commit: [r15599]

  • Philip Leishman

    Philip Leishman - 2019-06-25

    Almost there !!
    Yes the XmlExporter is now warning free. I just have two warnings in 15599 using gcc 9.1. Here is a patch for them

     
  • Philip Leishman

    Philip Leishman - 2019-06-25

    All good with gcc 9.1 :-)

     
  • Ted Felix

    Ted Felix - 2019-06-25
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB