Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MAJOR=3
MINOR=1
PLATFORM_LDFLAGS=-pthread
PLATFORM_SHARED_CFLAGS=-fPIC
PLATFORM_SHARED_LDFLAGS=-c -W -Wall -Werror -std=c99
PLATFORM_SHARED_LDFLAGS=-c -W -Wall -Werror -std=gnu2x

ifdef ENABLE_ASAN
WITH_SAN = -fsanitize=address -fno-omit-frame-pointer
Expand Down
2 changes: 1 addition & 1 deletion util/pma.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct pma {
ness_rwlock_t slots_rwlock;
};

struct pma *pma_new();
struct pma *pma_new(int);
void pma_free(struct pma *);

void pma_insert(struct pma *, void *, compare_func f, void *);
Expand Down
6 changes: 3 additions & 3 deletions util/snappy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1428,13 +1428,13 @@ static inline int compress(struct snappy_env *env, struct source *reader,
struct sink *writer)
{
int err;
size_t written = 0;
// size_t written = 0;
int N = available(reader);
char ulength[kmax32];
char *p = varint_encode32(ulength, N);

append(writer, ulength, p - ulength);
written += (p - ulength);
// written += (p - ulength);

while (N > 0) {
/* Get next block to compress (without copying if possible) */
Expand Down Expand Up @@ -1490,7 +1490,7 @@ static inline int compress(struct snappy_env *env, struct source *reader,
char *end = compress_fragment(fragment, fragment_size,
dest, table, table_size);
append(writer, dest, end - dest);
written += (end - dest);
// written += (end - dest);

N -= num_to_read;
skip(reader, pending_advance);
Expand Down