Build SDK for Amazon Linux 2023 #2995
-
I use your SDK in AL2 but now I make upgrade to AL2023 and try build SDK for it. During build procedure got an error from here tests/benchmark/benchmark.cpp in line 14: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Warnings are treated as errors when building this sdk. This specific warning is just a suggestion to add a parentheses to remove ambiguity. You can avoid this error by building without -Werror enabled or by disabling tests altogether with I also made a PR that should fix this warning: #2999 |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Yes, kind of. This only works because this warning ("error"), is in the tests. If you are ok with not running the tests then this should work for you.
A different way to fix this is to turn off Werror's. You can do that by adding
-DCMAKE_CXX_FLAGS="-Wno-error"