Closed Sembiance closed 1 year ago
Thanks for the report. I don't have a test environment set up where I can easily reproduce these warnings, but I believe they should be fixed by 31486c57. Please let me know if it still doesn't build correctly for you.
Thanks. Just tested latest code. Got the following error:
FAILED: CMakeFiles/icon_dearchiver.dir/src/icon_dearchiver.cc.o
/usr/bin/x86_64-pc-linux-gnu-g++ -I/usr/local/include -O2 -march=native -pipe -std=gnu++20 -Wall -Wextra -Werror -Wno-strict-aliasing -O2 -MD -MT CMakeFiles/icon_dearchiver.dir/src/icon_dearchiver.cc.o -MF CMakeFiles/icon_dearchiver.dir/src/icon_dearchiver.cc.o.d -o CMakeFiles/icon_dearchiver.dir/src/icon_dearchiver.cc.o -c /var/tmp/portage/app-arch/resource-dasm-0_p20230923/work/resource_dasm-master/src/icon_dearchiver.cc
/var/tmp/portage/app-arch/resource-dasm-0_p20230923/work/resource_dasm-master/src/icon_dearchiver.cc: In function ‘int main(int, const char**)’:
/var/tmp/portage/app-arch/resource-dasm-0_p20230923/work/resource_dasm-master/src/icon_dearchiver.cc:404:15: error: ‘uint32_t’ is not a member of ‘std’; did you mean ‘wint_t’?
404 | for (std::uint32_t icon_no = 0; icon_no < icon_count; ++icon_no) {
| ^~~~~~~~
| wint_t
/var/tmp/portage/app-arch/resource-dasm-0_p20230923/work/resource_dasm-master/src/icon_dearchiver.cc:404:37: error: ‘icon_no’ was not declared in this scope; did you mean ‘icon_count’?
404 | for (std::uint32_t icon_no = 0; icon_no < icon_count; ++icon_no) {
| ^~~~~~~
| icon_count
/var/tmp/portage/app-arch/resource-dasm-0_p20230923/work/resource_dasm-master/src/icon_dearchiver.cc: At global scope:
/var/tmp/portage/app-arch/resource-dasm-0_p20230923/work/resource_dasm-master/src/icon_dearchiver.cc:181:13: error: ‘void dearchive_icon(DearchiverContext&, uint16_t, uint32_t)’ defined but not used [-Werror=unused-function]
181 | static void dearchive_icon(DearchiverContext& context, uint16_t version, uint32_t icon_number) {
| ^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Thanks for your patience. This should be fixed now too.
I can confirm it compiles correctly now! Thanks!!!
Running
g++ 13.2.1 20230826
andcmake 3.27.4
and the latestresource_dasm 2023-08-31
andphosg 2023-09-21
I get this error:and
Disabling the errors with
-Wno-dangling-reference
and-Wno-sign-compare
allows it to continue but then I get:Which I can fix by adding
#include <cstdint>
tosrc/TextCodecs.hh
But then I get:
If I disable that error with
-Wno-redundant-move
then everything finishes compiling ok.