Skip to content

Commit

Permalink
Enable all compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Jun 7, 2024
1 parent d387819 commit 3c8cbd9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
#include "em_cmu.h"
#include "em_wdog.h"
#include "em_rmu.h"
#include "sli_cpc_timer.h"
#include "sl_component_catalog.h"

void nc_enable_watchdog(void);
void nc_periodic_timer(sli_cpc_timer_handle_t *handle, void *data);
void nc_poke_watchdog(void);
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void nc_enable_watchdog(void)
}


void nc_poke_watchdog()
void nc_poke_watchdog(void)
{
CORE_DECLARE_IRQ_STATE;
CORE_ENTER_ATOMIC();
Expand Down
1 change: 1 addition & 0 deletions src/ot-rcp/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <openthread/ncp.h>
#include <openthread/diag.h>
#include <openthread/tasklet.h>
#include <openthread/logging.h>

#include "openthread-system.h"
#include "app.h"
Expand Down
14 changes: 13 additions & 1 deletion tools/build_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,18 @@ def main():
LOGGER.error("Defines were unused, aborting: %s", unused_defines)
sys.exit(1)

# Fix Gecko SDK bugs
sl_rail_util_pti_config_h = args.build_dir / "config/sl_rail_util_pti_config.h"

# PTI seemingly cannot be excluded, even if it is disabled
if sl_rail_util_pti_config_h.exists():
sl_rail_util_pti_config_h.write_text(
sl_rail_util_pti_config_h.read_text().replace(
'#warning "RAIL PTI peripheral not configured"\n',
'// #warning "RAIL PTI peripheral not configured"\n',
)
)

# Remove absolute paths from the build for reproducibility
extra_compiler_flags = [
f"-ffile-prefix-map={str(src.absolute())}={dst}"
Expand All @@ -557,7 +569,7 @@ def main():
args.build_dir: "/src",
toolchain: "/toolchain",
}.items()
]
] + ["-Wall", "-Wextra", "-Werror"]

output_artifact = (args.build_dir / "build/debug" / base_project_name).with_suffix(
".gbl"
Expand Down

0 comments on commit 3c8cbd9

Please sign in to comment.