Skip to content

Commit

Permalink
fix sdcc 4.3.0 #14184 build error - error 283: function declarator wi…
Browse files Browse the repository at this point in the history
…th no prototype
  • Loading branch information
ilikenwf authored and crawfxrd committed Sep 20, 2023
1 parent 181d4c5 commit bb1ce22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/board/system76/common/pnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void pnp_write(uint8_t reg, uint8_t data) {
ec2i_write(0x2F, data);
}

void pnp_enable() {
void pnp_enable(void) {
DEBUG("Enable PNP devices\n");

// Enable PMC1
Expand Down
4 changes: 2 additions & 2 deletions src/common/include/common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef _COMMON_VERSION_H
#define _COMMON_VERSION_H

const char *board();
const char *version();
const char *board(void);
const char *version(void);

#endif // _COMMON_VERSION_H
4 changes: 2 additions & 2 deletions src/common/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ static const char __code VERSION[] =
xstr(__FIRMWARE_VERSION__);
// clang-format on

const char *board() {
const char *board(void) {
return &BOARD[11];
}

const char *version() {
const char *version(void) {
return &VERSION[13];
}

0 comments on commit bb1ce22

Please sign in to comment.