Commit Graph
9 Commits
Author SHA1 Message Date
Berk D. Demir ee10c51970 Fix compiler warnings: Explicit cast where needed 2025-07-17 20:35:55 -07:00
Berk D. Demir d60e0046a1 Enable all compiler warnings 2025-07-17 20:19:33 -07:00
Berk D. Demir cb89bdb537 Fix compiler warnings: format string
`z` is the length field for `size_t`.
2025-07-17 14:59:09 -07:00
Berk D. Demir 20270e5201 Fix compiler warnings: blisp_flash_firmware
Improve blisp_flash_firmware error handling:
- Address never checked return of `parse_firmware_file`
- Ensure the function always returns the correct blisp_return_t value
- Make error checking syntactic dance consistent
2025-07-17 14:59:09 -07:00
Berk D. Demir 77410adbee Fix compiler warnings: enum-conversion
sp_* functions from libserialport return `enum sp_return`, not
`blisp_return_t`.
2025-07-17 14:59:09 -07:00
Berk D. Demir 847be6c690 Fix compiler warnings: enum-int-mismatch
blisp.h and common.h declares signatures of functions that return
blisp_return_t as int32_t.
2025-07-17 14:59:09 -07:00
Berk D. Demir 77df78c1af Fix compiler warnings: Unused function params
We could use C23's `[[maybe_unused]]` but MSVC doesn't support it.
So we void cast them with an accompanying "unused" comment.
2025-07-17 14:59:09 -07:00
Berk D. Demir 52e736eaa2 Fix compiler warnings: Unused functions
Move function definitions in include/blisp_util.h to lib/blisp_util.c.

Defining them as static leads to internal linkage, accessible in that
translation unit, hence the warning. Their references are to be handled
in other translation units, so they shouldn't be static.
2025-07-17 14:59:09 -07:00
Berk D. Demir 2ad3ae7b50 Add CMake installation support
Allows installation with:
  `cmake --install . [--prefix /dir]`
2023-04-22 18:08:39 -07:00