fix sdcc 4.3.0 #14184 build error - error 283: function declarator with no prototype
This commit is contained in:
committed by
Tim Crawford
parent
181d4c5d59
commit
bb1ce2273b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user