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

Fix all compile warnings #49

Open
stefan-tb opened this issue Oct 9, 2021 · 6 comments
Open

Fix all compile warnings #49

stefan-tb opened this issue Oct 9, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@stefan-tb
Copy link
Contributor

Ideally, one should fix all the compile warnings. Especially all "obsolete" warnings in the CADabilty code base itself should be solved by shaping CADability legacy code into the desired patterns as a migration reference for other contributors.

@ChrisClems
Copy link
Contributor

Would it be helpful if I started tackling some of the easy ones? I looked through a handful of them and it looks like most of them are unused fields, events, and variables that date back to the first commit.

@dsn27
Copy link
Collaborator

dsn27 commented Dec 8, 2024

That would be helpful, but please don’t spend too much time on it.
I believe there are larger priorities to focus on.

@ChrisClems
Copy link
Contributor

It's really just an excuse to dig into the codebase and learn more about it. I have a couple big projects in the works that I'll be using this for so I'd like to contribute but I don't have a ton of experience collaborating with other programmers so I'd like to ease into it. Cleaning up unused variables seems like an easy win and I can learn more about the structure and do some translations in the process.

@dsn27
Copy link
Collaborator

dsn27 commented Dec 9, 2024

Your help is really appreciated. Thanks a lot for spending time on this project.

@dsn27 dsn27 closed this as completed Dec 9, 2024
@dsn27 dsn27 reopened this Dec 9, 2024
@stefan-tb
Copy link
Contributor Author

As the one who opened this: removing private variables is fine. Doing more, especially working on the [obsolete] parts gets tricky quickly. The code base is half-way trough a refactoring which was never finished. That said, any decrease in warnings is highly appreciated.

We ourselves might be able to contribute a substantial rewrite of the UI and rendering parts down the line, splitting Math and UI entirely. I really want to see this fly.

@dsn27 dsn27 added the enhancement New feature or request label Dec 12, 2024
@dsn27 dsn27 pinned this issue Dec 12, 2024
@dsn27
Copy link
Collaborator

dsn27 commented Dec 12, 2024

  • CS DialogDebuggerVisualizer.DialogDebuggerVisualizer()' is obsolete: 'Visualizers that target Visual Studio 17.6 or newer should use the other DialogDebuggerVisualizer overload and use a non-legacy formatting policy for improved security. Fix Visualizer for Visual Studio >17.6 #192
  • Remove unused fields CS0169
  • Remove unused variables CS0219
  • Fix CS0219 The variable is assigned but its value is never used
  • Fix CS0162 Unreachable code detected

Fixing these issues shouldn't have a big impact on the program itself and are easy to fix.

  • CS0618 Remove obsolete properties.
    This is going to be hugh. Every single Property/Function has to be checked.

  • Is the replacement working properly?

  • Are there parts of the program that still rely on this Property/Function?

We should probably create an issue and PR for each single Property/Function that will be replaced.

12th Dec - 970 Warnings
20th Dec - 761 Warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants