Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility with standard C11 #120

Closed
wants to merge 1 commit into from
Closed

Add compatibility with standard C11 #120

wants to merge 1 commit into from

Conversation

miguelafsilva5
Copy link
Member

PR description

The usage of a C standard without any extensions is a required rule in MISRA compliance.
This PR will serve as a hub for most modifications regarding the standard C11 and additonal MISRA rules that can be verified by the compiler.
Ideally, each PR made to this WIP will represent a rule or a subset of MISRA rules that are verified with additional compiling flags.

  • C11 with no extensions
  • TBD

Makefile Outdated
@@ -235,7 +235,7 @@ $(build_dir)/%.d : $(src_dir)/%.[c,S]

$(objs-y):
@echo "Compiling source $(patsubst $(cur_dir)/%, %, $<)"
@$(cc) $(CFLAGS) -c $< -o $@
-@$(cc) $(CFLAGS) -c $< -o $@
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not be suppressing build errors.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed in the recent commit.

Initial commit for the process of adapting bao to the standard C11.
Modified the makefile to compile according to C11 and reject the use of any
extension.

Signed-off-by: Miguel Silva <miguelafsilva5@gmail.com>
@josecm
Copy link
Member

josecm commented Jan 31, 2024

Closing this as it is already addressed in #122

@josecm josecm closed this Jan 31, 2024
@josecm josecm deleted the wip/c11 branch January 31, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants