Skip to content

Commit 93a6c0c

Browse files
Fixed a wrong compiler error.
* For some reason, the compiler's flow-control is wrong. * To satisfy the compiler, a return statement was added where control is impossible to make it there.
1 parent 59677eb commit 93a6c0c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

2024/prototype/intake_mechanisms/.vscode/c_cpp_properties.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"env": {
3-
"vex_compilerPath": "${config:vexrobotics.vexcode.Cpp.Toolchain.Path}\\clang\\bin\\clang",
4-
"vex_sdkPath": "${config:vexrobotics.vexcode.Cpp.Sdk.Home}\\V5\\V5_20240802_15_00_00\\vexv5",
3+
"vex_compilerPath": "${config:vexrobotics.vexcode.Cpp.Toolchain.Path}/clang/bin/clang",
4+
"vex_sdkPath": "${config:vexrobotics.vexcode.Cpp.Sdk.Home}/V5/V5_20240802_15_00_00/vexv5",
55
"vex_gcc": "${vex_sdkPath}/gcc/include/c++/4.9.3",
66
"vex_sdkIncludes": [
77
"${vex_sdkPath}/clang/8.0.0/include/**",

2024/prototype/intake_mechanisms/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"C_Cpp.default.systemIncludePath": [
3-
"${config:vexrobotics.vexcode.Cpp.Sdk.Home}\\V5\\V5_20240802_15_00_00\\vexv5\\gcc\\include\\sys"
3+
"${config:vexrobotics.vexcode.Cpp.Sdk.Home}/V5/V5_20240802_15_00_00/vexv5/gcc/include/sys"
44
],
55
"files.associations": {
66
"algorithm": "cpp",

2024/prototype/intake_mechanisms/src/autonomous_task_tree.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ bool DriveStraightTask::done() const {
170170
return false;
171171
}
172172
}
173+
// Control should never make it there.
174+
return true;
173175
}
174176

175177
/********************************************

0 commit comments

Comments
 (0)