ITADN

Hyprbars doesnt build on latest Hyprland version

#647Closed901238746 创建于 2026-04-28
9
901238746commented
``` make: Entering directory '/run/user/1000/hyprpm/Bob/hyprbars' g++ -O2 -shared -fPIC -std=c++2b -Wno-c++11-narrowing --no-gnu-unique `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` main.cpp barDeco.cpp BarPassElement.cpp -o hyprbars.so `pkg-config --libs pangocairo` barDeco.cpp: In constructor ‘CHyprBar::CHyprBar(PHLWINDOW)’: barDeco.cpp:40:53: warning: narrowing conversion of ‘*(long int*)(*(long int* const*)PCOLOR)’ from ‘long int’ to ‘uint64_t’ {aka ‘long unsigned int’} [-Wnarrowing] 40 | g_pAnimationManager->createAnimation(CHyprColor{**PCOLOR}, m_cRealBarColor, g_pConfigManager->getAnimationPropertyConfig("border"), pWindow, AVARDAMAGE_NONE); | ^~~~~~~~ barDeco.cpp: In member function ‘virtual SDecorationPositioningInfo CHyprBar::getPositioningInfo()’: barDeco.cpp:58:56: warning: narrowing conversion of ‘((((CHyprBar*)this)->CHyprBar::m_hidden || ((*(long int*)(*(long int* const*)PENABLED)) == 0)) ? 0 : (*(long int*)(*(long int* const*)PHEIGHT)))’ from ‘long int’ to ‘int’ [-Wnarrowing] 58 | info.desiredExtents = {{0, m_hidden || !**PENABLED ? 0 : **PHEIGHT}, {0, 0}}; | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ barDeco.cpp: In member function ‘bool CHyprBar::doButtonPress(Hyprlang::INT* const*, Hyprlang::INT* const*, Hyprlang::INT* const*, Hyprutils::Math::Vector2D, bool)’: barDeco.cpp:268:70: warning: narrowing conversion of ‘*(Hyprlang::INT*)(* PHEIGHT)’ from ‘Hyprlang::INT’ {aka ‘long int’} to ‘int’ [-Wnarrowing] 268 | const auto BARBUF = Vector2D{(int)assignedBoxGlobal().w, **PHEIGHT}; | ^~~~~~~~~ barDeco.cpp: In member function ‘void CHyprBar::renderBarButtonsText(Hyprutils::Math::CBox*, float, float)’: barDeco.cpp:528:70: warning: narrowing conversion of ‘*(long int*)(*(long int* const*)PHEIGHT)’ from ‘long int’ to ‘int’ [-Wnarrowing] 528 | const auto BARBUF = Vector2D{(int)assignedBoxGlobal().w, **PHEIGHT}; | ^~~~~~~~~ barDeco.cpp: In member function ‘void CHyprBar::renderPass(PHLMONITOR, const float&)’: barDeco.cpp:622:24: warning: narrowing conversion of ‘*(long int*)(*(long int* const*)PHEIGHT)’ from ‘long int’ to ‘int’ [-Wnarrowing] 622 | m_seExtents = {{0, **PHEIGHT}, {}}; | ^~~~~~~~~ barDeco.cpp:658:80: warning: narrowing conversion of ‘(float)scaledRounding’ from ‘float’ to ‘int’ [-Wnarrowing] 658 | g_pHyprOpenGL->renderRect(windowBox, CHyprColor(0, 0, 0, 0), {.round = scaledRounding, .roundingPower = m_pWindow->roundingPower()}); | ^~~~~~~~~~~~~~ barDeco.cpp:666:65: warning: narrowing conversion of ‘(float)scaledRounding’ from ‘float’ to ‘int’ [-Wnarrowing] 666 | g_pHyprOpenGL->renderRect(titleBarBox, color, {.round = scaledRounding, .roundingPower = m_pWindow->roundingPower(), .blur = true, .blurA = a}); | ^~~~~~~~~~~~~~ barDeco.cpp:668:65: warning: narrowing conversion of ‘(float)scaledRounding’ from ‘float’ to ‘int’ [-Wnarrowing] 668 | g_pHyprOpenGL->renderRect(titleBarBox, color, {.round = scaledRounding, .roundingPower = m_pWindow->roundingPower()}); | ^~~~~~~~~~~~~~ barDeco.cpp:685:51: warning: narrowing conversion of ‘(int)(double)BARBUF.Hyprutils::Math::Vector2D::x’ from ‘int’ to ‘double’ [-Wnarrowing] 685 | CBox textBox = {titleBarBox.x, titleBarBox.y, (int)BARBUF.x, (int)BARBUF.y}; | ^~~~~~~~~~~~~ barDeco.cpp:685:66: warning: narrowing conversion of ‘(int)(double)BARBUF.Hyprutils::Math::Vector2D::y’ from ‘int’ to ‘double’ [-Wnarrowing] 685 | CBox textBox = {titleBarBox.x, titleBarBox.y, (int)BARBUF.x, (int)BARBUF.y}; | ^~~~~~~~~~~~~ barDeco.cpp: In member function ‘void CHyprBar::damageOnButtonHover()’: barDeco.cpp:786:70: warning: narrowing conversion of ‘*(long int*)(*(long int* const*)PHEIGHT)’ from ‘long int’ to ‘int’ [-Wnarrowing] 786 | const auto BARBUF = Vector2D{(int)assignedBoxGlobal().w, **PHEIGHT}; | ^~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option ‘-Wno-c++11-narrowing’ may have been intended to silence earlier diagnostics make: Leaving directory '/run/user/1000/hyprpm/Bob/hyprbars' ```
关闭于 2026-04-28 2 条评论