Conversation

why does O3DE build with -Werror when it has a grillion warnings

1
0
1

hahahahahahahaha

Werror + Wno-strict-aliasing

what a load of garbage

1
0
1

export CC=clang
export CXX=clang++

– The C compiler identification is GNU 14.3.0
– The CXX compiler identification is GNU 14.3.0

seems to ignore env 🥴

2
0
0

@kitten CMAKE_C_COMPILER works, but also apparently llvm-21/clang-21 broke pthreads neobot_woozy

0
0
0

cmake -B build/linux -S . -G "Ninja Multi-Config" -DLY_UNITY_BUILD=OFF -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_C_COMPILER=clang-20 -DCMAKE_CXX_COMPILER=clang++-20

neobot_woozy

1
0
0
Code/Framework/AzCore/AzCore/DOM/DomValue.cpp:303:16: error: first argument in call to 'memcpy' is a pointer to non-trivially copyable type 'AZ::Dom::Value' [-Werror,-Wnontrivial-memcall]
  303 |         memcpy(this, &other, sizeof(Value));

Werror is very smart choice

1
0
0

this project is backed by the linux foundation btw

it doesn’t compile on linux

2
0
3

the agaric system

Edited 15 days ago
@ada best argument against linux i’ve ever heard i think
0
0
0

ok its removing -Werror, these memcpys are everywhere.

could add -Wno-nontrivial-memcall though

1
0
0

oh this is a clang-20 issue
clang-19 apparently works

1
0
0

(because these two warnings got added in clang-20)

1
0
0

@ada just need to wait for c++26's trivial relocatability to fix this warning 😊

1
0
0

@pierogiburo not doing this pattern would fix it woozy_neptune

0
0
0

time to slap (void*) everywhere

2
0
0
@ada *slaps void pointer*
This bad boy can fit so many abstractions
0
0
0