Skip to content

Remove useless -Wno-long-long option#26635

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
FantasqueX:remove-no-long-long-1
Dec 27, 2024
Merged

Remove useless -Wno-long-long option#26635
asmorkalov merged 1 commit intoopencv:4.xfrom
FantasqueX:remove-no-long-long-1

Conversation

@FantasqueX
Copy link
Copy Markdown
Contributor

According to GCC doc, -Wlong-long: Warn if long long type is used. This is enabled by either -Wpedantic or -Wtraditional in ISO C90 and C++98 modes. To inhibit the warning messages, use -Wno-long-long.

OpenCV 4.x requires C++11. As result, this option is useless.

Ref: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

According to GCC doc, -Wlong-long: Warn if long long type is used.
This is enabled by either -Wpedantic or -Wtraditional in ISO C90
and C++98 modes. To inhibit the warning messages, use -Wno-long-long.

OpenCV 4.x requires C++11. As result, this option is useless.

Ref: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
@asmorkalov
Copy link
Copy Markdown
Contributor

@mshabunin could you take a look?

@FantasqueX
Copy link
Copy Markdown
Contributor Author

I would like to add that long long is introduced in C++11.
Ref: https://en.cppreference.com/w/cpp/language/types

@asmorkalov asmorkalov requested review from asmorkalov and removed request for mshabunin December 18, 2024 05:44
@asmorkalov asmorkalov self-assigned this Dec 18, 2024
Copy link
Copy Markdown
Contributor

@mshabunin mshabunin left a comment

Choose a reason for hiding this comment

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

Let's merge it together with buildbot configuration update.

@asmorkalov asmorkalov requested review from opencv-alalek and removed request for asmorkalov December 19, 2024 04:45
@asmorkalov asmorkalov merged commit 94bccbe into opencv:4.x Dec 27, 2024
@asmorkalov asmorkalov mentioned this pull request Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants