Fix warnings

laumann
May 10, 2023, 10:04 PM
WFA5BBRFVUHJ53MOPZ2WDXZ4CEHKA32LDYERSYLVETIZTZDW22GAC

Dependencies

  • [2] N3PUHKQN change: fix scoping issue
  • [3] HKBM7HZG minor: formatting
  • [4] 2U7P5SFQ Change struct names "struct foo -> typedef struct Foo"
  • [5] YDQLW2ZO change: rework printing of patches - print Edit and Newvertex types
  • [6] OBKF6SII change: decompress the hashed section too
  • [7] NZNIG2UL Fix lots of warnings, adjust build flags
  • [8] RIWSVVAS change: decompress the 'contents' with zstd_seekable
  • [9] ZKAOPMCH change: Implement decoding of edits, atoms, positions, among others
  • [10] QYRJIOYP change: separate decoding and printing of hashed struct
  • [11] XTVLIC24 change: refactor to print_change()
  • [12] JAGXXSR7 change: initial work on decoding hunks
  • [13] FMYCPGKD change: extract hash list decoding into reused function
  • [*] Q7TKZCJP Add initial support for reading the offsets from a (fixed) change

Change contents

  • replacement in hunk.h at line 6
    [4.109][3.0:67]()
    unsigned int line; /* Defined as usize, probably better as u64 */
    [4.109]
    [4.109]
    uint64_t line; /* Defined as usize, probably better as u64 */
  • replacement in change.c at line 164
    [4.255][4.255:311]()
    target->entries[i].variant = bincode_getu32(binstat);
    [4.255]
    [4.311]
    target->entries[i].variant = (uint8_t)bincode_getu32(binstat);
  • replacement in change.c at line 534
    [4.417][4.237:246]()
    char x;
    [4.417]
    [4.569]
    uint8_t x;
  • replacement in change.c at line 616
    [4.1455][4.1455:1513]()
    printf(" in %s:%u (%s)", e->local.path, e->local.line,
    [4.1455]
    [4.1513]
    printf(" in %s:%lu (%s)", e->local.path, e->local.line,
  • replacement in change.c at line 626
    [2.101][4.1652:1710](),[4.1652][4.1652:1710]()
    printf(" in %s:%u (%s)", r->local.path, r->local.line,
    [2.101]
    [4.1710]
    printf(" in %s:%lu (%s)", r->local.path, r->local.line,
  • replacement in change.c at line 690
    [4.1116][4.1116:1168]()
    if (lseek(fd, off.contents_off, SEEK_SET) == -1) {
    [4.1116]
    [4.1168]
    if (lseek(fd, (off_t)off.contents_off, SEEK_SET) == -1) {