Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clang error: private field 'm_slotIndex' is not used #119

Closed
kassane opened this issue Oct 4, 2023 · 1 comment
Closed

Clang error: private field 'm_slotIndex' is not used #119

kassane opened this issue Oct 4, 2023 · 1 comment

Comments

@kassane
Copy link
Contributor

kassane commented Oct 4, 2023

Configuration

Msys2/MinGW

-- The C compiler identification is Clang 17.0.1
-- The CXX compiler identification is Clang 17.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/a/_temp/msys64/clang64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/a/_temp/msys64/clang64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done

MacOS

-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done

Error

Msys2/MinGW

[12/32] Building CXX object lib/CMakeFiles/DOtherSide.dir/src/DosLambdaInvoker.cpp.obj
FAILED: lib/CMakeFiles/DOtherSide.dir/src/DosLambdaInvoker.cpp.obj 
D:\a\_temp\msys64\clang64\bin\c++.exe -DDOtherSide_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DWIN32 -IC:/_/zig-cache/lib/DOtherSide_autogen/include -IC:/Users/runneradmin/AppData/Local/zig/p/12205bf339b850a538f3905caebe1c6685a5793fccb982c515c09274170123f0deb4/lib/include -isystem D:/a/_temp/msys64/clang64/include/QtCore -isystem D:/a/_temp/msys64/clang64/share/qt5/mkspecs/win32-clang-g++ -isystem D:/a/_temp/msys64/clang64/include/QtCore/5.15.10 -isystem D:/a/_temp/msys64/clang64/include/QtCore/5.15.10/QtCore -isystem D:/a/_temp/msys64/clang64/include/QtGui -isystem D:/a/_temp/msys64/clang64/include/QtWidgets -isystem D:/a/_temp/msys64/clang64/include/QtQml -isystem D:/a/_temp/msys64/clang64/include/QtNetwork -isystem D:/a/_temp/msys64/clang64/include/QtQuick -isystem D:/a/_temp/msys64/clang64/include/QtQmlModels -isystem D:/a/_temp/msys64/clang64/include/QtQuickControls2 -std=gnu++11 -Wall -Wextra -Wpedantic -Werror -MD -MT lib/CMakeFiles/DOtherSide.dir/src/DosLambdaInvoker.cpp.obj -MF lib\CMakeFiles\DOtherSide.dir\src\DosLambdaInvoker.cpp.obj.d -o lib/CMakeFiles/DOtherSide.dir/src/DosLambdaInvoker.cpp.obj -c C:/Users/runneradmin/AppData/Local/zig/p/12205bf339b850a538f3905caebe1c6685a5793fccb982c515c09274170123f0deb4/lib/src/DosLambdaInvoker.cpp
In file included from C:/Users/runneradmin/AppData/Local/zig/p/12205bf339b850a538f3905caebe1c6685a5793fccb982c515c09274170123f0deb4/lib/src/DosLambdaInvoker.cpp:20:

C:/Users/runneradmin/AppData/Local/zig/p/12205bf339b850a538f3905caebe1c6685a5793fccb982c515c09274170123f0deb4/lib/include/DOtherSide/DosLambdaInvoker.h:61:15: error: private field 'm_slotIndex' is not used [-Werror,-Wunused-private-field]

   61 |     const int m_slotIndex;

      |               ^

1 error generated.

[13/32] Building CXX object lib/CMakeFiles/DOtherSideStatic.dir/src/DOtherSide.cpp.obj
[14/32] Building CXX object lib/CMakeFiles/DOtherSide.dir/src/DosQDeclarative.cpp.obj
ninja: build stopped: subcommand failed.

MacOS

 [ 68%] Building CXX object lib/CMakeFiles/DOtherSide.dir/src/DosLambdaInvoker.cpp.o
In file included from /Users/runner/.cache/zig/p/12205bf339b850a538f3905caebe1c6685a5793fccb982c515c09274170123f0deb4/lib/src/DosLambdaInvoker.cpp:20:
/Users/runner/.cache/zig/p/12205bf339b850a538f3905caebe1c6685a5793fccb982c515c09274170123f0deb4/lib/include/DOtherSide/DosLambdaInvoker.h:61:15: error: private field 'm_slotIndex' is not used [-Werror,-Wunused-private-field]
    const int m_slotIndex;
              ^
1 error generated.
make[2]: *** [lib/CMakeFiles/DOtherSide.dir/src/DosLambdaInvoker.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /Users/runner/.cache/zig/p/12205bf339b850a538f3905caebe1c6685a5793fccb982c515c09274170123f0deb4/lib/src/DosLambdaInvoker.cpp:20:
/Users/runner/.cache/zig/p/12205bf339b850a538f3905caebe1c6685a5793fccb982c515c09274170123f0deb4/lib/include/DOtherSide/DosLambdaInvoker.h:61:15: error: private field 'm_slotIndex' is not used [-Werror,-Wunused-private-field]
    const int m_slotIndex;
              ^
1 error generated.
make[2]: *** [lib/CMakeFiles/DOtherSideStatic.dir/src/DosLambdaInvoker.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [lib/CMakeFiles/DOtherSideStatic.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [lib/CMakeFiles/DOtherSide.dir/all] Error 2

References:

@kassane
Copy link
Contributor Author

kassane commented Dec 1, 2023

Fixed on master: cbb1b19

@kassane kassane closed this as completed Dec 1, 2023
kassane added a commit to sreehax/qml_zig that referenced this issue Dec 1, 2023
kassane added a commit to sreehax/qml_zig that referenced this issue Dec 1, 2023
* dotherside fix: filcuc/dotherside#119 (comment)
* new minimum version: zig v0.12.0
kassane added a commit to kassane/qml_zig that referenced this issue Dec 1, 2023
 Some changes

* use zig package manager (requires master)
* change CI/CD to zig master
* dotherside fix: filcuc/dotherside#119 (comment)
* new minimum version: zig v0.12.0

---------

Co-authored-by: Matheus C. França <matheus-catarino@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant