From 1e7adbfa644f428b02172b4e36392abb1a2e0fa0 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Fri, 29 May 2026 11:02:24 -0400 Subject: [PATCH] We purposefully have a bug in the example code, so ask gcc not to detect it for us. --- examples/example_3/rakefile_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/example_3/rakefile_helper.rb b/examples/example_3/rakefile_helper.rb index 1a7d99f..8d42e70 100644 --- a/examples/example_3/rakefile_helper.rb +++ b/examples/example_3/rakefile_helper.rb @@ -131,6 +131,9 @@ end def compile(file, defines = []) build_path = $cfg[:project][:build_root] out_file = File.join(build_path, File.basename(file, C_EXTENSION)) + ($cfg[:extension][:object] || '.o') + if $cfg[:tools][:test_compiler][:executable] =~ /gcc/ + $cfg[:tools][:test_compiler][:arguments] |= ['-Wno-misleading-indentation'] + end cmd_str = build_command_string($cfg[:tools][:test_compiler], [file, out_file], defines) execute(cmd_str) out_file