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

Trigger compilation errors on warnings #5445

Merged
merged 19 commits into from
Jul 11, 2024
Merged

Conversation

vkucera
Copy link
Collaborator

@vkucera vkucera commented Apr 2, 2024

Trigger compilation errors on warnings from the following categories:

  • default,
  • -Wall,
  • -Wextra.

Warnings present in at least one of the categories above are grouped into the following lists:

  • common (present for both clang 15 (Mac builds) and gcc 12 (Linux builds)),
  • only clang,
  • only gcc.

Lists were taken from https://github.com/pkolbus/compiler-warnings

-Wsign-compare will be added later when cleaned up in the current code base (hundreds).

Requires:

@vkucera vkucera marked this pull request as ready for review April 2, 2024 16:27
@alibuild
Copy link
Collaborator

alibuild commented Apr 2, 2024

Error while checking build/O2Physics/o2 for ccee6b2 at 2024-04-02 18:41:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/PIDTOF.h:132:124: error: missing braces around initializer for 'std::__array_traits<std::__cxx11::basic_string<char>, 13>::_Type' {aka 'std::__cxx11::basic_string<char> [13]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/PIDTOF.h:137:66: error: missing braces around initializer for 'std::__array_traits<float, 13>::_Type' {aka 'float [13]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/TPCPIDResponse.h:89:145: error: missing braces around initializer for 'std::__array_traits<float, 5>::_Type' {aka 'float [5]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/TPCPIDResponse.h:90:61: error: missing braces around initializer for 'std::__array_traits<float, 2>::_Type' {aka 'float [2]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/TableProducer/trackextension.cxx:81:44: error: missing braces around initializer for 'std::__array_traits<float, 2>::_Type' {aka 'float [2]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/TableProducer/trackextension.cxx:119:44: error: missing braces around initializer for 'std::__array_traits<float, 2>::_Type' {aka 'float [2]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/trackUtilities.h:30:51: error: missing braces around initializer for 'std::__array_traits<float, 5>::_Type' {aka 'float [5]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/trackUtilities.h:30:51: error: missing braces around initializer for 'std::__array_traits<float, 5>::_Type' {aka 'float [5]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/PIDTOF.h:132:124: error: missing braces around initializer for 'std::__array_traits<std::__cxx11::basic_string<char>, 13>::_Type' {aka 'std::__cxx11::basic_string<char> [13]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/PIDTOF.h:137:66: error: missing braces around initializer for 'std::__array_traits<float, 13>::_Type' {aka 'float [13]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/PIDTOF.h:132:124: error: missing braces around initializer for 'std::__array_traits<std::__cxx11::basic_string<char>, 13>::_Type' {aka 'std::__cxx11::basic_string<char> [13]'} [-Werror=missing-braces]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/PIDTOF.h:137:66: error: missing braces around initializer for 'std::__array_traits<float, 13>::_Type' {aka 'float [13]'} [-Werror=missing-braces]
ninja: build stopped: subcommand failed.

Full log here.

@vkucera vkucera marked this pull request as draft April 2, 2024 17:06
@vkucera vkucera changed the title Add more compilation warnings on the error list Trigger compilation errors on warnings Apr 20, 2024
@vkucera vkucera marked this pull request as ready for review April 22, 2024 11:05
@alibuild
Copy link
Collaborator

alibuild commented Apr 22, 2024

Error while checking build/O2Physics/o2 for 13e49af at 2024-04-24 02:28:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/ParamBase.h:186:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/ParamBase.h:186:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/TPCPIDResponse.h:65:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/TPCPIDResponse.h:66:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/TPCPIDResponse.h:67:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/TPCPIDResponse.h:68:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/TPCPIDResponse.h:69:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/TableProducer/trackselection.cxx:76:250: error: this statement may fall through [-Werror=implicit-fallthrough=]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/TableProducer/trackselection.cxx:83:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/TableProducer/trackselection.cxx:90:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/TableProducer/trackselection.cxx:97:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild
Copy link
Collaborator

alibuild commented Apr 24, 2024

Error while checking build/O2Physics/o2 for 99f1307 at 2024-04-30 06:51:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/ParamBase.h:186:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild
Copy link
Collaborator

alibuild commented Apr 30, 2024

Error while checking build/O2Physics/o2 for 15994c1 at 2024-05-16 09:40:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/Common/Core/PID/ParamBase.h:186:3: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
ninja: build stopped: subcommand failed.

Full log here.

@vkucera vkucera marked this pull request as draft May 17, 2024 11:56
@vkucera
Copy link
Collaborator Author

vkucera commented May 17, 2024

To be finalised after SQM. (Following up on the discussion at WP14.)

Copy link

This PR has not been updated in the last 30 days. Is it still needed? Unless further action is taken, it will be closed in 5 days.

@github-actions github-actions bot added the stale label Jun 17, 2024
@vkucera vkucera removed the stale label Jun 17, 2024
@vkucera vkucera marked this pull request as ready for review June 22, 2024 00:20
@vkucera vkucera marked this pull request as draft June 22, 2024 01:48
@vkucera vkucera marked this pull request as ready for review June 23, 2024 11:16
@vkucera vkucera marked this pull request as draft June 23, 2024 11:17
@alibuild
Copy link
Collaborator

alibuild commented Jul 2, 2024

Error while checking build/O2Physics/o2 for 75fb9c0 at 2024-07-10 05:30:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/PWGHF/D2H/Tasks/taskSigmacToCascade.cxx:61:26: error: unused parameter 'context' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/PWGHF/D2H/Tasks/taskSigmacToCascade.cxx:132:42: error: unused parameter 'candidatesLc' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

@vkucera
Copy link
Collaborator Author

vkucera commented Jul 2, 2024

Can you check if this does not explode the log size?

It does not.

@ktf
Copy link
Member

ktf commented Jul 8, 2024

There is some other warning -> error. Could you have a look?

@vkucera
Copy link
Collaborator Author

vkucera commented Jul 8, 2024

There is some other warning -> error. Could you have a look?

If you can confirm that this PR looks fine for you, I'm ready to open PRs fixing the existing warnings so that this one can pass the build tests.

@vkucera
Copy link
Collaborator Author

vkucera commented Jul 9, 2024

There is some other warning -> error. Could you have a look?

If you can confirm that this PR looks fine for you, I'm ready to open PRs fixing the existing warnings so that this one can pass the build tests.

Let me rephrase: If all the build tests pass, will you be fine with approving and merging this PR as it is now?

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

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

Thanks!! @vkucera

@alibuild
Copy link
Collaborator

Error while checking build/O2Physics/o2 for b233d8c at 2024-07-10 20:26:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/PWGUD/Tasks/upcTauCentralBarrelRL.cxx:1979:28: error: unused parameter 'reconstructedCollision' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/5445-slc7_x86-64/0/PWGUD/Tasks/upcTauCentralBarrelRL.cxx:1979:28: error: unused parameter 'reconstructedCollision' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

rolavick
rolavick previously approved these changes Jul 10, 2024
@vkucera
Copy link
Collaborator Author

vkucera commented Jul 11, 2024

There is some other warning -> error. Could you have a look?

@ktf All green now. Can you please approve?

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

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

Thanks!! @vkucera

@ktf ktf merged commit c31daaa into AliceO2Group:master Jul 11, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants