Skip to content
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
4 changes: 2 additions & 2 deletions src/lat_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ char *id = "$Id$\n";

uint64 caught, n;
double adj;
void handler(int) { }
void handler(__attribute__((unused)) int unused) { }
jmp_buf prot_env;

void
Expand Down Expand Up @@ -69,7 +69,7 @@ struct _state {
};

void
prot(int) {
prot(__attribute__((unused)) int unused) {
if (++caught == n) {
caught = 0;
n = benchmp_interval(benchmp_getstate());
Comment on lines 71 to 75
Expand Down
2 changes: 1 addition & 1 deletion src/lat_usleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ bench_pselect(iter_t iterations, void *cookie)
#endif /* _POSIX_SELECT */

void
interval(int)
interval(__attribute__((unused)) int unused)
{
if (++caught == n) {
caught = 0;
Comment on lines 101 to 105
Expand Down
2 changes: 1 addition & 1 deletion src/memsize.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ test_malloc(size_t size)
}

void
gotalarm(int)
gotalarm(__attribute__((unused)) int unused)
{
alarm_triggered = 1;
}
Comment on lines 153 to 157
Expand Down