Closed dandexter closed 4 months ago
Looks like same core issues as #1565
Tested on rocky8, gcc 8.5.0, swig 3.0.2, and clang 16. I didn't see the warning. #1565 confirmed it's no longer an issue with newer clang and was closed. Please let us know if this is still an issue for you.
No further activity, closing it down.
The simulation compiles and at the end when Trick is doing cleanup and compile the Python modules I get this unexpected Python SWIG warning.
OS: Red Hat Enterprise Linux release 8.8 (Ootpa) and Rocky Linux release 8.8 (Green Obsidian) Compiler: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18.0.2) and gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18) Trick: Latest from repo compiled and installed using Trick documentation.
/usr/bin/g++ -I/home/ddexter/projects/TrickHLA/include -I/home/ddexter/projects/TrickHLA/models -DIEEE_1516_2010 -I/home/ddexter/rti/pRTI1516e_v5.5.7.0/include -I. -Wno-deprecated-declarations -DTHLA_CHECK_SEND_AND_RECEIVE_COUNTS -DTHLA_CYCLIC_READ_TIME_STATS -O3 -isystem/home/ddexter/projects/trick/trick_source -isystem/home/ddexter/projects/trick/include -isystem/home/ddexter/projects/trick/include/trick/compat -DTRICK_VER=19 -DTRICK_MINOR=7 -fpic -I/usr/include/udunits2 -DUSE_ER7_UTILS_INTEGRATORS -I../include -isystem/usr/include/python3.6m -isystem/usr/include/python3.6m -Wno-shadow -Wno-missing-field-initializers -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-cast-function-type -Wno-unused-parameter -c -o build/top.o build/top.cpp Compiling Python modules Zipping Python modules into trick.zip /usr/bin/python3 -m compileall -q .trick ln -sf .trick trick zip -rq trick.zip trick rm -f trick build/top.cpp: In function ‘void SWIG_Python_addvarlink(PyObject, char, PyObject ()(), int ()(PyObject))’: build/top.cpp:5995:16: warning: ‘char strncpy(char, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(gv->name,name,size);