1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-14 14:10:37 +03:00

openni2: Fix remaining compile errors

In file included from ../../../ThirdParty/GL/glh/glh_obs.h:62:
../../../ThirdParty/GL/glh/glh_linear.h:371:11: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  371 |           register real u;
      |           ^~~~~~~~
This commit is contained in:
Michal Sojka 2024-09-19 11:41:12 +02:00 committed by Ben Wolsieffer
parent e9fc4018ea
commit 3288b71c64

View file

@ -40,6 +40,10 @@ in clangStdenv.mkDerivation rec {
sed -e "s%/etc/udev/rules.d/%$out/etc/udev/rules.d/%" \
-e s%exit%% \
-i Packaging/Linux/install.sh
substituteInPlace Source/Drivers/PS1080/Sensor/Bayer.cpp \
--replace-fail 'register ' ""
substituteInPlace ThirdParty/GL/glh/glh_linear.h \
--replace-fail 'register ' ""
'';
makeFlags = [ "CFG=Release" "ALLOW_WARNINGS=1" ];