Follow-up Comment #3, bug #34302 (project avrdude):

I think just removing the following would work.

      if (current_part->op[opnum] != NULL) {
        fprintf(stderr,
              "%s: warning at %s:%d: operation redefinedn",
              progname, infile, lineno);
        free(current_part->op[opnum]);
      }

That warning doesn't make sense when you are redefining things in derived
parts anyway. It would create a small memory leak in case an opcode gets
redefined inside in a part itself though (not parts derived from it).

If that's not acceptable, I can do refcounting in OPCODE. It think that's
better than just duplicating everything.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?34302>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to