Skip to content

Enable Conversion Warnings and Fix#418

Draft
dchansen06 wants to merge 5 commits intomainfrom
ConversionWarnings
Draft

Enable Conversion Warnings and Fix#418
dchansen06 wants to merge 5 commits intomainfrom
ConversionWarnings

Conversation

@dchansen06
Copy link
Copy Markdown
Contributor

Conversion Warnings

Problem and Scope

Conversion warnings are not enabled, causes silent behavior

Description

Turn on -Wconversion and fix bugs

Gotchas and Limitations

Some are just missing explicit casts

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

Compilation without warnings

Larger Impact

Depends on scale of changes

Additional Context and Ticket

Identified during #417

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06 dchansen06 self-assigned this Apr 16, 2026
@dchansen06 dchansen06 added Enhancement New feature or request CMake Anything related to or dealing with CMake 2 PRIORITY Important and a priority, but less than URGENT Big Fry Something that is complex and/or large Pipe Dream Would be amazing... but realistically... it might be dubious to get it on the car Bug Something is doing a thing but doing it wrong or otherwise incorrectly labels Apr 16, 2026
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06 dchansen06 force-pushed the ConversionWarnings branch 2 times, most recently from 0238246 to de77fc5 Compare April 16, 2026 19:59
@dchansen06
Copy link
Copy Markdown
Contributor Author

Maybe out of scope for now, there are a lot of different things

  • -Wconversion
    • -Wsign-conversion
    • -Wfloat-conversion
  • -Warith-conversion (definitely not)
  • -Wtraditional-conversion

See GCC 3.9 Options to Request or Suppress Warnings

It may be worth reviewing the pages under GCC 3 Command Options

@dchansen06 dchansen06 added 3 NORMAL Important but not really a priority and removed 2 PRIORITY Important and a priority, but less than URGENT labels Apr 16, 2026
@dchansen06 dchansen06 mentioned this pull request Apr 17, 2026
3 tasks
coderask added a commit that referenced this pull request Apr 17, 2026
# Fix ECU performance data type

## Problem and Scope
ECU performance was uint8 instead of uint32

## Description
This would break ECU code silently(no compile errors, but wrong type). 

## Gotchas and Limitations

## Testing

- [x] HOOTL testing
- [ ] HITL testing
- [x] Human tested

### Testing Details
Looked at StructParser output

## Larger Impact
Bugfix

## Additional Context and Ticket
Related to #418 
Resolves #417

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 NORMAL Important but not really a priority Big Fry Something that is complex and/or large Bug Something is doing a thing but doing it wrong or otherwise incorrectly CMake Anything related to or dealing with CMake Enhancement New feature or request Pipe Dream Would be amazing... but realistically... it might be dubious to get it on the car

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant