Skip to content

Commit

Permalink
Fixed clang warnings
Browse files Browse the repository at this point in the history
Defaulting to UNIX target
cc -g3 -Wall -pedantic   -c -o math128.o math128.c
In file included from math128.c:25:
./math128.h:48:7: warning: no newline at end of file [-Wnewline-eof]
      ^
      1 warning generated.
[...]
  • Loading branch information
polluks committed Jul 27, 2022
1 parent dfd45cf commit 4950e9c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ mux.o : centurion.h mux.h console.h cpu6.h scheduler.h trace.h

clean:
rm -f centurion *.o *~

2 changes: 1 addition & 1 deletion console.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ void throttle_emulation(uint64_t expected_time_ns) {
// If have lagged by too much, we forgive the time
//throttle_start_time += delta_ns;
}
}
}
2 changes: 1 addition & 1 deletion console.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ void net_init(unsigned short port);

void throttle_emulation(uint64_t expected_time_ns);
void throttle_init();
void throttle_set_speed(float speed);
void throttle_set_speed(float speed);
2 changes: 1 addition & 1 deletion hawk.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,4 @@ static void hawk_erase_bits(struct hawk_drive* unit, int count) {
while (count--) {
unit->datacells[unit->data_ptr++] = 0;
}
}
}
2 changes: 1 addition & 1 deletion hawk.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ int hawk_wait_sync(struct hawk_drive* unit);
void hawk_update(struct hawk_drive* unit, int64_t now);

// Callback to dsk
void dsk_hawk_changed(unsigned unit, int64_t time);
void dsk_hawk_changed(unsigned unit, int64_t time);
2 changes: 1 addition & 1 deletion math128.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ extern int64_t rem128 (qofint128 n, int64_t d);
extern uint64_t gcf64(uint64_t num, uint64_t denom);
extern qofint128 lcm128 (uint64_t a, uint64_t b);

#endif
#endif
2 changes: 1 addition & 1 deletion scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ int64_t scheduler_next()
if (event_list == NULL)
return -1;
return next_event;
}
}

0 comments on commit 4950e9c

Please sign in to comment.