Closed jbeich closed 1 year ago
-Wnoaddress-of-temporary
?
It doesn't help with assigning to .. from incompatible type ...
or cannot initialize a variable of type ... with an rvalue of type ...
.
these functions are copied from xdpw, so whatever compile args they use should work here too.
xdpw is built by C compiler, not C++.
well then figuring out how to build with clang is left to you. It builds with gcc, I've never used clang.
Yeah, the nix flake appears to be broken:
error: builder for '/nix/store/zaqcs468knh8yxldwiaqd8by6mp3w7np-xdg-desktop-portal-hyprland-1.0.0+date=2023-09-13_8f45a64.drv' failed with exit code 1;
last 10 log lines:
> | ^~~
> ../src/shared/ScreencopyShared.cpp:283:59: note: in expansion of macro 'SPA_POD_CHOICE_RANGE_Fraction'
> 283 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../src/shared/ScreencopyShared.cpp:283:140: note: in expansion of macro 'SPA_FRACTION'
> 283 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0);
> | ^~~~~~~~~~~~
> [29/32] Compiling C++ object src/xdg-desktop-portal-hyprland.p/core_PortalManager.cpp.o
> [30/32] Compiling C++ object hyprland-share-picker/hyprland-share-picker.p/main.cpp.o
> ninja: build stopped: subcommand failed.
For full logs, run 'nix log /nix/store/zaqcs468knh8yxldwiaqd8by6mp3w7np-xdg-desktop-portal-hyprland-1.0.0+date=2023-09-13_8f45a64.drv'.
The git hash: aca51609d4c415b30e88b96c6f49f0142cbcdae7
.
Builds fine after f9461b0b7d30.
According to relnotes GCC 12 -> 13 indeed helps but Clang 16 -> 17 doesn't: