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 /core/cortex-m | |
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 'core/cortex-m')
-rw-r--r-- | core/cortex-m/vecttable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/cortex-m/vecttable.c b/core/cortex-m/vecttable.c index e89eca17c0..6f57deb603 100644 --- a/core/cortex-m/vecttable.c +++ b/core/cortex-m/vecttable.c @@ -20,7 +20,7 @@ typedef void (*func)(void); #if PASS == 1 /* Default exception handler */ void __attribute__((used, naked)) default_handler(void); -void default_handler() +void default_handler(void) { asm(".thumb_func\n" " b exception_panic"); @@ -58,7 +58,7 @@ void weak_with_default svc_handler(int desched, task_id_t resched); * it only loads r0 (desched) and r1 (resched) for svc_handler. */ void __attribute__((used, naked)) svc_helper_handler(void); -void svc_helper_handler() +void svc_helper_handler(void) { asm(".thumb_func\n" " tst lr, #4 /* see if called from supervisor mode */\n" |