diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-07-06 13:17:39 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-08 16:07:25 +0000 |
commit | 2c4345a9eeb1665327dafaa3ac2a1060d34ff452 (patch) | |
tree | 30006df9784075d85aa0f598a8f0eca22ce835b0 /chip | |
parent | ee5dcc9ae08f0fafced7f2b54720928cbe273b2b (diff) | |
download | chrome-ec-2c4345a9eeb1665327dafaa3ac2a1060d34ff452.tar.gz |
tree: Fix -Wstrict-prototypes warning
The latest clang complains about missing 'void' in function
definition if it's specified in the declaration:
core/cortex-m/vecttable.c:23:21: error: a function declaration without a
prototype is deprecated in all versions of C
[-Werror,-Wstrict-prototypes]
void default_handler()
^
void
BRANCH=none
BUG=b:230345382, b:172020503
TEST=./util/compare_build.sh -b all -j 120
=> MATCH
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I5a3d95203cc6cbb59676f4a66876a4a6f2946e31
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3750108
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/npcx/system.c | 2 | ||||
-rw-r--r-- | chip/stm32/bkpdata.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chip/npcx/system.c b/chip/npcx/system.c index d85dc3cdde..47909a5f54 100644 --- a/chip/npcx/system.c +++ b/chip/npcx/system.c @@ -1374,7 +1374,7 @@ void system_jump_to_booter(void) #endif } -uint32_t system_get_lfw_address() +uint32_t system_get_lfw_address(void) { /* * In A3 version, we don't use little FW anymore diff --git a/chip/stm32/bkpdata.c b/chip/stm32/bkpdata.c index 5a51128fc3..65fedae3f8 100644 --- a/chip/stm32/bkpdata.c +++ b/chip/stm32/bkpdata.c @@ -65,7 +65,7 @@ int bkpdata_index_lookup(enum system_bbram_idx idx, int *msb) return -1; } -uint32_t bkpdata_read_reset_flags() +uint32_t bkpdata_read_reset_flags(void) { uint32_t flags = bkpdata_read(BKPDATA_INDEX_SAVED_RESET_FLAGS); |