-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
[3.2] Fix const warnings in FBX (build failure on macOS) #45351
Conversation
Fixes several instances of error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers] This looks like it was fixed in 6607fc7 when FBX was merged into the 4.0 master branch: "- fixed const correctness with C++/C version change"
I'm not sure why the CI isn't producing these warnings. This is the scons command I'm using, so everything is pretty much the default:
I'm also unsure why some of the compile options are different between my build and the CI. The compiler versions are the same: Command line details comparison for compilation of FBXParser.cpp on my computer vs. the CIMineclang++ -o modules/fbx/fbx_parser/FBXParser.osx.tools.64.o -c -std=gnu++14 -Wctor-dtor-privacy -Wnon-virtual-dtor -g3 -arch x86_64 -mmacosx-version-min=10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wall -Wextra -Wwrite-strings -Wno-unused-parameter -Werror -DDEBUG_ENABLED -DDEBUG_MEMORY_ALLOC -DDISABLE_FORCED_INLINE -DOSX_ENABLED -DUNIX_ENABLED -DGLES_ENABLED -DAPPLE_STYLE_KEYS -DCOREAUDIO_ENABLED -DCOREMIDI_ENABLED -DGL_SILENCE_DEPRECATION -DPTRCALL_ENABLED -DTOOLS_ENABLED -DGDSCRIPT_ENABLED -DMINIZIP_ENABLED -DZSTD_STATIC_LINKING_ONLY -DGLAD_ENABLED -DGLES_OVER_GL -DMODULE_BMP_ENABLED -DMODULE_BULLET_ENABLED -DMODULE_CAMERA_ENABLED -DMODULE_CSG_ENABLED -DMODULE_CVTT_ENABLED -DMODULE_DDS_ENABLED -DMODULE_DENOISE_ENABLED -DMODULE_ENET_ENABLED -DMODULE_ETC_ENABLED -DMODULE_FBX_ENABLED -Imodules/fbx -Ithirdparty/libpng -Ithirdparty/glad -Ithirdparty/zstd -Ithirdparty/zlib -Iplatform/osx -I. modules/fbx/fbx_parser/FBXParser.cpp CIclang++ -o modules/fbx/fbx_parser/FBXParser.osx.opt.tools.64.o -c -std=gnu++14 -g2 -O2 -arch x86_64 -mmacosx-version-min=10.9 -isysroot /Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -Wall -Werror -DDEBUG_ENABLED -DOSX_ENABLED -DUNIX_ENABLED -DGLES_ENABLED -DAPPLE_STYLE_KEYS -DCOREAUDIO_ENABLED -DCOREMIDI_ENABLED -DGL_SILENCE_DEPRECATION -DPTRCALL_ENABLED -DTOOLS_ENABLED -DGDSCRIPT_ENABLED -DMINIZIP_ENABLED -DZSTD_STATIC_LINKING_ONLY -DGLAD_ENABLED -DGLES_OVER_GL -DMODULE_BMP_ENABLED -DMODULE_BULLET_ENABLED -DMODULE_CAMERA_ENABLED -DMODULE_CSG_ENABLED -DMODULE_CVTT_ENABLED -DMODULE_DDS_ENABLED -DMODULE_DENOISE_ENABLED -DMODULE_ENET_ENABLED -DMODULE_ETC_ENABLED -DMODULE_FBX_ENABLED -Imodules/fbx -Ithirdparty/libpng -Ithirdparty/glad -Ithirdparty/zstd -Ithirdparty/zlib -Iplatform/osx -I. modules/fbx/fbx_parser/FBXParser.cpp |
Ah found out why the options are different.
These implies that at least one CI should build with |
The |
Thanks! |
Oh, OK. When I was building it before (before == several months ago) with Anyway, after the three fixes I PR-ed, it compiles with it on for me again. |
Fixes several instances of error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers]
This looks like it was fixed in 6607fc7 when FBX was merged into the 4.0 master branch:
"- fixed const correctness with C++/C version change"