Skip to content

[BUG] Fix Clang/GCC compiler warnings. #558

@phelter

Description

@phelter

Describe the bug
Cleanup the Clang and GNU compiler warnings when -Wall, -Weverything, and -Wpedantic are used.

Start using clang for checking doxygen and other C based linting violations - can use in gitub-actions.

Target

  • Development board: Linux
  • Instruction Set Architecture: Linux
  • IDE and version: Visual Code 1.71.1
  • Toolchain and version: Clang-13 and GCC 7.5.0

Host

  • Host OS: Linux
  • Version: Ubuntu 18.04

To Reproduce

Expected behavior
Code cleaned up and a CI call to Clang and GCC to ensure code quality is adhered to.

Screenshots
N/A

Wireshark logs
N/A

Additional context
The primary reason for doing this is to use Clang and GCC to provide better and more descriptive code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions