Diff of the two buildlogs: -- --- b1/build.log 2024-11-05 16:45:22.436208321 +0000 +++ b2/build.log 2024-11-05 16:50:36.293002423 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Nov 5 04:41:49 -12 2024 -I: pbuilder-time-stamp: 1730824909 +I: Current time: Tue Dec 9 13:08:26 +14 2025 +I: pbuilder-time-stamp: 1765235306 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -36,52 +36,84 @@ dpkg-source: info: applying 40_mstop_movies.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1368545/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3355574/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 8 23:08 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/3355574/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3355574/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='db9100bfa16c4a419f4e61770c818796' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1368545' - PS1='# ' - PS2='> ' + INVOCATION_ID=aea754f280054d8aad7d465919220942 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3355574 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.AdelwFvH/pbuilderrc_wnTU --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.AdelwFvH/b1 --logfile b1/build.log pymol_3.0.0+dfsg-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.AdelwFvH/pbuilderrc_lfuq --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.AdelwFvH/b2 --logfile b2/build.log pymol_3.0.0+dfsg-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.1.0-26-cloud-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-26-cloud-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1368545/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3355574/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -1402,8 +1434,8 @@ Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Nov 5 16:42:29 UTC 2024. -Universal Time is now: Tue Nov 5 16:42:29 UTC 2024. +Local time is now: Mon Dec 8 23:09:07 UTC 2025. +Universal Time is now: Mon Dec 8 23:09:07 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:arm64 (1.17.0-2+b1) ... @@ -1676,7 +1708,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/pymol-3.0.0+dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../pymol_3.0.0+dfsg-1_source.changes +I: user script /srv/workspace/pbuilder/3355574/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3355574/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/pymol-3.0.0+dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../pymol_3.0.0+dfsg-1_source.changes dpkg-buildpackage: info: source package pymol dpkg-buildpackage: info: source version 3.0.0+dfsg-1 dpkg-buildpackage: info: source distribution unstable @@ -1704,6 +1740,76 @@ I: pybuild base:311: python3.12 setup.py config dh_auto_build -O--buildsystem=pybuild I: pybuild base:311: /usr/bin/python3 setup.py build +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp: In function 'int read_bgf_timestep(void*, int, molfile_timestep_t*)': +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:243:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 243 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:252:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 252 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp: In function 'int read_bgf_bonds_aux(void*, int*, int**, int**, float**)': +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:328:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 328 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:346:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 346 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:355:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 355 | fgets(nextline, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:419:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 419 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp: In function 'int read_bgf_structure(void*, int*, molfile_atom_t*)': +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:194:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 194 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:203:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 203 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp: In function 'void* open_bgf_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:59:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 59 | fgets(line, LINESIZE, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_config_structure': +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:292:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 292 | if (NULL == fgets(fbuffer, 1024, data->file)) + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:295:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 295 | if (NULL == fgets(fbuffer, 1024, data->file)) + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/rst7plugin.c: In function 'open_rst_read': +contrib/uiuc/plugins/molfile_plugin/src/rst7plugin.c:48:11: warning: variable 'timesteprst' set but not used [-Wunused-but-set-variable] + 48 | double timesteprst; + | ^~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c: In function 'PlugIOManagerInitAll': +contrib/uiuc/plugins/molfile_plugin/src/rst7plugin.c:67:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 67 | fgets(title, 82, fd); + | ^~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c:271:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 271 | if(ok) ok = ok && (molfile_xyzplugin_init() == VMDPLUGIN_SUCCESS); + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c:273:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 273 | if(ok) { + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_config_timestep': +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:669:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 669 | fgets(fbuffer, 1024, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_timestep': +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:554:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 554 | fgets(fbuffer, 1024, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c: In function 'PlugIOManagerFreeAll': +contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c:411:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 411 | if(ok) ok = ok && (molfile_xyzplugin_fini() == VMDPLUGIN_SUCCESS); + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c:413:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 413 | return ok; + | ^~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/rst7plugin.c:70:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 70 | fgets(line, 82, fd); + | ^~~~~~~~~~~~~~~~~~~ In file included from contrib/uiuc/plugins/molfile_plugin/src/parmplugin.cpp:24: contrib/uiuc/plugins/molfile_plugin/src/ReadPARM.h: In member function 'int {anonymous}::ReadPARM::readparm(FILE*)': contrib/uiuc/plugins/molfile_plugin/src/ReadPARM.h:435:17: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] @@ -1764,96 +1870,9 @@ 869 | &prm->Xcap, &prm->Ycap, &prm->Zcap); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_config_structure': -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:292:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 292 | if (NULL == fgets(fbuffer, 1024, data->file)) - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:295:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 295 | if (NULL == fgets(fbuffer, 1024, data->file)) - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_config_timestep': -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:669:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 669 | fgets(fbuffer, 1024, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_timestep': -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:554:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 554 | fgets(fbuffer, 1024, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/rst7plugin.c: In function 'open_rst_read': -contrib/uiuc/plugins/molfile_plugin/src/rst7plugin.c:48:11: warning: variable 'timesteprst' set but not used [-Wunused-but-set-variable] - 48 | double timesteprst; - | ^~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/rst7plugin.c:67:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 67 | fgets(title, 82, fd); - | ^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/rst7plugin.c:70:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 70 | fgets(line, 82, fd); - | ^~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c: In function 'PlugIOManagerInitAll': -contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c:271:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 271 | if(ok) ok = ok && (molfile_xyzplugin_init() == VMDPLUGIN_SUCCESS); - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c:273:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 273 | if(ok) { - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c: In function 'PlugIOManagerFreeAll': -contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c:411:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 411 | if(ok) ok = ok && (molfile_xyzplugin_fini() == VMDPLUGIN_SUCCESS); - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/PlugIOManagerInit.c:413:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 413 | return ok; - | ^~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp: In function 'int read_bgf_timestep(void*, int, molfile_timestep_t*)': -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:243:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 243 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:252:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 252 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp: In function 'int read_bgf_bonds_aux(void*, int*, int**, int**, float**)': -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:328:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 328 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:346:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 346 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:355:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 355 | fgets(nextline, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:419:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 419 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp: In function 'int read_bgf_structure(void*, int*, molfile_atom_t*)': -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:194:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 194 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:203:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 203 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp: In function 'void* open_bgf_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/bgfplugin.cpp:59:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 59 | fgets(line, LINESIZE, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_config_structure': contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:362:5: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 4095 [-Wstringop-truncation] 362 | strncpy(atom->name, buf, sizeof(atom->name)); | ^ -contrib/uiuc/plugins/molfile_plugin/src/uhbdplugin.cpp: In function 'void* open_uhbd_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/uhbdplugin.cpp:102:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 102 | fread(&headersize, sizeof(int), 1, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_structure': -contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:267:5: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 4095 [-Wstringop-truncation] - 267 | strncpy(atom->name, buf, sizeof(atom->name)); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/ccp4plugin.cpp: In function 'void* open_ccp4_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/ccp4plugin.cpp:304:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 304 | fgets(symData, 81, fd); - | ~~~~~^~~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/gromacsplugin.cpp:30: -contrib/uiuc/plugins/molfile_plugin/src/Gromacs.h: In function 'int mdio_readline(md_file*, char*, int, int)': -contrib/uiuc/plugins/molfile_plugin/src/Gromacs.h:426:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 426 | fgets(buf, n, mf->f); - | ~~~~~^~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/namdbinplugin.c: In function 'read_next_timestep': contrib/uiuc/plugins/molfile_plugin/src/namdbinplugin.c:103:10: warning: variable 'numatoms' set but not used [-Wunused-but-set-variable] 103 | int i, numatoms; @@ -1866,6 +1885,58 @@ contrib/uiuc/plugins/molfile_plugin/src/namdbinplugin.c:78:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 78 | fread(&filen, sizeof(namdbin_int32), 1, fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/fs4plugin.cpp: In function 'void* open_fs4_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/fs4plugin.cpp:79:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 79 | fread(&dataBegin, sizeof(int), 1, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'abinit_readline': +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:279:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 279 | for (i = 0; i < strlen(line); ++i) { + | ^ +In file included from contrib/uiuc/plugins/molfile_plugin/src/gromacsplugin.cpp:30: +contrib/uiuc/plugins/molfile_plugin/src/Gromacs.h: In function 'int mdio_readline(md_file*, char*, int, int)': +contrib/uiuc/plugins/molfile_plugin/src/Gromacs.h:426:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 426 | fgets(buf, n, mf->f); + | ~~~~~^~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/ccp4plugin.cpp: In function 'void* open_ccp4_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/ccp4plugin.cpp:304:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 304 | fgets(symData, 81, fd); + | ~~~~~^~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'DEN_read_volumetric_data': +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:970:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] + 970 | fread(recordmarker, 1, data->hdr->bintype.recordmarker, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:971:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] + 971 | fread(recordmarker, 1, data->hdr->bintype.recordmarker, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'POT_read_volumetric_data': +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:1113:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] + 1113 | fread(recordmarker, 1, data->hdr->bintype.recordmarker, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:1114:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] + 1114 | fread(recordmarker, 1, data->hdr->bintype.recordmarker, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c: In function 'read_dlpoly_structure': +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'abinit_header': +contrib/uiuc/plugins/molfile_plugin/src/uhbdplugin.cpp: In function 'void* open_uhbd_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/uhbdplugin.cpp:102:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 102 | fread(&headersize, sizeof(int), 1, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/dlpolyplugin.c:267:5: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 4095 [-Wstringop-truncation] + 267 | strncpy(atom->name, buf, sizeof(atom->name)); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:1511:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] + 1511 | fread(skip, 1, 8, fp); + | ^~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'GEO_read_next_timestep': +contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:619:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] + 619 | fscanf(data->file, "%*s %f %f %f", &x, &y, &z); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:70: +contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h: At top level: +contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] + 160 | static int get_pte_idx_from_string(const char *label) { + | ^~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/pltplugin.cpp: In function 'void* open_plt_read(const char*, const char*, int*)': contrib/uiuc/plugins/molfile_plugin/src/pltplugin.cpp:69:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 69 | fread(intHeader, sizeof(int), 5, fd); @@ -1873,10 +1944,14 @@ contrib/uiuc/plugins/molfile_plugin/src/pltplugin.cpp:82:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 82 | fread(floatHeader, sizeof(float), 6, fd); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/fs4plugin.cpp: In function 'void* open_fs4_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/fs4plugin.cpp:79:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 79 | fread(&dataBegin, sizeof(int), 1, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/netcdfplugin.c: In function 'read_mmtk_cdf_structure': +contrib/uiuc/plugins/molfile_plugin/src/netcdfplugin.c:730:15: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 730 | if (len > sizeof(name)) { + | ^ +contrib/uiuc/plugins/molfile_plugin/src/netcdfplugin.c: In function 'read_mmtk_cdf_timestep': +contrib/uiuc/plugins/molfile_plugin/src/netcdfplugin.c:1060:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 1060 | for (i=0; i<(3 * mmtk->atom_numberdim); i++) { + | ^ contrib/uiuc/plugins/molfile_plugin/src/mdfplugin.cpp: In function 'int read_mdf_bonds(void*, int*, int**, int**, float**, int**, int*, char***)': contrib/uiuc/plugins/molfile_plugin/src/mdfplugin.cpp:278:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 278 | fgets(line, LINESIZE, mdf->file); @@ -1907,21 +1982,38 @@ contrib/uiuc/plugins/molfile_plugin/src/mdfplugin.cpp:183:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 183 | fgets(line, LINESIZE, fd); | ~~~~~^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'abinit_readline': -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:279:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 279 | for (i = 0; i < strlen(line); ++i) { - | ^ +In file included from contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:160: +contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'angular_momentum_expon': +contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:545:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 545 | for (i=0; ifile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'DEN_read_volumetric_data': -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:970:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 970 | fread(recordmarker, 1, data->hdr->bintype.recordmarker, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:971:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 971 | fread(recordmarker, 1, data->hdr->bintype.recordmarker, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/vasp5xdatcarplugin.c: In function 'read_vasp5xdatcar_structure': contrib/uiuc/plugins/molfile_plugin/src/vasp5xdatcarplugin.c:174:27: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 174 | for (i = 0; i < 2; ++i) fgets(lineptr, LINESIZE, data->file); @@ -1939,7 +2031,6 @@ 204 | for (i = 0; i < 8; ++i) fgets(lineptr, LINESIZE, data->file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/vasp5xdatcarplugin.c: In function 'open_vasp5xdatcar_read': -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'POT_read_volumetric_data': contrib/uiuc/plugins/molfile_plugin/src/vasp5xdatcarplugin.c:69:27: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 69 | for (i = 0; i < 5; ++i) fgets(lineptr, LINESIZE, data->file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1951,56 +2042,81 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from contrib/uiuc/plugins/molfile_plugin/src/vasp5xdatcarplugin.c:40: contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h: At top level: -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:1113:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 1113 | fread(recordmarker, 1, data->hdr->bintype.recordmarker, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] - 160 | static int get_pte_idx_from_string(const char *label) { - | ^~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:1114:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 1114 | fread(recordmarker, 1, data->hdr->bintype.recordmarker, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'abinit_header': -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:1511:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 1511 | fread(skip, 1, 8, fp); - | ^~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c: In function 'GEO_read_next_timestep': -contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:619:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] - 619 | fscanf(data->file, "%*s %f %f %f", &x, &y, &z); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/abinitplugin.c:70: -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h: At top level: -contrib/uiuc/plugins/molfile_plugin/src/netcdfplugin.c: In function 'read_mmtk_cdf_structure': -contrib/uiuc/plugins/molfile_plugin/src/netcdfplugin.c:730:15: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] - 730 | if (len > sizeof(name)) { - | ^ contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] 160 | static int get_pte_idx_from_string(const char *label) { | ^~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/netcdfplugin.c: In function 'read_mmtk_cdf_timestep': -contrib/uiuc/plugins/molfile_plugin/src/netcdfplugin.c:1060:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 1060 | for (i=0; i<(3 * mmtk->atom_numberdim); i++) { - | ^ -contrib/uiuc/plugins/molfile_plugin/src/dsn6plugin.cpp: In function 'int read_dsn6_data(void*, int, float*, float*)': -contrib/uiuc/plugins/molfile_plugin/src/dsn6plugin.cpp:233:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 233 | fread(brick, sizeof(char), 512, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/dsn6plugin.cpp: In function 'void* open_dsn6_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/dsn6plugin.cpp:91:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 91 | fread(fileHeader, sizeof(short), 19, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/binposplugin.c: In function 'open_binpos_read': -contrib/uiuc/plugins/molfile_plugin/src/binposplugin.c:64:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 64 | fread(magicchar,sizeof(char),4,fd); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/binposplugin.c:72:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 72 | fread(&igarb,sizeof(int),1,fd); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:160: -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'angular_momentum_expon': -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:545:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 545 | for (i=0; ifile); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:289:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 289 | fgets(line, LINESIZE, mol2->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp: In function 'int read_mol2_bonds_aux(void*, int*, int**, int**, float**)': +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:199:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 199 | fgets(line, LINESIZE, mol2->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:209:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 209 | fgets(line, LINESIZE, mol2->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp: In function 'int read_mol2(void*, int*, molfile_atom_t*)': +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:127:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 127 | fgets(line, LINESIZE, mol2->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:138:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 138 | fgets(line, LINESIZE, mol2->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp: In function 'void* open_mol2_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:74:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 74 | fgets(line, LINESIZE, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:81:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 81 | fgets(line, LINESIZE, fd); // Read and ignore the mol_name + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:82:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 82 | fgets(line, LINESIZE, fd); // Read the molecule info + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:91:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 91 | fgets(line, LINESIZE, fd); // Read and ignore the mol_type + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:92:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 92 | fgets(line, LINESIZE, fd); // Read the charge_type + | ~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from contrib/uiuc/plugins/molfile_plugin/src/plyplugin.cpp:30: contrib/uiuc/plugins/molfile_plugin/src/ply_c.h: In function 'void put_element_ply(PlyFile*, void*)': contrib/uiuc/plugins/molfile_plugin/src/ply_c.h:459:7: warning: unused variable 'i' [-Wunused-variable] @@ -2014,14 +2130,6 @@ contrib/uiuc/plugins/molfile_plugin/src/ply_c.h:1541:7: warning: unused variable 'i' [-Wunused-variable] 1541 | int i,j,k; | ^ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'have_gamess': -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1106:8: warning: variable 'word' set but not used [-Wunused-but-set-variable] - 1106 | char word[3][BUFSIZ]; - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_basis_stats': -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:2264:8: warning: variable 'word' set but not used [-Wunused-but-set-variable] - 2264 | char word[7][BUFSIZ]; - | ^~~~ contrib/uiuc/plugins/molfile_plugin/src/ply_c.h:1629:13: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1629 | fread (&len, sizeof(int), 1, fp); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2053,86 +2161,14 @@ contrib/uiuc/plugins/molfile_plugin/src/ply_c.h:2099:13: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 2099 | fread (ptr, 8, 1, fp); | ~~~~~~^~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_wavefunction': -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:3573:8: warning: variable 'word' set but not used [-Wunused-but-set-variable] - 3573 | char word[6][BUFSIZ]; - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp: In function 'int read_mol2_timestep(void*, int, molfile_timestep_t*)': -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:275:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 275 | fgets(line, LINESIZE, mol2->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:289:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 289 | fgets(line, LINESIZE, mol2->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp: In function 'int read_mol2_bonds_aux(void*, int*, int**, int**, float**)': -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:199:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 199 | fgets(line, LINESIZE, mol2->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'eatline': -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:209:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 209 | fgets(line, LINESIZE, mol2->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp: In function 'int read_mol2(void*, int*, molfile_atom_t*)': -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:127:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 127 | fgets(line, LINESIZE, mol2->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:138:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 138 | fgets(line, LINESIZE, mol2->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:840:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 840 | fgets(readbuf, 1024, fd); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp: In function 'void* open_mol2_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:74:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 74 | fgets(line, LINESIZE, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:81:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 81 | fgets(line, LINESIZE, fd); // Read and ignore the mol_name - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:82:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 82 | fgets(line, LINESIZE, fd); // Read the molecule info - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:91:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 91 | fgets(line, LINESIZE, fd); // Read and ignore the mol_type - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/mol2plugin.cpp:92:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 92 | fgets(line, LINESIZE, fd); // Read the charge_type - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: At top level: -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1002:13: warning: 'print_input_data' defined but not used [-Wunused-function] - 1002 | static void print_input_data(qmdata_t *data) { - | ^~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:162: -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:133:12: warning: 'get_pte_idx' defined but not used [-Wunused-function] - 133 | static int get_pte_idx(const char *label) - | ^~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:109:14: warning: 'get_pte_vdw_radius' defined but not used [-Wunused-function] - 109 | static float get_pte_vdw_radius(const int idx) - | ^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:102:14: warning: 'get_pte_mass' defined but not used [-Wunused-function] - 102 | static float get_pte_mass(const int idx) - | ^~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:95:20: warning: 'get_pte_label' defined but not used [-Wunused-function] - 95 | static const char *get_pte_label(const int idx) - | ^~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:1097:13: warning: 'whereami' defined but not used [-Wunused-function] - 1097 | static void whereami(FILE *file) { - | ^~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:1077:13: warning: 'thisline' defined but not used [-Wunused-function] - 1077 | static void thisline(FILE *file) { - | ^~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:1028:12: warning: 'fpexpftoc' defined but not used [-Wunused-function] - 1028 | static int fpexpftoc(char *ftocstr) { - | ^~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:901:14: warning: 'strtoupper' defined but not used [-Wunused-function] - 901 | static char *strtoupper(char *s) { - | ^~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:895:12: warning: 'iswhiteline' defined but not used [-Wunused-function] - 895 | static int iswhiteline(char *s) { - | ^~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:585:13: warning: 'print_matrix4' defined but not used [-Wunused-function] - 585 | static void print_matrix4(const float mat[16]) { - | ^~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/dsn6plugin.cpp: In function 'int read_dsn6_data(void*, int, float*, float*)': +contrib/uiuc/plugins/molfile_plugin/src/dsn6plugin.cpp:233:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 233 | fread(brick, sizeof(char), 512, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/dsn6plugin.cpp: In function 'void* open_dsn6_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/dsn6plugin.cpp:91:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 91 | fread(fileHeader, sizeof(short), 19, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/vaspchgcarplugin.c: In function 'read_vaspchgcar_data': contrib/uiuc/plugins/molfile_plugin/src/vaspchgcarplugin.c:237:60: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 237 | for (n = 0; n < data->numatoms + data->version + 5; ++n) fgets(lineptr, LINESIZE, data->file); @@ -2175,11 +2211,6 @@ contrib/uiuc/plugins/molfile_plugin/src/ply_c.h:1333:26: note: destination object of size 0 allocated by 'malloc' 1333 | line = (char *) malloc (sizeof(char) * len); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/moldenplugin.c:49: -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'angular_momentum_expon': -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:545:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 545 | for (i=0; ibasis_string, data->basis_string, @@ -2193,10 +2224,19 @@ contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:622:3: warning: '__builtin_strncpy' output may be truncated copying 81 bytes from a string of length 8191 [-Wstringop-truncation] 622 | strncpy(sys_data->version_string, data->version_string, | ^ +In file included from contrib/uiuc/plugins/molfile_plugin/src/moldenplugin.c:49: +contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'angular_momentum_expon': +contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:545:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 545 | for (i=0; ifile, " Ene= %f\n", &orbenergy); @@ -2250,10 +2290,6 @@ contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:95:20: warning: 'get_pte_label' defined but not used [-Wunused-function] 95 | static const char *get_pte_label(const int idx) | ^~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/spiderplugin.cpp: In function 'int read_spider_data(void*, int, float*, float*)': -contrib/uiuc/plugins/molfile_plugin/src/spiderplugin.cpp:286:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 286 | fread(datablock, total * sizeof(float), 1, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_coordinates': contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1618:5: warning: '__builtin_strncpy' output may be truncated copying 11 bytes from a string of length 8191 [-Wstringop-truncation] 1618 | strncpy(atm->type, atname, sizeof(atm->type)); @@ -2292,13 +2328,37 @@ contrib/uiuc/plugins/molfile_plugin/src/moldenplugin.c:326:7: warning: '__builtin_strncpy' output may be truncated copying 11 bytes from a string of length 1023 [-Wstringop-truncation] 326 | strncpy(data->atoms[i].type, atname, sizeof(data->atoms[i].type)); | ^ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_basis_options': -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1422:5: warning: '__builtin___strncat_chk' output may be truncated copying 1 byte from a string of length 9 [-Wstringop-truncation] - 1422 | strncat(data->basis_string, &data->gbasis[3], 1); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1411:5: warning: '__builtin___strncat_chk' output may be truncated copying 1 byte from a string of length 9 [-Wstringop-truncation] - 1411 | strncat(data->basis_string, &data->gbasis[2], 1); - | ^ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp: In function 'int read_brix_data(void*, int, float*, float*)': +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:247:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 247 | fread(brick, sizeof(char), 512, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp: In function 'void* open_brix_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:79:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 79 | fscanf(fd, "%3s", keyWord); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:86:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 86 | fscanf(fd, " %s %d %d %d", keyWord, &org_x, &org_y, &org_z); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:93:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 93 | fscanf(fd, " %s %d %d %d", keyWord, &ext_x, &ext_y, &ext_z); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:100:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 100 | fscanf(fd, " %s %f %f %f", keyWord, &grid_x, &grid_y, &grid_z); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:109:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 109 | fscanf(fd, " %s %f %f %f %f %f %f", keyWord, + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 110 | &cell_x, &cell_y, &cell_z, &cell_alpha, &cell_beta, &cell_gamma); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:123:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 123 | fscanf(fd, " %s %f", keyWord, &prod); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:128:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 128 | fscanf(fd, " %s %f", keyWord, &plus); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:135:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 135 | fscanf(fd, " %s %f", keyWord, &sigma); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/vaspparchgplugin.c: In function 'read_vaspparchg_data': contrib/uiuc/plugins/molfile_plugin/src/vaspparchgplugin.c:238:60: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 238 | for (n = 0; n < data->numatoms + data->version + 5; ++n) fgets(lineptr, LINESIZE, data->file); @@ -2331,59 +2391,6 @@ contrib/uiuc/plugins/molfile_plugin/src/vaspplugin.h:111:13: warning: 'vasp_timestep_unitcell' defined but not used [-Wunused-function] 111 | static void vasp_timestep_unitcell(molfile_timestep_t *ts, vasp_plugindata_t *data) | ^~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp: In function 'int read_rawgraphics(void*, int*, const molfile_graphics_t**)': -contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:96:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 96 | fgets(line, 80, infile); - | ~~~~~^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:104:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 104 | fgets(line, 80, infile); - | ~~~~~^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:119:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 119 | fgets(line, 80, infile); - | ~~~~~^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:131:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 131 | fgets(line, 80, infile); - | ~~~~~^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:153:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 153 | fgets(line, 80, infile); - | ~~~~~^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:162:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 162 | fgets(line, 80, infile); - | ~~~~~^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:171:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 171 | fgets(line, 80, infile); - | ~~~~~^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp: In function 'int read_brix_data(void*, int, float*, float*)': -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:247:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 247 | fread(brick, sizeof(char), 512, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp: In function 'void* open_brix_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:79:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 79 | fscanf(fd, "%3s", keyWord); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:86:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 86 | fscanf(fd, " %s %d %d %d", keyWord, &org_x, &org_y, &org_z); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:93:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 93 | fscanf(fd, " %s %d %d %d", keyWord, &ext_x, &ext_y, &ext_z); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:100:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 100 | fscanf(fd, " %s %f %f %f", keyWord, &grid_x, &grid_y, &grid_z); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:109:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 109 | fscanf(fd, " %s %f %f %f %f %f %f", keyWord, - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 110 | &cell_x, &cell_y, &cell_z, &cell_alpha, &cell_beta, &cell_gamma); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:123:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 123 | fscanf(fd, " %s %f", keyWord, &prod); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:128:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 128 | fscanf(fd, " %s %f", keyWord, &plus); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/brixplugin.cpp:135:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 135 | fscanf(fd, " %s %f", keyWord, &sigma); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/parm7plugin.cpp: In function 'int read_parm7_structure(void*, int*, molfile_atom_t*)': contrib/uiuc/plugins/molfile_plugin/src/parm7plugin.cpp:78:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 78 | fgets(buf, 85, file); @@ -2462,36 +2469,13 @@ contrib/uiuc/plugins/molfile_plugin/src/ReadPARM7.h:97:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 97 | fscanf(file, "%s\n", buf); | ~~~~~~^~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/tinkerplugin.c: In function 'read_tinker_structure': -contrib/uiuc/plugins/molfile_plugin/src/tinkerplugin.c:103:5: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 1023 [-Wstringop-truncation] - 103 | strncpy(atom->name, buffer, sizeof(atom->name)); +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_basis_options': +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1422:5: warning: '__builtin___strncat_chk' output may be truncated copying 1 byte from a string of length 9 [-Wstringop-truncation] + 1422 | strncat(data->basis_string, &data->gbasis[3], 1); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1411:5: warning: '__builtin___strncat_chk' output may be truncated copying 1 byte from a string of length 9 [-Wstringop-truncation] + 1411 | strncat(data->basis_string, &data->gbasis[2], 1); | ^ -In file included from contrib/uiuc/plugins/molfile_plugin/src/pdbplugin.c:32: -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:133:12: warning: 'get_pte_idx' defined but not used [-Wunused-function] - 133 | static int get_pte_idx(const char *label) - | ^~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp: In function 'void* open_cube_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:175:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 175 | fgets(readbuf, 1023, cube->fd); // go on to next line - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:181:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 181 | fgets(readbuf, 1023, cube->fd); // skip second header line - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:326:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 326 | fgets(readbuf, 1023, cube->fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:337:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 337 | fgets(readbuf, 1023, cube->fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:339:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 339 | fscanf(cube->fd, "%d", &cube->nsets); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:344:13: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 344 | fscanf(cube->fd, "%d", &orb); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:349:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 349 | fgets(readbuf, 1023, cube->fd); // gobble up rest of line - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/vaspposcarplugin.c: In function 'write_vaspposcar_timestep': contrib/uiuc/plugins/molfile_plugin/src/vaspposcarplugin.c:360:40: warning: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 360 | strncpy(tmptype, atom->type, sizeof(atom->type)); @@ -2537,58 +2521,28 @@ contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] 160 | static int get_pte_idx_from_string(const char *label) { | ^~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp: In function 'int read_xbgf_timestep(void*, int, molfile_timestep_t*)': -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:288:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 288 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:297:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 297 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp: In function 'int read_xbgf_bonds_aux(void*, int*, int**, int**, float**)': -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:365:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 365 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:387:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 387 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:395:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 395 | fgets(nextline, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:455:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 455 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp: In function 'int read_xbgf_structure(void*, int*, molfile_atom_t*)': -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:241:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 241 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:250:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 250 | fgets(line, LINESIZE, bgf->file); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp: In function 'void* open_xbgf_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:72:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 72 | fgets(line, LINESIZE, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/pdbplugin.c:31: -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h: In function 'read_next_timestep': -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_input_structure': -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:144:5: warning: '__builtin_strncpy' output may be truncated copying 8 bytes from a string of length 52 [-Wstringop-truncation] - 144 | strncpy(numstr, record + 30, 8); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:149:5: warning: '__builtin_strncpy' output may be truncated copying 8 bytes from a string of length 44 [-Wstringop-truncation] - 149 | strncpy(numstr+10, record + 38, 8); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:154:5: warning: '__builtin_strncpy' output may be truncated copying 8 bytes from a string of length 36 [-Wstringop-truncation] - 154 | strncpy(numstr+20, record + 46, 8); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1682:5: warning: '__builtin_strncpy' output may be truncated copying 11 bytes from a string of length 8191 [-Wstringop-truncation] - 1682 | strncpy(atm->type, atname, sizeof(atm->type)); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:159:5: warning: '__builtin_strncpy' output may be truncated copying 6 bytes from a string of length 28 [-Wstringop-truncation] - 159 | strncpy(numstr+30, record + 54, 6); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:164:5: warning: '__builtin_strncpy' output may be truncated copying 6 bytes from a string of length 22 [-Wstringop-truncation] - 164 | strncpy(numstr+40, record + 60, 6); - | ^ +contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp: In function 'int read_rawgraphics(void*, int*, const molfile_graphics_t**)': +contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:96:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 96 | fgets(line, 80, infile); + | ~~~~~^~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:104:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 104 | fgets(line, 80, infile); + | ~~~~~^~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:119:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 119 | fgets(line, 80, infile); + | ~~~~~^~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:131:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 131 | fgets(line, 80, infile); + | ~~~~~^~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:153:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 153 | fgets(line, 80, infile); + | ~~~~~^~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:162:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 162 | fgets(line, 80, infile); + | ~~~~~^~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/stlplugin.cpp:171:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 171 | fgets(line, 80, infile); + | ~~~~~^~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/carplugin.c: In function 'read_car_timestep': contrib/uiuc/plugins/molfile_plugin/src/carplugin.c:326:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 326 | fgets(line, LINESIZE, data->file); @@ -2655,38 +2609,28 @@ contrib/uiuc/plugins/molfile_plugin/src/carplugin.c:245:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 245 | fgets(line, LINESIZE, fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c: In function 'get_atom_radius': -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:166:16: warning: variable 'type' set but not used [-Wunused-but-set-variable] - 166 | char *name, *type; - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:166:9: warning: variable 'name' set but not used [-Wunused-but-set-variable] - 166 | char *name, *type; - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h: In function 'read_pdb_structure': -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:299:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 70 [-Wstringop-truncation] - 299 | strncpy(name, record + 12, 4); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:304:3: warning: '__builtin_strncpy' output may be truncated copying 1 byte from a string of length 66 [-Wstringop-truncation] - 304 | strncpy(altloc, record + 16, 1); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:308:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 65 [-Wstringop-truncation] - 308 | strncpy(resname, record + 17, 4); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:317:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 60 [-Wstringop-truncation] - 317 | strncpy(resid, record + 22, 4); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:159:5: warning: '__builtin_strncpy' output may be truncated copying 6 bytes from a string of length 28 [-Wstringop-truncation] - 159 | strncpy(numstr+30, record + 54, 6); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:164:5: warning: '__builtin_strncpy' output may be truncated copying 6 bytes from a string of length 22 [-Wstringop-truncation] - 164 | strncpy(numstr+40, record + 60, 6); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:330:5: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 10 [-Wstringop-truncation] - 330 | strncpy(segname, record + 72, 4); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:339:5: warning: '__builtin_strncpy' output may be truncated copying 2 bytes from a string of length 6 [-Wstringop-truncation] - 339 | strncpy(elementsymbol, record + 76, 2); - | ^ +contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp: In function 'void* open_cube_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:175:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 175 | fgets(readbuf, 1023, cube->fd); // go on to next line + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:181:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 181 | fgets(readbuf, 1023, cube->fd); // skip second header line + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:326:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 326 | fgets(readbuf, 1023, cube->fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:337:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 337 | fgets(readbuf, 1023, cube->fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:339:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 339 | fscanf(cube->fd, "%d", &cube->nsets); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:344:13: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 344 | fscanf(cube->fd, "%d", &orb); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/cubeplugin.cpp:349:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 349 | fgets(readbuf, 1023, cube->fd); // gobble up rest of line + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/carplugin.c: In function 'read_car_structure': contrib/uiuc/plugins/molfile_plugin/src/carplugin.c:127:29: warning: '%d' directive writing between 1 and 11 bytes into a region of size 8 [-Wformat-overflow=] 127 | sprintf(atom->resname, "%d", resid); @@ -2708,70 +2652,91 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c: In function 'read_pqr_timestep': -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:109:3: warning: '__builtin_strncpy' output may be truncated copying 80 bytes from a string of length 81 [-Wstringop-truncation] - 109 | strncpy(tmp, record, PQR_RECORD_LENGTH); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h: In function 'open_pdb_read': -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:190:5: warning: '__builtin_strncpy' output may be truncated copying 9 bytes from a string of length 32 [-Wstringop-truncation] - 190 | strncpy(date, record + 50, 9); +In file included from contrib/uiuc/plugins/molfile_plugin/src/pdbplugin.c:32: +contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:133:12: warning: 'get_pte_idx' defined but not used [-Wunused-function] + 133 | static int get_pte_idx(const char *label) + | ^~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp: In function 'int read_xbgf_timestep(void*, int, molfile_timestep_t*)': +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:288:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 288 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:297:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 297 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp: In function 'int read_xbgf_bonds_aux(void*, int*, int**, int**, float**)': +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:365:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 365 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:387:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 387 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:395:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 395 | fgets(nextline, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:455:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 455 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp: In function 'int read_xbgf_structure(void*, int*, molfile_atom_t*)': +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:241:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 241 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:250:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 250 | fgets(line, LINESIZE, bgf->file); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp: In function 'void* open_xbgf_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/xbgfplugin.cpp:72:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 72 | fgets(line, LINESIZE, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/tinkerplugin.c: In function 'read_tinker_structure': +contrib/uiuc/plugins/molfile_plugin/src/tinkerplugin.c:103:5: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 1023 [-Wstringop-truncation] + 103 | strncpy(atom->name, buffer, sizeof(atom->name)); | ^ -contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:200:5: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 20 [-Wstringop-truncation] - 200 | strncpy(pdbcode, record + 62, 4); +In file included from contrib/uiuc/plugins/molfile_plugin/src/pdbplugin.c:31: +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h: In function 'read_next_timestep': +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:144:5: warning: '__builtin_strncpy' output may be truncated copying 8 bytes from a string of length 52 [-Wstringop-truncation] + 144 | strncpy(numstr, record + 30, 8); | ^ -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c: In function 'read_pqr_structure': -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:137:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 68 [-Wstringop-truncation] - 137 | strncpy(name, record+12, 4); name[4] = 0; +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:149:5: warning: '__builtin_strncpy' output may be truncated copying 8 bytes from a string of length 44 [-Wstringop-truncation] + 149 | strncpy(numstr+10, record + 38, 8); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:154:5: warning: '__builtin_strncpy' output may be truncated copying 8 bytes from a string of length 36 [-Wstringop-truncation] + 154 | strncpy(numstr+20, record + 46, 8); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:159:5: warning: '__builtin_strncpy' output may be truncated copying 6 bytes from a string of length 28 [-Wstringop-truncation] + 159 | strncpy(numstr+30, record + 54, 6); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:164:5: warning: '__builtin_strncpy' output may be truncated copying 6 bytes from a string of length 22 [-Wstringop-truncation] + 164 | strncpy(numstr+40, record + 60, 6); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h: In function 'read_pdb_structure': +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:299:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 70 [-Wstringop-truncation] + 299 | strncpy(name, record + 12, 4); | ^ -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:138:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 63 [-Wstringop-truncation] - 138 | strncpy(resname, record+17, 4); resname[4] = 0; +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:304:3: warning: '__builtin_strncpy' output may be truncated copying 1 byte from a string of length 66 [-Wstringop-truncation] + 304 | strncpy(altloc, record + 16, 1); | ^ -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:139:3: warning: '__builtin_strncpy' output may be truncated copying 1 byte from a string of length 59 [-Wstringop-truncation] - 139 | strncpy(chain, record+21, 1); chain[1] = 0; +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:308:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 65 [-Wstringop-truncation] + 308 | strncpy(resname, record + 17, 4); | ^ -contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:140:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 58 [-Wstringop-truncation] - 140 | strncpy(resid, record+22, 4); resid[4] = 0; +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:317:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 60 [-Wstringop-truncation] + 317 | strncpy(resid, record + 22, 4); | ^ -In file included from contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:51: -contrib/uiuc/plugins/molfile_plugin/src/fastio.h: In function 'fio_readv': -contrib/uiuc/plugins/molfile_plugin/src/fastio.h:519:14: warning: comparison of integer expressions of different signedness: 'fio_size_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 519 | if (rc != iov[i].iov_len) - | ^~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/jsplugin.c:79: -contrib/uiuc/plugins/molfile_plugin/src/fastio.h: In function 'fio_readv': -contrib/uiuc/plugins/molfile_plugin/src/fastio.h:519:14: warning: comparison of integer expressions of different signedness: 'fio_size_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 519 | if (rc != iov[i].iov_len) - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c: In function 'read_dcdheader': -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:191:57: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] - 191 | } else if (input_integer[0] == 84 && input_integer[1] == dcdcordmagic) { - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:204:54: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] - 204 | if (input_integer[0] == 84 && input_integer[1] == dcdcordmagic) { - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:222:26: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] - 222 | if (input_integer[0] != dcdcordmagic) { - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:399:45: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] - 399 | if ((input_integer[0]+input_integer[1]) != ((*N)-(*NAMNF))*4) { - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:416:45: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] - 416 | if ((input_integer[0]+input_integer[1]) != ((*N)-(*NAMNF))*4) { - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c: In function 'read_dcdstep': +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:159:5: warning: '__builtin_strncpy' output may be truncated copying 6 bytes from a string of length 28 [-Wstringop-truncation] + 159 | strncpy(numstr+30, record + 54, 6); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:164:5: warning: '__builtin_strncpy' output may be truncated copying 6 bytes from a string of length 22 [-Wstringop-truncation] + 164 | strncpy(numstr+40, record + 60, 6); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:330:5: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 10 [-Wstringop-truncation] + 330 | strncpy(segname, record + 72, 4); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/readpdb.h:339:5: warning: '__builtin_strncpy' output may be truncated copying 2 bytes from a string of length 6 [-Wstringop-truncation] + 339 | strncpy(elementsymbol, record + 76, 2); + | ^ contrib/uiuc/plugins/molfile_plugin/src/vaspxdatcarplugin.c: In function 'read_vaspxdatcar_timestep': contrib/uiuc/plugins/molfile_plugin/src/vaspxdatcarplugin.c:283:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 283 | fgets(lineptr, LINESIZE, data->file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:621:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] - 621 | if (tmpbuf[i] != sizeof(float)*N) return DCD_BADFORMAT; - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:625:43: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] - 625 | if ((tmpbuf[2*i]+tmpbuf[2*i+1]) != sizeof(float)*N) return DCD_BADFORMAT; - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:546:16: warning: variable 'readlen' set but not used [-Wunused-but-set-variable] - 546 | fio_size_t readlen; /* number of bytes actually read */ - | ^~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/vaspxdatcarplugin.c: In function 'read_vaspxdatcar_structure': contrib/uiuc/plugins/molfile_plugin/src/vaspxdatcarplugin.c:228:27: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 228 | for (i = 0; i < 4; ++i) fgets(lineptr, LINESIZE, data->file); @@ -2806,28 +2771,86 @@ contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] 160 | static int get_pte_idx_from_string(const char *label) { | ^~~~~~~~~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/basissetplugin.c:42: -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'angular_momentum_expon': -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:545:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 545 | for (i=0; inbonds + bnum; + | ^~~~ +contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp: In function 'bool readRMSDBonds(molfile_atom_t*, pdbxParser*)': +contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:984:7: warning: unused variable 'bondTable' [-Wunused-variable] + 984 | int bondTable[32]; + | ^~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:988:15: warning: unused variable 'j' [-Wunused-variable] + 988 | int i, pos, j, k; + | ^ +contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:991:8: warning: unused variable 'modelNum' [-Wunused-variable] + 991 | char modelNum[8]; + | ^~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:1002:20: warning: unused variable 'atom' [-Wunused-variable] + 1002 | molfile_atom_t * atom; + | ^~~~ +contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp: In function 'void* open_file_write(const char*, const char*, int)': +contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:1409:9: warning: unused variable 'fd' [-Wunused-variable] + 1409 | FILE* fd; + | ^~ +In file included from contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:51: +contrib/uiuc/plugins/molfile_plugin/src/fastio.h: In function 'fio_readv': +contrib/uiuc/plugins/molfile_plugin/src/fastio.h:519:14: warning: comparison of integer expressions of different signedness: 'fio_size_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 519 | if (rc != iov[i].iov_len) + | ^~ +In file included from contrib/uiuc/plugins/molfile_plugin/src/basissetplugin.c:42: +contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'angular_momentum_expon': +contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:545:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 545 | for (i=0; i fw) { - | ^ -In file included from contrib/uiuc/plugins/molfile_plugin/src/psfplugin.c:30: -contrib/uiuc/plugins/molfile_plugin/src/fortread.h: At top level: -contrib/uiuc/plugins/molfile_plugin/src/fortread.h:103:12: warning: 'fortread_4' defined but not used [-Wunused-function] - 103 | static int fortread_4(void *dest, int n, int swap, FILE *fd) { - | ^~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/fortread.h:55:12: warning: 'fort_get_endian_reclen' defined but not used [-Wunused-function] - 55 | static int fort_get_endian_reclen(int reclen, int word0, int word1, - | ^~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/fortread.h:36:12: warning: 'fort_eat_recmark' defined but not used [-Wunused-function] - 36 | static int fort_eat_recmark(FILE *ifp, int recmarklen) { - | ^~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/fortread.h:28: -contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:124:13: warning: 'swap8_aligned' defined but not used [-Wunused-function] - 124 | static void swap8_aligned(void *v, long ndata) { - | ^~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_input_structure': +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1682:5: warning: '__builtin_strncpy' output may be truncated copying 11 bytes from a string of length 8191 [-Wstringop-truncation] + 1682 | strncpy(atm->type, atname, sizeof(atm->type)); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c: In function 'read_dcdheader': +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:191:57: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] + 191 | } else if (input_integer[0] == 84 && input_integer[1] == dcdcordmagic) { + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:204:54: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] + 204 | if (input_integer[0] == 84 && input_integer[1] == dcdcordmagic) { + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:222:26: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] + 222 | if (input_integer[0] != dcdcordmagic) { + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:399:45: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] + 399 | if ((input_integer[0]+input_integer[1]) != ((*N)-(*NAMNF))*4) { + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:416:45: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] + 416 | if ((input_integer[0]+input_integer[1]) != ((*N)-(*NAMNF))*4) { + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c: In function 'read_dcdstep': +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:621:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 621 | if (tmpbuf[i] != sizeof(float)*N) return DCD_BADFORMAT; + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:625:43: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 625 | if ((tmpbuf[2*i]+tmpbuf[2*i+1]) != sizeof(float)*N) return DCD_BADFORMAT; + | ^~ +contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:546:16: warning: variable 'readlen' set but not used [-Wunused-but-set-variable] + 546 | fio_size_t readlen; /* number of bytes actually read */ + | ^~~~~~~ +In file included from contrib/uiuc/plugins/molfile_plugin/src/dcdplugin.c:60: +contrib/uiuc/plugins/molfile_plugin/src/endianswap.h: At top level: contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:96:13: warning: 'swap2_aligned' defined but not used [-Wunused-function] 96 | static void swap2_aligned(void *v, long ndata) { | ^~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:65:13: warning: 'swap8_unaligned' defined but not used [-Wunused-function] - 65 | static void swap8_unaligned(void *v, long ndata) { - | ^~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:46:13: warning: 'swap4_unaligned' defined but not used [-Wunused-function] - 46 | static void swap4_unaligned(void *v, long ndata) { - | ^~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:32:13: warning: 'swap2_unaligned' defined but not used [-Wunused-function] 32 | static void swap2_unaligned(void *v, long ndata) { | ^~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_contrl': -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1981:3: warning: '__builtin_strncpy' specified bound 8192 equals destination size [-Wstringop-truncation] - 1981 | strncpy(data->geometry, trimright(temp+7), sizeof(data->geometry)); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp: In function 'int getUniqueResID(char*, int)': -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:443:7: warning: unused variable 'i' [-Wunused-variable] - 443 | int i, uid; - | ^ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp: In function 'int parseStructureFaster(molfile_atom_t*, int*, pdbxParser*)': -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:484:47: warning: unused variable 'j' [-Wunused-variable] - 484 | int i, count, atomdata, pos, idx, xyzcount, j; - | ^ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:503:8: warning: unused variable 'oldChain' [-Wunused-variable] - 503 | char oldChain[8]; - | ^~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp: In function 'bool readAngleBonds(molfile_atom_t*, pdbxParser*)': -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:803:7: warning: unused variable 'bondTable' [-Wunused-variable] - 803 | int bondTable[32]; - | ^~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:807:15: warning: unused variable 'j' [-Wunused-variable] - 807 | int i, pos, j, k; - | ^ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:811:8: warning: unused variable 'modelNum' [-Wunused-variable] - 811 | char modelNum[8]; - | ^~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:822:20: warning: unused variable 'atom' [-Wunused-variable] - 822 | molfile_atom_t * atom; - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:884:7: warning: unused variable 'test' [-Wunused-variable] - 884 | int test = parser->nbonds + bnum; - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp: In function 'bool readRMSDBonds(molfile_atom_t*, pdbxParser*)': -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:984:7: warning: unused variable 'bondTable' [-Wunused-variable] - 984 | int bondTable[32]; - | ^~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:988:15: warning: unused variable 'j' [-Wunused-variable] - 988 | int i, pos, j, k; - | ^ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:991:8: warning: unused variable 'modelNum' [-Wunused-variable] - 991 | char modelNum[8]; - | ^~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:1002:20: warning: unused variable 'atom' [-Wunused-variable] - 1002 | molfile_atom_t * atom; - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp: In function 'void* open_file_write(const char*, const char*, int)': -contrib/uiuc/plugins/molfile_plugin/src/pdbxplugin.cpp:1409:9: warning: unused variable 'fd' [-Wunused-variable] - 1409 | FILE* fd; - | ^~ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_contrl_firefly': -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1818:3: warning: '__builtin_strncpy' specified bound 8192 equals destination size [-Wstringop-truncation] - 1818 | strncpy(data->geometry, trimright(temp+7), sizeof(data->geometry)); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_proc_mem.isra': -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1279:5: warning: '__builtin_strncpy' output may be truncated copying 256 bytes from a string of length 8191 [-Wstringop-truncation] - 1279 | strncpy(data->memory,&word[2][0],sizeof(data->memory)); - | ^ -contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1272:5: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation] - 1272 | strncpy(data->memory,trimright(temp),sizeof(data->memory)); - | ^ +contrib/uiuc/plugins/molfile_plugin/src/fastio.h:609:12: warning: 'fio_write_str' defined but not used [-Wunused-function] + 609 | static int fio_write_str(fio_fd fd, const char *str) { + | ^~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/fastio.h:605:12: warning: 'fio_read_int32' defined but not used [-Wunused-function] + 605 | static int fio_read_int32(fio_fd fd, int *i) { + | ^~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/fastio.h:459:19: warning: 'fio_readv' defined but not used [-Wunused-function] + 459 | static fio_size_t fio_readv(fio_fd fd, const fio_iovec * iov, int iovcnt) { + | ^~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c: In function 'read_vaspxml_structure': +contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:139:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 139 | fgets(lineptr, LINESIZE, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:144:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 144 | fgets(lineptr, LINESIZE, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c: In function 'open_vaspxml_read': +contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:86:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 86 | fgets(lineptr, LINESIZE, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:92:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 92 | fgets(lineptr, LINESIZE, data->file); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:47: +contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h: At top level: +contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] + 160 | static int get_pte_idx_from_string(const char *label) { + | ^~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c: In function 'get_atom_radius': +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:166:16: warning: variable 'type' set but not used [-Wunused-but-set-variable] + 166 | char *name, *type; + | ^~~~ +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:166:9: warning: variable 'name' set but not used [-Wunused-but-set-variable] + 166 | char *name, *type; + | ^~~~ contrib/uiuc/plugins/molfile_plugin/src/molemeshplugin.cpp: In function 'int read_rawgraphics(void*, int*, const molfile_graphics_t**)': contrib/uiuc/plugins/molfile_plugin/src/molemeshplugin.cpp:91:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 91 | fgets(line, 80, infile); @@ -3012,29 +3004,23 @@ contrib/uiuc/plugins/molfile_plugin/src/molemeshplugin.cpp:256:15: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 256 | fgets(line, 80, infile); | ~~~~~^~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c: In function 'read_vaspxml_structure': -contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:139:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 139 | fgets(lineptr, LINESIZE, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:144:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 144 | fgets(lineptr, LINESIZE, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c: In function 'open_vaspxml_read': -contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:86:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 86 | fgets(lineptr, LINESIZE, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:92:8: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 92 | fgets(lineptr, LINESIZE, data->file); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from contrib/uiuc/plugins/molfile_plugin/src/vaspxmlplugin.c:47: -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h: At top level: -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] - 160 | static int get_pte_idx_from_string(const char *label) { - | ^~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'get_traj_frame.isra': -contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:819:5: warning: '__builtin_strncpy' output may be truncated copying 10 bytes from a string of length 10 [-Wstringop-truncation] - 819 | strncpy((*atoms)[i].type, (*atoms)[indexmap[i]].type, 10); - | ^ +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c: In function 'read_pqr_timestep': +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:109:3: warning: '__builtin_strncpy' output may be truncated copying 80 bytes from a string of length 81 [-Wstringop-truncation] + 109 | strncpy(tmp, record, PQR_RECORD_LENGTH); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c: In function 'read_pqr_structure': +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:137:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 68 [-Wstringop-truncation] + 137 | strncpy(name, record+12, 4); name[4] = 0; + | ^ +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:138:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 63 [-Wstringop-truncation] + 138 | strncpy(resname, record+17, 4); resname[4] = 0; + | ^ +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:139:3: warning: '__builtin_strncpy' output may be truncated copying 1 byte from a string of length 59 [-Wstringop-truncation] + 139 | strncpy(chain, record+21, 1); chain[1] = 0; + | ^ +contrib/uiuc/plugins/molfile_plugin/src/pqrplugin.c:140:3: warning: '__builtin_strncpy' output may be truncated copying 4 bytes from a string of length 58 [-Wstringop-truncation] + 140 | strncpy(resid, record+22, 4); resid[4] = 0; + | ^ contrib/uiuc/plugins/molfile_plugin/src/xsfplugin.cpp: In function 'void eatline(FILE*)': contrib/uiuc/plugins/molfile_plugin/src/xsfplugin.cpp:238:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 238 | fgets(readbuf, 1024, fd); // go on to next line @@ -3064,10 +3050,45 @@ contrib/uiuc/plugins/molfile_plugin/src/xsfplugin.cpp:508:16: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 508 | fgets(readbuf, 256, xsf->fd); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/psfplugin.c: In function 'write_psf_structure': +contrib/uiuc/plugins/molfile_plugin/src/psfplugin.c:782:33: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 782 | if (strlen(atoms[i].type) > fw) { + | ^ +In file included from contrib/uiuc/plugins/molfile_plugin/src/psfplugin.c:30: +contrib/uiuc/plugins/molfile_plugin/src/fortread.h: At top level: +contrib/uiuc/plugins/molfile_plugin/src/fortread.h:103:12: warning: 'fortread_4' defined but not used [-Wunused-function] + 103 | static int fortread_4(void *dest, int n, int swap, FILE *fd) { + | ^~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/fortread.h:55:12: warning: 'fort_get_endian_reclen' defined but not used [-Wunused-function] + 55 | static int fort_get_endian_reclen(int reclen, int word0, int word1, + | ^~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/fortread.h:36:12: warning: 'fort_eat_recmark' defined but not used [-Wunused-function] + 36 | static int fort_eat_recmark(FILE *ifp, int recmarklen) { + | ^~~~~~~~~~~~~~~~ +In file included from contrib/uiuc/plugins/molfile_plugin/src/fortread.h:28: +contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:124:13: warning: 'swap8_aligned' defined but not used [-Wunused-function] + 124 | static void swap8_aligned(void *v, long ndata) { + | ^~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:96:13: warning: 'swap2_aligned' defined but not used [-Wunused-function] + 96 | static void swap2_aligned(void *v, long ndata) { + | ^~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:65:13: warning: 'swap8_unaligned' defined but not used [-Wunused-function] + 65 | static void swap8_unaligned(void *v, long ndata) { + | ^~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:46:13: warning: 'swap4_unaligned' defined but not used [-Wunused-function] + 46 | static void swap4_unaligned(void *v, long ndata) { + | ^~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/endianswap.h:32:13: warning: 'swap2_unaligned' defined but not used [-Wunused-function] + 32 | static void swap2_unaligned(void *v, long ndata) { + | ^~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/vtfplugin.c: In function 'vtf_read_bonds': contrib/uiuc/plugins/molfile_plugin/src/vtfplugin.c:147:48: warning: '%s' directive argument is null [-Wformat-overflow=] 147 | sprintf(message, "vtfplugin:%d: error: %s: \"%s\"\n", | ^~ +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_contrl': +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1981:3: warning: '__builtin_strncpy' specified bound 8192 equals destination size [-Wstringop-truncation] + 1981 | strncpy(data->geometry, trimright(temp+7), sizeof(data->geometry)); + | ^ contrib/uiuc/plugins/molfile_plugin/src/vtfplugin.c: In function 'vtf_open_file_read': contrib/uiuc/plugins/molfile_plugin/src/vtfplugin.c:538:9: warning: '__builtin___strncat_chk' output may be truncated copying 200 bytes from a string of length 254 [-Wstringop-truncation] 538 | strncat(msg, keyword, 200); @@ -3075,21 +3096,36 @@ contrib/uiuc/plugins/molfile_plugin/src/vtfplugin.c:629:7: warning: '__builtin___strncat_chk' output may be truncated copying 200 bytes from a string of length 254 [-Wstringop-truncation] 629 | strncat(msg, keyword, 200); | ^ -In file included from contrib/uiuc/plugins/molfile_plugin/src/xyzplugin.c:57: -contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] - 160 | static int get_pte_idx_from_string(const char *label) { - | ^~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_contrl_firefly': +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1818:3: warning: '__builtin_strncpy' specified bound 8192 equals destination size [-Wstringop-truncation] + 1818 | strncpy(data->geometry, trimright(temp+7), sizeof(data->geometry)); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c: In function 'get_proc_mem.isra': +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1279:5: warning: '__builtin_strncpy' output may be truncated copying 256 bytes from a string of length 8191 [-Wstringop-truncation] + 1279 | strncpy(data->memory,&word[2][0],sizeof(data->memory)); + | ^ +contrib/uiuc/plugins/molfile_plugin/src/gamessplugin.c:1272:5: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation] + 1272 | strncpy(data->memory,trimright(temp),sizeof(data->memory)); + | ^ layer0/MemoryUsage.cpp: In function 'size_t pymol::memory_usage()': layer0/MemoryUsage.cpp:38:21: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat=] 38 | std::fscanf(fp, "%*zu%zu", &vmRSS); | ^~~~~~~~~ +layer0/MemoryUsage.cpp:38:16: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 38 | std::fscanf(fp, "%*zu%zu", &vmRSS); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +In file included from contrib/uiuc/plugins/molfile_plugin/src/xyzplugin.c:57: +contrib/uiuc/plugins/molfile_plugin/src/periodic_table.h:160:12: warning: 'get_pte_idx_from_string' defined but not used [-Wunused-function] + 160 | static int get_pte_idx_from_string(const char *label) { + | ^~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/xyzplugin.c: In function 'read_xyz_structure': contrib/uiuc/plugins/molfile_plugin/src/xyzplugin.c:133:7: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 1023 [-Wstringop-truncation] 133 | strncpy(atom->name, buffer, sizeof(atom->name)); | ^ -layer0/MemoryUsage.cpp:38:16: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 38 | std::fscanf(fp, "%*zu%zu", &vmRSS); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h: In function 'get_traj_frame.isra': +contrib/uiuc/plugins/molfile_plugin/src/qmplugin.h:819:5: warning: '__builtin_strncpy' output may be truncated copying 10 bytes from a string of length 10 [-Wstringop-truncation] + 819 | strncpy((*atoms)[i].type, (*atoms)[indexmap[i]].type, 10); + | ^ contrib/uiuc/plugins/molfile_plugin/src/vtkplugin.cpp: In function 'int read_vtk_data_ex(void*, molfile_volumetric_readwrite_t*)': contrib/uiuc/plugins/molfile_plugin/src/vtkplugin.cpp:371:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 371 | fscanf(fd, "%lf %lf %lf", &vx, &vy, &vz); @@ -3098,6 +3134,41 @@ contrib/uiuc/plugins/molfile_plugin/src/vtkplugin.cpp:306:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 306 | fscanf(fd, "%lf %lf %lf", &vx, &vy, &vz); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp: In function 'void DDmkdir(const std::string&, mode_t, int, int)': +contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:714:23: warning: '%03x' directive writing between 3 and 8 bytes into a region of size 6 [-Wformat-overflow=] + 714 | sprintf(sub, "%03x/", i); + | ^~~~ +contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:714:22: note: directive argument in the range [0, 2147483646] + 714 | sprintf(sub, "%03x/", i); + | ^~~~~~~ +In file included from /usr/include/stdio.h:970, + from contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.hxx:56, + from contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:47: +In function 'int sprintf(char*, const char*, ...)', + inlined from 'void DDmkdir(const std::string&, mode_t, int, int)' at contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:714:9: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 5 and 10 bytes into a destination of size 6 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp: In function 'void DDmkdir(const std::string&, mode_t, int, int)': +contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:722:30: warning: '%03x' directive writing between 3 and 8 bytes into a region of size 6 [-Wformat-overflow=] + 722 | sprintf(subsub, "%03x", j); + | ^~~~ +contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:722:29: note: directive argument in the range [0, 2147483646] + 722 | sprintf(subsub, "%03x", j); + | ^~~~~~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'void DDmkdir(const std::string&, mode_t, int, int)' at contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:722:13: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 4 and 9 bytes into a destination of size 6 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/graspplugin.cpp: In function 'void line3(FILE*, GRASSP*)': contrib/uiuc/plugins/molfile_plugin/src/graspplugin.cpp:186:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 186 | fread(line3, 1, 80, infile); @@ -3268,41 +3339,6 @@ contrib/uiuc/plugins/molfile_plugin/src/graspplugin.cpp:398:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 398 | fread(properties, sizeof(float), 3 * nvert, infile); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp: In function 'void DDmkdir(const std::string&, mode_t, int, int)': -contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:714:23: warning: '%03x' directive writing between 3 and 8 bytes into a region of size 6 [-Wformat-overflow=] - 714 | sprintf(sub, "%03x/", i); - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:714:22: note: directive argument in the range [0, 2147483646] - 714 | sprintf(sub, "%03x/", i); - | ^~~~~~~ -In file included from /usr/include/stdio.h:970, - from contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.hxx:56, - from contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:47: -In function 'int sprintf(char*, const char*, ...)', - inlined from 'void DDmkdir(const std::string&, mode_t, int, int)' at contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:714:9: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 5 and 10 bytes into a destination of size 6 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp: In function 'void DDmkdir(const std::string&, mode_t, int, int)': -contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:722:30: warning: '%03x' directive writing between 3 and 8 bytes into a region of size 6 [-Wformat-overflow=] - 722 | sprintf(subsub, "%03x", j); - | ^~~~ -contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:722:29: note: directive argument in the range [0, 2147483646] - 722 | sprintf(subsub, "%03x", j); - | ^~~~~~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'void DDmkdir(const std::string&, mode_t, int, int)' at contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:722:13: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 4 and 9 bytes into a destination of size 6 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp: In function 'std::string framefile(const std::string&, size_t, size_t, int, int)': contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:675:35: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 675 | sprintf(answer, "%03x/", d1); @@ -3336,14 +3372,14 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -contrib/uiuc/plugins/molfile_plugin/src/gridplugin.cpp: In function 'void* open_grid_read(const char*, const char*, int*)': -contrib/uiuc/plugins/molfile_plugin/src/gridplugin.cpp:84:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 84 | fread(&dataBegin, sizeof(int), 1, fd); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/maeffplugin.cpp: In function 'int {anonymous}::write_structure(void*, int, const molfile_atom_t*)': contrib/uiuc/plugins/molfile_plugin/src/maeffplugin.cpp:1904:9: warning: unused variable 'last_ctnumber' [-Wunused-variable] 1904 | int last_ctnumber = -1; | ^~~~~~~~~~~~~ +contrib/uiuc/plugins/molfile_plugin/src/gridplugin.cpp: In function 'void* open_grid_read(const char*, const char*, int*)': +contrib/uiuc/plugins/molfile_plugin/src/gridplugin.cpp:84:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 84 | fread(&dataBegin, sizeof(int), 1, fd); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:71: In function 'void swap4_unaligned(void*, long int)', inlined from 'void {anonymous}::Blob::get_float(float*) const' at contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:615:36, @@ -3576,6 +3612,10 @@ contrib/uiuc/plugins/molfile_plugin/src/dtrplugin.cpp:1494:19: note: at offset [48, 52] into destination object 'nz' of size 4 1494 | int32_t nx, ny, nz; | ^~ +layer0/Texture.cpp: In function 'bool TextureIsCharTextured(PyMOLGlobals*, int, float*)': +layer0/Texture.cpp:130:9: warning: unused variable 'use_shader' [-Wunused-variable] + 130 | short use_shader = (short) SettingGetGlobal_b(G, cSetting_use_shaders); + | ^~~~~~~~~~ contrib/uiuc/plugins/molfile_plugin/src/edmplugin.cpp: In function 'int read_edm_data(void*, int, float*, float*)': contrib/uiuc/plugins/molfile_plugin/src/edmplugin.cpp:240:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 240 | fgets(readbuf, 13, edm->fd); @@ -3584,10 +3624,6 @@ contrib/uiuc/plugins/molfile_plugin/src/edmplugin.cpp:44:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 44 | fgets(readbuf, 1024, fd); // go on to next line | ~~~~~^~~~~~~~~~~~~~~~~~~ -layer0/Texture.cpp: In function 'bool TextureIsCharTextured(PyMOLGlobals*, int, float*)': -layer0/Texture.cpp:130:9: warning: unused variable 'use_shader' [-Wunused-variable] - 130 | short use_shader = (short) SettingGetGlobal_b(G, cSetting_use_shaders); - | ^~~~~~~~~~ In file included from include/tnt/tnt.h:45, from layer0/ccealignmodule.cpp:39: In member function 'void TNT::Array1D::set_(T*, T*, const T&) [with T = double]', @@ -3651,6 +3687,19 @@ | ~~~~~~~~~~~~~~~~~~ 1540 | vert2[2] - mid[2], axis[0], axis[1], axis[2], angle, geometry); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_algobase.h:64, + from /usr/include/c++/14/bits/specfun.h:43, + from /usr/include/c++/14/cmath:3898, + from /usr/include/c++/14/math.h:36, + from layer0/os_std.h:24, + from layer1/Scene.cpp:18: +/usr/include/c++/14/bits/stl_pair.h: In instantiation of 'constexpr std::pair::type>::__type, typename std::__strip_reference_wrapper::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = float&; _T2 = float&; typename __strip_reference_wrapper::type>::__type = float; typename decay<_Tp>::type = float; typename __strip_reference_wrapper::type>::__type = float; typename decay<_Tp2>::type = float]': +layer1/Scene.cpp:1485:24: required from here + 1485 | return std::make_pair(clip.m_front, clip.m_back); + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/14/bits/stl_pair.h:1132:5: note: parameter passing for argument of type 'std::pair' when C++17 is enabled changed to match C++14 in GCC 10.1 + 1132 | make_pair(_T1&& __x, _T2&& __y) + | ^~~~~~~~~ layer2/ObjectMesh.cpp: In member function 'virtual void ObjectMesh::update()': layer2/ObjectMesh.cpp:503:41: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 226 [-Wformat-truncation=] 503 | "ObjectMeshUpdate-Error: map '%s' has been deleted.\n", ms->MapName @@ -3681,19 +3730,6 @@ layer2/ObjectMesh.cpp:329:7: note: in expansion of macro 'PRINTFB' 329 | PRINTFB(I->G, FB_ObjectMesh, FB_Actions) | ^~~~~~~ -In file included from /usr/include/c++/14/bits/stl_algobase.h:64, - from /usr/include/c++/14/bits/specfun.h:43, - from /usr/include/c++/14/cmath:3898, - from /usr/include/c++/14/math.h:36, - from layer0/os_std.h:24, - from layer1/Scene.cpp:18: -/usr/include/c++/14/bits/stl_pair.h: In instantiation of 'constexpr std::pair::type>::__type, typename std::__strip_reference_wrapper::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = float&; _T2 = float&; typename __strip_reference_wrapper::type>::__type = float; typename decay<_Tp>::type = float; typename __strip_reference_wrapper::type>::__type = float; typename decay<_Tp2>::type = float]': -layer1/Scene.cpp:1485:24: required from here - 1485 | return std::make_pair(clip.m_front, clip.m_back); - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/14/bits/stl_pair.h:1132:5: note: parameter passing for argument of type 'std::pair' when C++17 is enabled changed to match C++14 in GCC 10.1 - 1132 | make_pair(_T1&& __x, _T2&& __y) - | ^~~~~~~~~ layer2/ObjectSurface.cpp: In function 'void ObjectSurfaceDump(ObjectSurface*, const char*, int, int)': layer2/ObjectSurface.cpp:269:30: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 235 [-Wformat-truncation=] 269 | " ObjectSurfaceDump: %s written to %s\n", I->Name, fname ENDFB(I->G); @@ -3743,30 +3779,6 @@ layer2/ObjectMolecule.cpp:7602:3: note: in expansion of macro 'PRINTFB' 7602 | PRINTFB(G, FB_ObjectMolecule, FB_Blather) | ^~~~~~~ -layer1/SymOp.cpp: In member function 'std::string pymol::SymOp::to_string() const': -layer1/SymOp.cpp:37:32: warning: '%d' directive output may be truncated writing between 1 and 4 bytes into a region of size between 0 and 5 [-Wformat-truncation=] - 37 | std::snprintf(code, 8, "%u_%d%d%d", index + 1, x + 5, y + 5, z + 5); - | ^~ -layer1/SymOp.cpp:37:26: note: directive argument in the range [-123, 132] - 37 | std::snprintf(code, 8, "%u_%d%d%d", index + 1, x + 5, y + 5, z + 5); - | ^~~~~~~~~~~ -layer1/SymOp.cpp:37:26: note: directive argument in the range [-123, 132] -In file included from /usr/include/stdio.h:970, - from /usr/include/c++/14/cstdio:42, - from /usr/include/c++/14/ext/string_conversions.h:45, - from /usr/include/c++/14/bits/basic_string.h:4154, - from /usr/include/c++/14/string:54, - from layer1/SymOp.h:9, - from layer1/SymOp.cpp:7: -In function 'int snprintf(char*, size_t, const char*, ...)', - inlined from 'std::string pymol::SymOp::to_string() const' at layer1/SymOp.cpp:37:16: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 6 and 17 bytes into a destination of size 8 - 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 69 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 70 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ layer3/Editor.cpp: In function 'void EditorPrepareDrag(PyMOLGlobals*, pymol::CObject*, int, int, int, int)': layer3/Editor.cpp:1935:29: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 236 [-Wformat-truncation=] 1935 | " Editor: grabbing (%s).", name ENDFB(G); @@ -3797,6 +3809,30 @@ layer3/Editor.cpp:341:12: note: 'sprintf' output between 12 and 267 bytes into a destination of size 256 341 | sprintf(buffer, "(byobject %s)", name); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +layer1/SymOp.cpp: In member function 'std::string pymol::SymOp::to_string() const': +layer1/SymOp.cpp:37:32: warning: '%d' directive output may be truncated writing between 1 and 4 bytes into a region of size between 0 and 5 [-Wformat-truncation=] + 37 | std::snprintf(code, 8, "%u_%d%d%d", index + 1, x + 5, y + 5, z + 5); + | ^~ +layer1/SymOp.cpp:37:26: note: directive argument in the range [-123, 132] + 37 | std::snprintf(code, 8, "%u_%d%d%d", index + 1, x + 5, y + 5, z + 5); + | ^~~~~~~~~~~ +layer1/SymOp.cpp:37:26: note: directive argument in the range [-123, 132] +In file included from /usr/include/stdio.h:970, + from /usr/include/c++/14/cstdio:42, + from /usr/include/c++/14/ext/string_conversions.h:45, + from /usr/include/c++/14/bits/basic_string.h:4154, + from /usr/include/c++/14/string:54, + from layer1/SymOp.h:9, + from layer1/SymOp.cpp:7: +In function 'int snprintf(char*, size_t, const char*, ...)', + inlined from 'std::string pymol::SymOp::to_string() const' at layer1/SymOp.cpp:37:16: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 6 and 17 bytes into a destination of size 8 + 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 69 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 70 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ layer2/ObjectMolecule.cpp: In member function 'virtual void ObjectMolecule::update()': layer2/ObjectMolecule.cpp:10629:82: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 181 and 191 [-Wformat-truncation=] 10629 | " ObjectMolecule-DEBUG: updating representations for state %d of \"%s\".\n", @@ -3906,32 +3942,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -layer2/ObjectMap.cpp: In function 'int ObjectMapGRDStrToMap(ObjectMap*, char*, int, int, int)': -layer2/ObjectMap.cpp:4291:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 243 [-Wformat-truncation=] - 4291 | " ObjectMap: %s\n", cc ENDFB(I->G); - | ^~ ~~ -In function 'int snprintf(char*, size_t, const char*, ...)', - inlined from 'int ObjectMapGRDStrToMap(ObjectMap*, char*, int, int, int)' at layer2/ObjectMap.cpp:4290:3: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 14 and 1037 bytes into a destination of size 255 - 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 69 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 70 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -layer2/ObjectMap.cpp: In function 'int ObjectMapGRDStrToMap(ObjectMap*, char*, int, int, int)': -layer2/ObjectMap.cpp:4291:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 243 [-Wformat-truncation=] - 4291 | " ObjectMap: %s\n", cc ENDFB(I->G); - | ^~ ~~ -In function 'int snprintf(char*, size_t, const char*, ...)', - inlined from 'int ObjectMapGRDStrToMap(ObjectMap*, char*, int, int, int)' at layer2/ObjectMap.cpp:4290:3: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 14 and 1037 bytes into a destination of size 255 - 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 69 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 70 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ layer3/Executive.cpp: In function 'pymol::Result<> ExecutiveRemoveAtoms(PyMOLGlobals*, const char*, int)': layer3/Executive.cpp:9017:58: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 207 and 217 [-Wformat-truncation=] 9017 | " Remove: eliminated %d atoms in model \"%s\".\n", @@ -4033,6 +4043,32 @@ layer3/Executive.cpp:12213:11: note: in expansion of macro 'PRINTF' 12213 | PRINTF " Setting: %s set to %s.\n", name, value2 ENDF(G); | ^~~~~~ +layer2/ObjectMap.cpp: In function 'int ObjectMapGRDStrToMap(ObjectMap*, char*, int, int, int)': +layer2/ObjectMap.cpp:4291:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 243 [-Wformat-truncation=] + 4291 | " ObjectMap: %s\n", cc ENDFB(I->G); + | ^~ ~~ +In function 'int snprintf(char*, size_t, const char*, ...)', + inlined from 'int ObjectMapGRDStrToMap(ObjectMap*, char*, int, int, int)' at layer2/ObjectMap.cpp:4290:3: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 14 and 1037 bytes into a destination of size 255 + 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 69 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 70 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +layer2/ObjectMap.cpp: In function 'int ObjectMapGRDStrToMap(ObjectMap*, char*, int, int, int)': +layer2/ObjectMap.cpp:4291:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 243 [-Wformat-truncation=] + 4291 | " ObjectMap: %s\n", cc ENDFB(I->G); + | ^~ ~~ +In function 'int snprintf(char*, size_t, const char*, ...)', + inlined from 'int ObjectMapGRDStrToMap(ObjectMap*, char*, int, int, int)' at layer2/ObjectMap.cpp:4290:3: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 14 and 1037 bytes into a destination of size 255 + 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 69 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 70 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ layer3/Executive.cpp: In function 'int ExecutiveSetSettingFromString(PyMOLGlobals*, int, const char*, const char*, int, int, int)': layer3/Executive.cpp:12145:36: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 245 [-Wformat-truncation=] 12145 | " Setting: %s set for %d atoms in object \"%s\".\n", @@ -4153,23 +4189,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -layer2/ObjectMolecule2.cpp: In function 'int ObjectMoleculeAddPseudoatom(ObjectMolecule*, int, const char*, const char*, const char*, const char*, const char*, const char*, float, int, float, float, const char*, const float*, int, int, int, int)': -layer2/ObjectMolecule2.cpp:335:27: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 238 [-Wformat-truncation=] - 335 | " ObjMol: created %s/%s/%s/%s`%d%c/%s\n", - | ^~ -In file included from /usr/include/stdio.h:970, - from /usr/include/python3.12/Python.h:24, - from layer0/os_python.h:34, - from layer2/ObjectMolecule2.cpp:24: -In function 'int snprintf(char*, size_t, const char*, ...)', - inlined from 'int ObjectMoleculeAddPseudoatom(ObjectMolecule*, int, const char*, const char*, const char*, const char*, const char*, const char*, float, int, float, float, const char*, const float*, int, int, int, int)' at layer2/ObjectMolecule2.cpp:334:7: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 26 and 291 bytes into a destination of size 255 - 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 69 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 70 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ layer3/Executive.cpp: In function 'pymol::Result<> ExecutiveBond(PyMOLGlobals*, const char*, const char*, int, int, int, pymol::zstring_view)': layer3/Executive.cpp:9381:67: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 200 and 210 [-Wformat-truncation=] 9381 | " Valence: %d bond valences adjusted in model \"%s\".\n", cnt, @@ -4198,6 +4217,23 @@ layer3/Executive.cpp:9367:17: note: in expansion of macro 'PRINTFB' 9367 | PRINTFB(G, FB_Editor, FB_Actions) | ^~~~~~~ +layer3/PlugIOManager.cpp: In function 'pymol::CObject* PlugIOManagerLoad(PyMOLGlobals*, pymol::CObject**, const char*, int, int, const char*, int)': +layer3/PlugIOManager.cpp:941:65: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 200 [-Wformat-truncation=] + 941 | " PlugIOManagerLoad: can't load trajectory into object '%s'\n", obj->Name ENDFB(G); + | ^~ +In file included from /usr/include/stdio.h:970, + from /usr/include/python3.12/Python.h:24, + from layer0/os_python.h:34, + from layer3/PlugIOManager.cpp:21: +In function 'int snprintf(char*, size_t, const char*, ...)', + inlined from 'pymol::CObject* PlugIOManagerLoad(PyMOLGlobals*, pymol::CObject**, const char*, int, int, const char*, int)' at layer3/PlugIOManager.cpp:940:7: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 58 and 313 bytes into a destination of size 255 + 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 69 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 70 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ layer3/Executive.cpp: In function 'pymol::Result<> ExecutiveUnsetSetting(PyMOLGlobals*, int, pymol::zstring_view, int, int, int)': layer3/Executive.cpp:12354:68: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 215 [-Wformat-truncation=] 12354 | " Setting: %s unset for %d atoms in object \"%s\".\n", @@ -4311,17 +4347,17 @@ layer3/Executive.cpp:11760:11: note: in expansion of macro 'PRINTF' 11760 | PRINTF " Setting: %s set to %s.\n", name, value ENDF(G); | ^~~~~~ -layer3/PlugIOManager.cpp: In function 'pymol::CObject* PlugIOManagerLoad(PyMOLGlobals*, pymol::CObject**, const char*, int, int, const char*, int)': -layer3/PlugIOManager.cpp:941:65: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 200 [-Wformat-truncation=] - 941 | " PlugIOManagerLoad: can't load trajectory into object '%s'\n", obj->Name ENDFB(G); - | ^~ +layer2/ObjectMolecule2.cpp: In function 'int ObjectMoleculeAddPseudoatom(ObjectMolecule*, int, const char*, const char*, const char*, const char*, const char*, const char*, float, int, float, float, const char*, const float*, int, int, int, int)': +layer2/ObjectMolecule2.cpp:335:27: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 238 [-Wformat-truncation=] + 335 | " ObjMol: created %s/%s/%s/%s`%d%c/%s\n", + | ^~ In file included from /usr/include/stdio.h:970, from /usr/include/python3.12/Python.h:24, from layer0/os_python.h:34, - from layer3/PlugIOManager.cpp:21: + from layer2/ObjectMolecule2.cpp:24: In function 'int snprintf(char*, size_t, const char*, ...)', - inlined from 'pymol::CObject* PlugIOManagerLoad(PyMOLGlobals*, pymol::CObject**, const char*, int, int, const char*, int)' at layer3/PlugIOManager.cpp:940:7: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 58 and 313 bytes into a destination of size 255 + inlined from 'int ObjectMoleculeAddPseudoatom(ObjectMolecule*, int, const char*, const char*, const char*, const char*, const char*, const char*, float, int, float, float, const char*, const float*, int, int, int, int)' at layer2/ObjectMolecule2.cpp:334:7: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output between 26 and 291 bytes into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, @@ -4361,26 +4397,6 @@ layer3/Executive.cpp:9680:3: note: in expansion of macro 'PRINTFB' 9680 | PRINTFB(G, FB_Executive, FB_Actions) | ^~~~~~~ -layer2/ObjectSlice.cpp: In member function 'virtual void ObjectSlice::update()': -layer2/ObjectSlice.cpp:639:42: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 225 [-Wformat-truncation=] - 639 | "ObjectSliceUpdate-Error: map '%s' has been deleted.\n", oss->MapName - | ^~ -In file included from layer2/ObjectSlice.cpp:44: -layer0/Feedback.h:274:15: note: 'snprintf' output between 51 and 306 bytes into a destination of size 255 - 274 | (snprintf)( _FBstr, FEEDBACK_MAX_OUTPUT, - | ^ -layer2/ObjectSlice.cpp:638:9: note: in expansion of macro 'PRINTFB' - 638 | PRINTFB(I->G, FB_ObjectSlice, FB_Errors) - | ^~~~~~~ -layer2/ObjectSlice.cpp:650:39: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] - 650 | " ObjectSlice: updating \"%s\".\n", I->Name ENDFB(I->G); - | ^~ -layer0/Feedback.h:274:15: note: 'snprintf' output between 28 and 283 bytes into a destination of size 255 - 274 | (snprintf)( _FBstr, FEEDBACK_MAX_OUTPUT, - | ^ -layer2/ObjectSlice.cpp:649:11: note: in expansion of macro 'PRINTFB' - 649 | PRINTFB(I->G, FB_ObjectSlice, FB_Blather) - | ^~~~~~~ layer3/Executive.cpp: In function 'int ExecutiveGroup(PyMOLGlobals*, pymol::zstring_view, pymol::zstring_view, int, int)': layer3/Executive.cpp:2266:40: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 235 [-Wformat-truncation=] 2266 | " Executive: adding '%s' to group '%s'.\n", rec.name, rec.group_name @@ -4427,6 +4443,26 @@ layer3/Executive.cpp:5100:9: note: in expansion of macro 'PRINTFB' 5100 | PRINTFB(G, FB_Executive, FB_Errors) | ^~~~~~~ +layer2/ObjectSlice.cpp: In member function 'virtual void ObjectSlice::update()': +layer2/ObjectSlice.cpp:639:42: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 225 [-Wformat-truncation=] + 639 | "ObjectSliceUpdate-Error: map '%s' has been deleted.\n", oss->MapName + | ^~ +In file included from layer2/ObjectSlice.cpp:44: +layer0/Feedback.h:274:15: note: 'snprintf' output between 51 and 306 bytes into a destination of size 255 + 274 | (snprintf)( _FBstr, FEEDBACK_MAX_OUTPUT, + | ^ +layer2/ObjectSlice.cpp:638:9: note: in expansion of macro 'PRINTFB' + 638 | PRINTFB(I->G, FB_ObjectSlice, FB_Errors) + | ^~~~~~~ +layer2/ObjectSlice.cpp:650:39: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] + 650 | " ObjectSlice: updating \"%s\".\n", I->Name ENDFB(I->G); + | ^~ +layer0/Feedback.h:274:15: note: 'snprintf' output between 28 and 283 bytes into a destination of size 255 + 274 | (snprintf)( _FBstr, FEEDBACK_MAX_OUTPUT, + | ^ +layer2/ObjectSlice.cpp:649:11: note: in expansion of macro 'PRINTFB' + 649 | PRINTFB(I->G, FB_ObjectSlice, FB_Blather) + | ^~~~~~~ contrib/champ/os_memory.c: In function 'OSMemoryZero': contrib/champ/os_memory.c:55:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 55 | while(count&&(((int)p)&mask)) { @@ -4571,9 +4607,9 @@ dh_md5sums -O--buildsystem=pybuild dh_builddeb -O--buildsystem=pybuild dpkg-deb: building package 'pymol' in '../pymol_3.0.0+dfsg-1_all.deb'. -dpkg-deb: building package 'python3-pymol' in '../python3-pymol_3.0.0+dfsg-1_arm64.deb'. -dpkg-deb: building package 'pymol-data' in '../pymol-data_3.0.0+dfsg-1_all.deb'. dpkg-deb: building package 'python3-pymol-dbgsym' in '../python3-pymol-dbgsym_3.0.0+dfsg-1_arm64.deb'. +dpkg-deb: building package 'pymol-data' in '../pymol-data_3.0.0+dfsg-1_all.deb'. +dpkg-deb: building package 'python3-pymol' in '../python3-pymol_3.0.0+dfsg-1_arm64.deb'. dpkg-genbuildinfo --build=binary -O../pymol_3.0.0+dfsg-1_arm64.buildinfo dpkg-genchanges --build=binary -O../pymol_3.0.0+dfsg-1_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -4581,12 +4617,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3355574/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3355574/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1368545 and its subdirectories -I: Current time: Tue Nov 5 04:45:21 -12 2024 -I: pbuilder-time-stamp: 1730825121 +I: removing directory /srv/workspace/pbuilder/3355574 and its subdirectories +I: Current time: Tue Dec 9 13:13:34 +14 2025 +I: pbuilder-time-stamp: 1765235614