~fsx/protobluff

b903b672cf7a299b6f6f71e9b4aadff10ed085cb — Frank Smit 11 months ago fc92d42
Silence false-positives from scan-build.
2 files changed, 2 insertions(+), 0 deletions(-)

M src/generator/strutil.cc
M src/message/cursor.c
M src/generator/strutil.cc => src/generator/strutil.cc +1 -0
@@ 354,6 354,7 @@ int UnescapeCEscapeSequences(const char* source, char* dest,
          }
          unsigned int ch = 0;
          const char *hex_start = p;
          (void)hex_start;
          while (isxdigit(p[1]))  // arbitrarily many hex digits
            ch = (ch << 4) + hex_digit_to_int(*++p);
          if (ch > 0xFF)

M src/message/cursor.c => src/message/cursor.c +1 -0
@@ 553,6 553,7 @@ pb_cursor_align(pb_cursor_t *cursor) {
      pb_version_t version = pb_cursor_version(cursor);
      error = pb_journal_align(pb_cursor_journal(cursor),
        &version, &(cursor->current.packed));
      (void)error;
    }

    /* Align current cursor offset */