Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-663

codec.c pni_inspect_atom uses the wrong format for case PN_CHAR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      In codec.c pni_inspect_atom

      case PN_CHAR
      Clang reports the following

      warning:
      format specifies type 'wint_t' (aka 'int') but the argument has type
      'pn_char_t' (aka 'unsigned int') [-Wformat]
      return pn_string_addf(str, "%lc", atom->u.as_char);
      ~~~ ^~~~~~~~~~~~~~~
      %c

      The line should read
      case PN_CHAR:
      return pn_string_addf(str, "%c", atom->u.as_char);

      Attachments

        Activity

          People

            Unassigned Unassigned
            fadams Fraser Adams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: