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

additional warnings #1025

Merged
merged 12 commits into from
Feb 16, 2022
Merged

additional warnings #1025

merged 12 commits into from
Feb 16, 2022

Conversation

nichtsfrei
Copy link
Member

@nichtsfrei nichtsfrei commented Feb 4, 2022

Refactor: add stricter compile options to find common issues

Add:

-Wextra
-Werror
-Wpedantic
-Wmissing-prototypes
-Wshadow
-Wsequence-point

compile flags and fixed misc accordingly.

This in coordination with SC-270.

@nichtsfrei nichtsfrei force-pushed the additional-warnings branch 6 times, most recently from dcba9d8 to f7f71d1 Compare February 4, 2022 15:50
@nichtsfrei nichtsfrei marked this pull request as ready for review February 7, 2022 13:41
@nichtsfrei nichtsfrei requested a review from a team as a code owner February 7, 2022 13:41
@nichtsfrei nichtsfrei enabled auto-merge (squash) February 7, 2022 13:42
nasl/nasl_scanner_glue.c Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
Kraemii
Kraemii previously approved these changes Feb 14, 2022
nichtsfrei and others added 12 commits February 16, 2022 08:48
Add:

-Wextra
-Werror
-Wpedantic
-Wmissing-prototypes
-Wshadow
-Wsequence-point

-fsanitize=address

compile flags and fixed misc accordingly.
Contains definition of
```
tree_cell *
nasl_lint (lex_ctxt *lexic, tree_cell *st);
```

because it is used in exec as well.
Co-authored-by: Christoph Krämer <christoph.kraemer@greenbone.net>
@nichtsfrei nichtsfrei merged commit 88ed664 into main Feb 16, 2022
@nichtsfrei nichtsfrei deleted the additional-warnings branch February 16, 2022 10:27
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.

None yet

4 participants