Menu

#31 streaming-job.cpp:367: bad delete ?

v4.0.8
closed-fixed
nobody
None
5
2020-02-09
2015-12-31
dcb
No

streaming-job.cpp:367:9: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]

 delete buf;

Another one:

lircsupport.cpp:207:13: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]

Discussion

  • Pino Toscano

    Pino Toscano - 2016-01-03

    streaming-job.cpp:367:9: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]

    Thanks, just fixed in Git with commit ec58479375ce60a02359db0371cadba040d4bf29.

    lircsupport.cpp:207:13: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]

    I cannot find this one though, and the line does not match any delete. Are you really checking version 4.0.8, or does your version have any patches that change the lirc plugin?

    Thanks for your report.

     
  • dcb

    dcb - 2016-01-03

    Are you really checking version 4.0.8,

    No - version 4.0.6

    Suggest compile kradio with clang, a different C compiler to gcc to get more warnings.

     
  • Pino Toscano

    Pino Toscano - 2016-01-03

    No - version 4.0.6

    While reporting issues is appreciated, please do so on the latest version, especially that it has been released more than one year ago. Testing a version released 3 years and half ago might not be the best idea ever...

    Anyway, all the issues reported (1) have been fixed, so this bug can be closed.

     
  • dcb

    dcb - 2016-01-03

    please do so on the latest version

    Agreed, however the 4.0.6 version is current in Fedora 24 development tree.

    I am not sure of the process to encourage Fedora to adopt a later version.

    Maybe drop them an email and let them know a later version exists, might be a suitable way forward ?

     
  • Ernst Martin Witte

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB