-
Notifications
You must be signed in to change notification settings - Fork 21
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
Compiler warnings #1208
Comments
|
Thanks for making this issue! Cleaning up our builds and allowing us to start making use of more static analysis as part of the CI is an important goal. There's a overarching issue for these things in #1176. I'll make a list of related issues in there and link this one Since LDMX-Software/docker#67 and LDMX-Software/cmake#19 we have some additional tools in the development container that can give additional static analysis. For compiler warnings, there are some CMake flags you can enable to add additional warnings that you can see in https://github.com/LDMX-Software/cmake/blob/trunk/CompilerWarnings.cmake You can also build ldmx-sw with the Finally, for memory-issues we also have #1172 so if you find anything in that realm it might be discussed in there already. w.r.t. the first one here, I think reaching the end of these functions should clearly signal a bug. From looking at the code, it isn't immediately obvious to me if there is a way to reach the end of those functions with valid input so I would probably suggest raising an exception. |
I should say that it isn't obvious to me there's a way to trigger the end of those functions doesn't mean that the warning is silly, there have been similar problems caught by this warning before |
For building with |
The second one is in the G4DarkBreM repo which I can patch pretty quickly. |
For the 3rd... I also am unsure if ldmx-sw/Tools/src/Tools/ONNXRuntime.cxx Lines 15 to 37 in ddcc4da
|
The other option is to disable the warning, but I would prefer doing some #pragma's if it isnt happening in a lot of places https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html With some comment referencing this issue of course |
hey @tomeichlersmith your point in #1208 (comment) is now relevant again since you did drop v3 images recently, right? |
So besides ONNX warning, I see this one
I dont know if I can do anything with this, @tomeichlersmith @EinarElen ? |
I would probably just add the #define that is referenced and add a comment in the docker repo by the dependencies to check this whenever we update boost |
Describe the bug
In the idea of having clean compiler logs, here are a few more warnings I see:
Type "control reaches end of non-void function"
Type " declaration of 'm' shadows a global declaration "
Type "deprecated"
Boost deprecation
and
Additional context
Similar issue at #1199
The text was updated successfully, but these errors were encountered: