Skip to content

Commit 8208cfe

Browse files
committed
main: Add unused attributes
Signed-off-by: Akira Moroo <[email protected]>
1 parent 43b1ba2 commit 8208cfe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,11 @@ static inline uint32_t gen_br(uint8_t rn) {
285285
return insn;
286286
}
287287

288-
static inline uint32_t gen_ret(void) { return 0xd65f03c0; }
288+
__attribute__((unused)) static inline uint32_t gen_ret(void) {
289+
return 0xd65f03c0;
290+
}
289291

290-
static inline uint32_t gen_svc(uint16_t imm) {
292+
__attribute__((unused)) static inline uint32_t gen_svc(uint16_t imm) {
291293
return 0xd4000001 | ((uint32_t)imm << 5);
292294
}
293295

0 commit comments

Comments
 (0)