Warning: argument unused and warning: #pragma pack modified when compiling Py3.14 (original) (raw)
When I compile Python 3.14 with --tail-call-interp, I get hundreds of warnings I don’t understand.
- Clone GitHub/python/cpython
git checkout 3.14git pullcd cloneOf\cpython\PCbuild
build.bat --pgo --tail-call-interp ^
"/p:PlatformToolset=ClangCL" ^
"/p:LLVMInstallDir=%pathCLang%" ^
"/p:LLVMToolsVersion=%LLVMToolsVersion%" ^
"/p:WholeProgramOptimization=true"
warning : argument unused
I get between 500 and 700 warnings that start with:
clang-cl : warning : argument unused during compilation: '/GL'
Then it says [-Wunused-command-line-argument]. Finally, it says a path and a file name, such as [cloneOf\cpython\PCbuild\_freeze_module.vcxproj].
Is it important?
I can’t figure out where the option /GL is coming from, and I can’t figure out what /GL is supposed to do.
The only thing I have found is that the option -Wno-unused-command-line-argument will allegedly silence the warning, but I can’t even figure out how to pass that switch.
socketmodule.h: warning : #pragma pack modified
I get six (or eight) warnings about modifying the grampa pack.
First, I get:
..\Modules\socketmodule.h(21,11): warning : the current #pragma pack alignment value is modified in the included file [-Wpragma-pack] [C:\Users\hunte\AppData\Local\cpython\PCbuild\_freeze_module.vcxproj]
..\...(21,11): warning : ..._socket.vcxproj]
..\...(21,11): warning : ...pythoncore.vcxproj]
..\...(53,11): warning : ..._freeze_module.vcxproj]
..\...(53,11): warning : ..._socket.vcxproj]
..\...(53,11): warning : ...pythoncore.vcxproj]
Then I get the following, which is different by one file.
..\Modules\socketmodule.h(21,11): warning : the current #pragma pack alignment value is modified in the included file [-Wpragma-pack] [C:\Users\hunte\AppData\Local\cpython\PCbuild\_socket.vcxproj]
..\...(21,11): warning : ..._ssl.vcxproj]
..\...(21,11): warning : ...pythoncore.vcxproj]
..\...(53,11): warning : ..._socket.vcxproj]
..\...(53,11): warning : ..._ssl.vcxproj]
..\...(53,11): warning : ...pythoncore.vcxproj]
Is it important?
I have no idea. Am I supposed to be doing something different?