Skip to content

Commit

Permalink
Fixing some Vera issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dkfellows committed Nov 9, 2020
1 parent ec29ac2 commit 3f0b851
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/c_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Lint C code using Vera++
# Note: run this before building to avoid linting modified_src directories
run: |
support/run-vera.sh spinnaker_graph_front_end
support/run-vera.sh spinnaker_graph_front_end -P max-dirname-length=40
support/run-vera.sh gfe_integration_tests
- name: Build C dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ void read_input_buffer(void) {
bool success = circular_buffer_get_next(input_buffer, &current_payload);
if (success) {
if (current_payload == DEAD) {
dead_states_recieved_this_tick += 1;
} else if(current_payload == ALIVE) {
alive_states_recieved_this_tick += 1;
dead_states_recieved_this_tick += 1;
} else if (current_payload == ALIVE) {
alive_states_recieved_this_tick += 1;
} else {
log_error("Not recognised payload");
log_error("Not recognised payload");
}
} else {
log_debug("couldn't read state from my neighbours.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void c_main(void) {

// initialise the recording section
// set up recording data structures
if(!initialise_recording()) {
if (!initialise_recording()) {
rt_error(RTE_SWERR);
}

Expand Down

0 comments on commit 3f0b851

Please sign in to comment.