Skip to content

Commit

Permalink
tests: specify type in declarations
Browse files Browse the repository at this point in the history
this was breaking CI because newer macOS seems to ship a clang that is stricter about this
  • Loading branch information
fw-immunant authored and thedataking committed Oct 22, 2024
1 parent 3ba5917 commit 4e9cfbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/statics/src/thread_locals.c
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

static int gssi = 17;
extern int gesi;
static __thread gsti = 37;
extern __thread geti;
static __thread int gsti = 37;
extern __thread int geti;

void thread_entry(const unsigned buffer_size, int buffer[]) {
if (buffer_size < 16) return;

static int fssi = 53;
extern int fesi;
static __thread fsti = 59;
extern __thread feti;
static __thread int fsti = 59;
extern __thread int feti;

int i = 0;
#define ADD_VAR(x) do { buffer[i++] = (x); (x) += 1337; buffer[i++] = (x); } while (0)
Expand Down

0 comments on commit 4e9cfbe

Please sign in to comment.