Diff of the two buildlogs: -- --- b1/build.log 2021-11-30 17:23:06.145656756 +0000 +++ b2/build.log 2021-11-30 17:24:47.070209486 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Nov 30 05:21:14 -12 2021 -I: pbuilder-time-stamp: 1638292874 +I: Current time: Tue Jan 3 13:46:07 +14 2023 +I: pbuilder-time-stamp: 1672703167 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Tue Jan 15 09:04:39 2019 -12 +gpgv: Signature made Wed Jan 16 11:04:39 2019 +14 gpgv: using RSA key 82383CE9165B347C787081A2CBE6BB4E5D9AD3A5 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./cmor_3.4.0-2.dsc @@ -35,136 +35,170 @@ dpkg-source: info: applying kfreebsd_hurd_support.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1379518/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/804211/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-amd64. +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 +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by 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/804211/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/804211/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='8a423f2c02bf4d70bfde4057a09f8b46' - 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='1379518' - PS1='# ' - PS2='> ' + INVOCATION_ID=46a7d9cf8eae48cf98739017f122b624 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-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=804211 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/tmp.0XgEbZYlEY/pbuilderrc_6Hpk --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.0XgEbZYlEY/b1 --logfile b1/build.log cmor_3.4.0-2.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97: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/tmp.0XgEbZYlEY/pbuilderrc_a3Ne --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.0XgEbZYlEY/b2 --logfile b2/build.log cmor_3.4.0-2.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos1-amd64 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.14.0-0.bpo.2-amd64 #1 SMP Debian 5.14.9-2~bpo11+1 (2021-10-10) x86_64 GNU/Linux I: ls -l /bin total 5116 - -rwxr-xr-x 1 root root 1168776 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 14328 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 43744 Feb 28 2019 cat - -rwxr-xr-x 1 root root 64320 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 64288 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 72512 Feb 28 2019 chown - -rwxr-xr-x 1 root root 146880 Feb 28 2019 cp - -rwxr-xr-x 1 root root 121464 Jan 17 2019 dash - -rwxr-xr-x 1 root root 109408 Feb 28 2019 date - -rwxr-xr-x 1 root root 76712 Feb 28 2019 dd - -rwxr-xr-x 1 root root 93744 Feb 28 2019 df - -rwxr-xr-x 1 root root 138856 Feb 28 2019 dir - -rwxr-xr-x 1 root root 84288 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 39520 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 35424 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 68880 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 34896 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 198976 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 98048 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 26696 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 68552 Feb 28 2019 ln - -rwxr-xr-x 1 root root 56760 Jul 26 2018 login - -rwxr-xr-x 1 root root 138856 Feb 28 2019 ls - -rwxr-xr-x 1 root root 108624 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 89088 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 68544 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 43808 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 43008 Jan 9 2019 more - -rwsr-xr-x 1 root root 51280 Jan 9 2019 mount - -rwxr-xr-x 1 root root 14408 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 138728 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 39616 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 47776 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 68416 Feb 28 2019 rm - -rwxr-xr-x 1 root root 47776 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 23312 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Nov 7 09:58 sh -> dash - -rwxr-xr-x 1 root root 39552 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 80672 Feb 28 2019 stty - -rwsr-xr-x 1 root root 63568 Jan 9 2019 su - -rwxr-xr-x 1 root root 35488 Feb 28 2019 sync - -rwxr-xr-x 1 root root 445560 Apr 23 2019 tar - -rwxr-xr-x 1 root root 14440 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 97152 Feb 28 2019 touch - -rwxr-xr-x 1 root root 35424 Feb 28 2019 true - -rwxr-xr-x 1 root root 14328 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 34888 Jan 9 2019 umount - -rwxr-xr-x 1 root root 39584 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 138856 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34896 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/1379518/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1168776 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 14328 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 43744 Mar 1 2019 cat + -rwxr-xr-x 1 root root 64320 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 64288 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 72512 Mar 1 2019 chown + -rwxr-xr-x 1 root root 146880 Mar 1 2019 cp + -rwxr-xr-x 1 root root 121464 Jan 18 2019 dash + -rwxr-xr-x 1 root root 109408 Mar 1 2019 date + -rwxr-xr-x 1 root root 76712 Mar 1 2019 dd + -rwxr-xr-x 1 root root 93744 Mar 1 2019 df + -rwxr-xr-x 1 root root 138856 Mar 1 2019 dir + -rwxr-xr-x 1 root root 84288 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 39520 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 35424 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 68880 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 34896 Apr 23 2020 fusermount + -rwxr-xr-x 1 root root 198976 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 98048 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 26696 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 68552 Mar 1 2019 ln + -rwxr-xr-x 1 root root 56760 Jul 27 2018 login + -rwxr-xr-x 1 root root 138856 Mar 1 2019 ls + -rwxr-xr-x 1 root root 108624 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 89088 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 68544 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 43808 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 43008 Jan 10 2019 more + -rwsr-xr-x 1 root root 51280 Jan 10 2019 mount + -rwxr-xr-x 1 root root 14408 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 138728 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 39616 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 47776 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 68416 Mar 1 2019 rm + -rwxr-xr-x 1 root root 47776 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 23312 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jan 3 13:46 sh -> bash + lrwxrwxrwx 1 root root 4 Dec 11 18:20 sh.distrib -> dash + -rwxr-xr-x 1 root root 39552 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 80672 Mar 1 2019 stty + -rwsr-xr-x 1 root root 63568 Jan 10 2019 su + -rwxr-xr-x 1 root root 35488 Mar 1 2019 sync + -rwxr-xr-x 1 root root 445560 Apr 24 2019 tar + -rwxr-xr-x 1 root root 14440 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 97152 Mar 1 2019 touch + -rwxr-xr-x 1 root root 35424 Mar 1 2019 true + -rwxr-xr-x 1 root root 14328 Apr 23 2020 ulockmgr_server + -rwsr-xr-x 1 root root 34888 Jan 10 2019 umount + -rwxr-xr-x 1 root root 39584 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 138856 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34896 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/804211/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -387,7 +421,7 @@ Get: 146 http://deb.debian.org/debian buster/main amd64 python3-numpy amd64 1:1.16.2-1 [2119 kB] Get: 147 http://deb.debian.org/debian buster/main amd64 python3-setuptools all 40.8.0-1 [306 kB] Get: 148 http://deb.debian.org/debian buster/main amd64 uuid-dev amd64 2.33.1-0.1 [93.6 kB] -Fetched 143 MB in 2s (67.2 MB/s) +Fetched 143 MB in 2s (76.6 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19195 files and directories currently installed.) @@ -1011,7 +1045,8 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/cmor-3.4.0/ && 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 > ../cmor_3.4.0-2_source.changes +hostname: Name or service not known +I: Running cd /build/cmor-3.4.0/ && 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 > ../cmor_3.4.0-2_source.changes dpkg-buildpackage: info: source package cmor dpkg-buildpackage: info: source version 3.4.0-2 dpkg-buildpackage: info: source distribution unstable @@ -1065,7 +1100,7 @@ CFLAGS="-I/usr/include/ossp -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/ossp -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security " LDFLAGS="-Wl,-z,relro" SZLIBFLAGS=" -lsz" ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --disable-color --enable-verbose-test --with-uuid --without-python UUIDLDFLAGS=-lossp-uuid UUIDFLAGS=-I/usr/include/ossp "CFLAGS=-I/usr/include/ossp -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/ossp -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security " LDFLAGS=-Wl,-z,relro "SZLIBFLAGS= -lsz" configure: WARNING: unrecognized options: --disable-silent-rules, --disable-maintainer-mode, --disable-dependency-tracking -./get_git_version.sh: 2: ./get_git_version.sh: git: not found +./get_git_version.sh: line 2: git: command not found checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu @@ -13845,11 +13880,12 @@ x86_64-linux-gnu-gcc: Src/json-c/json_util.c x86_64-linux-gnu-gcc: Src/json-c/linkhash.c x86_64-linux-gnu-gcc: Src/json-c/json_object.c -x86_64-linux-gnu-gcc: Src/cdTime/cdRegTrfm.c x86_64-linux-gnu-gcc: Src/_cmormodule.c -x86_64-linux-gnu-gcc: Src/cmor_cfortran_interface.c +x86_64-linux-gnu-gcc: Src/cdTime/cdRegTrfm.c x86_64-linux-gnu-gcc: Src/json-c/debug.c +x86_64-linux-gnu-gcc: Src/cmor_cfortran_interface.c x86_64-linux-gnu-gcc: Src/json-c/arraylist.c +x86_64-linux-gnu-gcc: Src/json-c/json_tokener.c In file included from include/cmor.h:577, from Src/cmor_cfortran_interface.c:3: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -13864,7 +13900,6 @@ Src/cmor_cfortran_interface.c:379:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] int cmor_get_terminate_signal_cff_() { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_tokener.c x86_64-linux-gnu-gcc: Src/json-c/json_c_version.c In file included from include/cmor.h:577, from Src/_cmormodule.c:4: @@ -13877,13 +13912,14 @@ include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern int cmor_get_terminate_signal(); ^~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/random_seed.c Src/_cmormodule.c: In function 'init_cmor': Src/_cmormodule.c:1167:26: warning: unused variable 'st' [-Wunused-variable] struct module_state *st = GETSTATE(module); ^~ -x86_64-linux-gnu-gcc: Src/json-c/random_seed.c x86_64-linux-gnu-gcc: Src/cmor_grids.c x86_64-linux-gnu-gcc: Src/cmor.c +x86_64-linux-gnu-gcc: Src/json-c/printbuf.c In file included from include/cmor.h:577, from Src/cmor_grids.c:4: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -13895,9 +13931,31 @@ include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern int cmor_get_terminate_signal(); ^~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/printbuf.c +In file included from include/cmor.h:577, + from Src/cmor.c:9: +include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern void cmor_set_terminate_signal_to_sigint(); + ^~~~~~ +include/cmor_func_def.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern void cmor_set_terminate_signal_to_sigterm(); + ^~~~~~ +include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern int cmor_get_terminate_signal(); + ^~~~~~ x86_64-linux-gnu-gcc: Src/cdTime/reg_trfm.c x86_64-linux-gnu-gcc: Src/cdTime/timeArith.c +Src/cmor.c:122:1: warning: "/*" within comment [-Wcomment] + /**************************************************************************/ + +Src/cmor.c:123:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] + int cmor_get_terminate_signal() { + ^~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:126:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] + void cmor_set_terminate_signal_to_sigint() { + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:129:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] + void cmor_set_terminate_signal_to_sigterm() { + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc: Src/cmor_axes.c Src/cmor_grids.c: In function 'cmor_set_grid_attribute': Src/cmor_grids.c:258:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 984 [-Wformat-truncation=] @@ -13925,17 +13983,6 @@ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/cmor.h:577, - from Src/cmor.c:9: -include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern void cmor_set_terminate_signal_to_sigint(); - ^~~~~~ -include/cmor_func_def.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern void cmor_set_terminate_signal_to_sigterm(); - ^~~~~~ -include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern int cmor_get_terminate_signal(); - ^~~~~~ -In file included from include/cmor.h:577, from Src/cmor_axes.c:3: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern void cmor_set_terminate_signal_to_sigint(); @@ -13952,18 +13999,6 @@ ^~~ "In udunits parsing user units: %s", msg); ~~~ -Src/cmor.c:122:1: warning: "/*" within comment [-Wcomment] - /**************************************************************************/ - -Src/cmor.c:123:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] - int cmor_get_terminate_signal() { - ^~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:126:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] - void cmor_set_terminate_signal_to_sigint() { - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:129:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] - void cmor_set_terminate_signal_to_sigterm() { - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_axes.c: In function 'cmor_check_interval': Src/cmor_axes.c:1475:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Wrestrict] snprintf(msg, CMOR_MAX_STRING, @@ -13988,7 +14023,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/libjson.c Src/cmor_axes.c: In function 'cmor_convert_interval_to_seconds': Src/cmor_axes.c:105:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 993 [-Wformat-truncation=] "In udunits parsing user units: %s", msg); @@ -14010,6 +14044,17 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_add_traceback.part.0': +Src/cmor.c:423:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1008 [-Wformat-overflow=] + sprintf(tmp, "%s\n! called from: %s", name, cmor_traceback_info); + ^~ ~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 1040) into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cdTime/cdTimeConv.c: In function 'cdParseRelunits': Src/cdTime/cdTimeConv.c:190:25: warning: '%s' directive writing up to 47 bytes into a region of size between 0 and 47 [-Wformat-overflow=] sprintf(basetime,"%s %s",basetime_1,basetime_2); @@ -14021,33 +14066,9 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/libjson.c x86_64-linux-gnu-gcc: Src/json-c/json_object_iterator.c x86_64-linux-gnu-gcc: Src/cmor_tables.c -Src/cmor.c: In function 'cmor_add_traceback.part.0': -Src/cmor.c:423:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1008 [-Wformat-overflow=] - sprintf(tmp, "%s\n! called from: %s", name, cmor_traceback_info); - ^~ ~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 1040) into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/cdTime/cdUtil.c -x86_64-linux-gnu-gcc: Src/cmor_md5.c -x86_64-linux-gnu-gcc: Src/cmor_variables.c -In file included from include/cmor.h:577, - from Src/cmor_tables.c:4: -include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern void cmor_set_terminate_signal_to_sigint(); - ^~~~~~ -include/cmor_func_def.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern void cmor_set_terminate_signal_to_sigterm(); - ^~~~~~ -include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern int cmor_get_terminate_signal(); - ^~~~~~ Src/cmor.c: In function 'cmor_prep_units': Src/cmor.c:521:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] "Udunits: Error getting converter from %s to %s", cunits, @@ -14071,13 +14092,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_set_dataset_att': -Src/cmor_tables.c:499:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 6 [-Wrestrict] - snprintf(value, CMOR_MAX_STRING, - ^~~~~ -Src/cmor_tables.c:503:42: - table->szTable_id, att, value); - ~~~~~ +x86_64-linux-gnu-gcc: Src/cdTime/cdUtil.c Src/cmor.c: In function 'cmor_open_inpathFile': Src/cmor.c:1232:57: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(szFullName, CMOR_MAX_STRING, "%s/%s", cmor_input_path, @@ -14127,21 +14142,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/cmor_CV.c -x86_64-linux-gnu-gcc: Src/cdTime/timeConv.c -Src/cmor_tables.c: In function 'cmor_set_experiments.part.0': -Src/cmor_tables.c:292:25: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s: Too many experiments defined", table->szTable_id); - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/cmor.h:577, - from Src/cmor_variables.c:4: + from Src/cmor_tables.c:4: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern void cmor_set_terminate_signal_to_sigint(); ^~~~~~ @@ -14151,6 +14153,16 @@ include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern int cmor_get_terminate_signal(); ^~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_md5.c +Src/cmor_tables.c: In function 'cmor_set_dataset_att': +Src/cmor_tables.c:499:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 6 [-Wrestrict] + snprintf(value, CMOR_MAX_STRING, + ^~~~~ +Src/cmor_tables.c:503:42: + table->szTable_id, att, value); + ~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_variables.c +x86_64-linux-gnu-gcc: Src/cmor_CV.c Src/cmor.c: In function 'cmor_outpath_exist': Src/cmor.c:1727:60: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] "You defined your output directory to be: '%s', but we\n! " @@ -14230,12 +14242,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_write_var_to_file': -Src/cmor_variables.c:2371:9: warning: unused variable 'bb' [-Wunused-variable] - int bb; - ^~ In file included from include/cmor.h:577, - from Src/cmor_CV.c:7: + from Src/cmor_variables.c:4: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern void cmor_set_terminate_signal_to_sigint(); ^~~~~~ @@ -14245,6 +14253,17 @@ include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern int cmor_get_terminate_signal(); ^~~~~~ +Src/cmor_tables.c: In function 'cmor_set_experiments.part.0': +Src/cmor_tables.c:292:25: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s: Too many experiments defined", table->szTable_id); + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor.c: In function 'cmor_convert_string_to_list': Src/cmor.c:1788:53: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] "unknown conversion '%c' for list: %s", type, values); @@ -14312,33 +14331,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_treat_axis_values': -Src/cmor_axes.c:941:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] - "In udunits analyzing table defined units (%s)\n! " - ^~ -Src/cmor_axes.c:943:22: - local_unit, refaxis->id, - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:922:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] - "In udunits analyzing units from user (%s),\n! " - ^~ -Src/cmor_axes.c:924:22: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 59 or more bytes (assuming 1082) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor.c: In function 'cmor_define_zfactors_vars': Src/cmor.c:1958:64: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] "could not find the zfactor variable: %s. \n! " @@ -14369,7 +14361,33 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/cdTime/fcdTimeConv.c +Src/cmor_axes.c: In function 'cmor_treat_axis_values': +Src/cmor_axes.c:941:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] + "In udunits analyzing table defined units (%s)\n! " + ^~ +Src/cmor_axes.c:943:22: + local_unit, refaxis->id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:922:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] + "In udunits analyzing units from user (%s),\n! " + ^~ +Src/cmor_axes.c:924:22: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 59 or more bytes (assuming 1082) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_tables.c: In function 'cmor_load_table_internal': Src/cmor_tables.c:693:51: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(word, CMOR_MAX_STRING, "%s/%s", cmor_input_path, szTable); @@ -14403,64 +14421,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from Src/cdTime/fcdTimeConv.c:26: -include/cdTime/cfortran.h:598:14: warning: 'kill_trailingn' defined but not used [-Wunused-function] - static char *kill_trailingn(char *s, char t, char *e) - ^~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_load_table': -Src/cmor_tables.c:619:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szAxisEntryFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:631:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szFormulaVarFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:637:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szControlFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_has_required_variable_attributes': -Src/cmor_variables.c:94:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] - "variable %s (table %s) does not have required " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:96:64: - cmor_vars[var_id].id, pTable->szTable_id, astr); - ~~~~ -Src/cmor_variables.c:95:34: note: format string is defined here - "attribute: %s", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 54 or more bytes (assuming 1077) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cdTime/timeConv.c Src/cmor_axes.c: In function 'cmor_check_interval': Src/cmor_axes.c:1388:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 992 [-Wformat-truncation=] "In udunuits parsing user units: %s, axis: %s (table: %s)", @@ -14486,21 +14447,11 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c: In function 'cmor_CV_checkFurtherInfoURL': Src/cmor_axes.c:1476:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] "Udunits: Error getting converter from %s to %s, axis: %s (table: %s)", ^~ ctmp2, msg, cmor_axes[axis_id].id, ~~~~~ -Src/cmor_CV.c:410:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 915 [-Wformat-truncation=] - "The further info in attribute does not match " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c:415:22: - szValue, szFurtherInfoURL, CV_Filename); - ~~~~~~~ -Src/cmor_CV.c:412:34: note: format string is defined here - "We found \"%s\" and \n! " - ^~ In file included from /usr/include/stdio.h:873, from Src/cmor_axes.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 61 or more bytes (assuming 2107) into a destination of size 1024 @@ -14508,16 +14459,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 178 and 3247 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_axes.c:1541:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 896 and 911 [-Wformat-truncation=] "approximate time axis interval is defined as %f " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -14610,6 +14551,389 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_load_table': +Src/cmor_tables.c:619:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szAxisEntryFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:631:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szFormulaVarFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:637:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szControlFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_write_all_attributes': +Src/cmor.c:3311:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 949 [-Wformat-truncation=] + "NetCDF error (%i: %s) for variable %s\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3315:42: + GLOBAL_ATT_LICENSE, value); + ~~~~~ +Src/cmor.c:3312:60: note: format string is defined here + "(table: %s) writing global att: %s (%s)", + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 1100) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3323:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 936 [-Wformat-truncation=] + "NetCDF error (%i: %s) for variable %s\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3328:46: + GLOBAL_ATT_LICENSE, value); + ~~~~~ +Src/cmor.c:3325:41: note: format string is defined here + "metafile: %s (%s)", ierr, + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 90 or more bytes (assuming 1113) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c: In function 'cmor_axis': +Src/cmor_axes.c:1761:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 962 [-Wformat-truncation=] + "axis: %s (table: %s) is declared to be converted " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1765:26: + refaxis.convert_to); + ~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1762:44: note: format string is defined here + "to unknown type: %s", + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1931:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 969 [-Wformat-truncation=] + "Requested region for axis '%s' (table: %s) " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1934:70: + cmor_tables[CMOR_TABLE].szTable_id, ctmp); + ~~~~ +Src/cmor_axes.c:1932:51: note: format string is defined here + "is not passed: '%s'", + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2079:53: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 706 and 1020 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "%lf %s", + ^~ +Src/cmor_axes.c:2081:62: + ref_table_id].interval, ctmp); + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 5 and 1342 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_create_var_attributes': +Src/cmor.c:4881:78: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 968 [-Wformat-truncation=] + "NetCDF Error (%i: %s) leaving definition mode for metafile %s", + ^~ +Src/cmor.c:4883:18: + cmor_current_dataset.associated_file_name); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cdTime/fcdTimeConv.c +Src/cmor_axes.c: In function 'cmor_set_axis_def_att': +Src/cmor_axes.c:2506:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] + "Unknown attribute >>>%s<<< for axis section " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2507:20: note: format string is defined here + "(%s, table: %s), value: %s", + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2495:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory " + ^~ +Src/cmor_axes.c:2495:26: note: directive argument in the range [1, 9223372036854775806] + "axis (%s, table: %s): cannot allocate memory " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 2141) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2441:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): looks like we already read " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2453:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2470:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for %i " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2349:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): looks like we already read " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2362:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2383:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for %i " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_write_var_to_file': +Src/cmor_variables.c:2371:9: warning: unused variable 'bb' [-Wunused-variable] + int bb; + ^~ +In file included from include/cmor.h:577, + from Src/cmor_CV.c:7: +include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern void cmor_set_terminate_signal_to_sigint(); + ^~~~~~ +include/cmor_func_def.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern void cmor_set_terminate_signal_to_sigterm(); + ^~~~~~ +include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern int cmor_get_terminate_signal(); + ^~~~~~ +In file included from Src/cdTime/fcdTimeConv.c:26: +include/cdTime/cfortran.h:598:14: warning: 'kill_trailingn' defined but not used [-Wunused-function] + static char *kill_trailingn(char *s, char t, char *e) + ^~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_build_outname': +Src/cmor.c:5923:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "Cannot find frequency %s. Closing variable %s (table: %s)", + ^~ + frequency, cmor_vars[var_id].id, + ~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 52 or more bytes (assuming 1075) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5767:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] + "Cannot convert times for calendar: %s,\n! " + ^~ + "closing variable %s (table: %s)", msg2, + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_close_variable': +Src/cmor.c:6058:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 934 [-Wformat-truncation=] + "while closing variable %i (%s, table %s)\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6066:72: + ref_table_id].szTable_id, ctmp2, + ~~~~~ +Src/cmor.c:6060:45: note: format string is defined here + "you wrote %s time steps for the variable,\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 176 or more bytes (assuming 2222) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6089:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 920 [-Wformat-truncation=] + "while closing variable %i (%s, table %s) we\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6096:42: + szTable_id, ctmp2, + ~~~~~ +Src/cmor.c:6091:51: note: format string is defined here + "variable, you wrote %s time steps for the\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 190 or more bytes (assuming 2236) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6129:33: warning: '.copy' directive writing 5 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] + sprintf(msg, "%s.copy", outname); + ^~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 6 and 1029 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6140:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] + "Output file ( %s ) already exists,\n! " + ^~ +Src/cmor.c:6143:45: + "cmor_setup.", outname); + ~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 128 and 1151 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6132:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] + "Output file ( %s ) already exists,\n! " + ^~ +Src/cmor.c:6137:45: + "at: %s.copy", outname, outname); + ~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 206 and 2252 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6153:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 970 [-Wformat-truncation=] + "could not rename temporary file: %s to final file\n" + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + "name: %s", cmor_vars[var_id].current_path, outname); + ~~~~~~~ +Src/cmor.c:6154:29: note: format string is defined here + "name: %s", cmor_vars[var_id].current_path, outname); + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 55 or more bytes (assuming 1078) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_has_required_variable_attributes': +Src/cmor_variables.c:94:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] + "variable %s (table %s) does not have required " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:96:64: + cmor_vars[var_id].id, pTable->szTable_id, astr); + ~~~~ +Src/cmor_variables.c:95:34: note: format string is defined here + "attribute: %s", + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 54 or more bytes (assuming 1077) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_CV.c: In function 'cmor_CV_checkFurtherInfoURL': +Src/cmor_CV.c:410:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 915 [-Wformat-truncation=] + "The further info in attribute does not match " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_CV.c:415:22: + szValue, szFurtherInfoURL, CV_Filename); + ~~~~~~~ +Src/cmor_CV.c:412:34: note: format string is defined here + "We found \"%s\" and \n! " + ^~ +In file included from /usr/include/stdio.h:873, + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 178 and 3247 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_variables.c: In function 'cmor_update_history': Src/cmor_variables.c:1001:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] snprintf(tmp2, CMOR_MAX_STRING, "%s %s altered by CMOR: %s.", @@ -15074,85 +15398,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_axis': -Src/cmor_axes.c:1761:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 962 [-Wformat-truncation=] - "axis: %s (table: %s) is declared to be converted " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1765:26: - refaxis.convert_to); - ~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1762:44: note: format string is defined here - "to unknown type: %s", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1931:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 969 [-Wformat-truncation=] - "Requested region for axis '%s' (table: %s) " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1934:70: - cmor_tables[CMOR_TABLE].szTable_id, ctmp); - ~~~~ -Src/cmor_axes.c:1932:51: note: format string is defined here - "is not passed: '%s'", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2079:53: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 706 and 1020 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "%lf %s", - ^~ -Src/cmor_axes.c:2081:62: - ref_table_id].interval, ctmp); - ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 5 and 1342 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_write_all_attributes': -Src/cmor.c:3311:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 949 [-Wformat-truncation=] - "NetCDF error (%i: %s) for variable %s\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3315:42: - GLOBAL_ATT_LICENSE, value); - ~~~~~ -Src/cmor.c:3312:60: note: format string is defined here - "(table: %s) writing global att: %s (%s)", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 1100) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3323:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 936 [-Wformat-truncation=] - "NetCDF error (%i: %s) for variable %s\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3328:46: - GLOBAL_ATT_LICENSE, value); - ~~~~~ -Src/cmor.c:3325:41: note: format string is defined here - "metafile: %s (%s)", ierr, - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 90 or more bytes (assuming 1113) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkParentExpID': Src/cmor_CV.c:1053:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 932 [-Wformat-truncation=] "Your input attribute \"%s\" is not defined properly \n! " @@ -15564,6 +15809,107 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_addRIPF': +Src/cmor.c:5617:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] + "Your realization_index \"%s\" is invalid. \n! " + ^~ + "It cannot contains more than 4 digits. \n! ", tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 84 and 1107 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5626:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] + "Your realization_index \"%s\" is invalid. \n! " + ^~ +Src/cmor.c:5628:22: + tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 92 and 1115 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5644:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + "Your initialization_index \"%s\" is invalid. \n! " + ^~ + "It cannot contains more than 4 digits. \n! ", tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 87 and 1110 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5653:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + "Your initialization_index \"%s\" is invalid. \n! " + ^~ +Src/cmor.c:5655:22: + tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 95 and 1118 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5672:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Your physics_index \"%s\" is invalid. \n! " + ^~ + "It cannot contains more than 4 digits. \n! ", tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 80 and 1103 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5681:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Your physics_index \"%s\" is invalid. \n! " + ^~ +Src/cmor.c:5683:22: + tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 88 and 1111 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5699:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Your forcing_index \"%s\" is invalid. \n! " + ^~ + "It cannot contains more than 4 digits. \n! ", tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 80 and 1103 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5708:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Your forcing_index \"%s\" is invalid. \n! " + ^~ +Src/cmor.c:5710:22: + tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 88 and 1111 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkExperiment': Src/cmor_CV.c:1441:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] "Your input attribute \"%s\" with value \n! \"%s\" " @@ -15660,89 +16006,43 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_set_axis_def_att': -Src/cmor_axes.c:2506:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] - "Unknown attribute >>>%s<<< for axis section " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2507:20: note: format string is defined here - "(%s, table: %s), value: %s", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2495:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory " - ^~ -Src/cmor_axes.c:2495:26: note: directive argument in the range [1, 9223372036854775806] - "axis (%s, table: %s): cannot allocate memory " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 2141) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2441:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): looks like we already read " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2453:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2470:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for %i " - ^~ +Src/cmor.c: In function 'cmor_setup': +Src/cmor.c:901:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1001 [-Wformat-truncation=] + "Could not open logfile %s for writing", tmplogfile); + ^~ ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 36 and 1059 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2349:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): looks like we already read " - ^~ +Src/cmor.c:877:48: warning: '%.4i' directive output may be truncated writing between 4 and 11 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "%s_%.4i-%.2i-%.2iT%.2i:%.2i:%.2i", + ^~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 21 and 1096 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2362:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for " - ^~ +Src/cmor.c:885:31: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1016 [-Wformat-truncation=] + "Logfile %s already exist.\n! Renamed to: %s", tmplogfile, + ^~ ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 39 and 2085 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2383:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for %i " - ^~ +Src/cmor.c:892:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1001 [-Wformat-truncation=] + "Could not open logfile %s for writing", tmplogfile); + ^~ ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 36 and 1059 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -15818,16 +16118,28 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_create_var_attributes': -Src/cmor.c:4881:78: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 968 [-Wformat-truncation=] - "NetCDF Error (%i: %s) leaving definition mode for metafile %s", - ^~ -Src/cmor.c:4883:18: - cmor_current_dataset.associated_file_name); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from Src/cmor.c:9: +Src/cmor.c: In function 'cmor_setGblAttr': +include/cmor.h:188:39: warning: ' output prepared for ' directive output may be truncated writing 21 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] + #define GLOBAL_ATT_TITLE_MSG "%s output prepared for %s" + ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:2843:36: note: in expansion of macro 'GLOBAL_ATT_TITLE_MSG' + snprintf(msg, CMOR_MAX_STRING, GLOBAL_ATT_TITLE_MSG, ctmp, + ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 22 or more bytes (assuming 1045) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3000:49: warning: '; + ' directive output may be truncated writing 2 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] + snprintf(ctmp2, CMOR_MAX_STRING, "%s;\n%s", ctmp, msg); + ^~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 3 and 2049 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -15922,6 +16234,95 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_CV.c: In function 'cmor_CV_checkISOTime': +Src/cmor_CV.c:2277:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] + "Your global attribute " + ^~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_CV.c:2280:39: + "\n! ", szAttribute, szDate); + ~~~~~~ +Src/cmor_CV.c:2278:35: note: format string is defined here + "\"%s\" set to \"%s\" is not a valid date.\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 118 or more bytes (assuming 1141) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_define_dimensions': +Src/cmor.c:3682:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 956 [-Wformat-truncation=] + "NCError (%i: %s) defining compression\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3685:49: + nc_strerror(ierr), ctmp, cmor_vars[var_id].id, + ~~~~ +Src/cmor.c:3683:62: note: format string is defined here + "parameters for bounds variable %s for\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 97 or more bytes (assuming 1120) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3729:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 979 [-Wformat-truncation=] + "NetCDF error (%i: %s) writing formula term " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3731:70: + "(table: %s)", ierr, nc_strerror(ierr), msg, + ~~~ +Src/cmor.c:3730:36: note: format string is defined here + "att (%s) for axis %i (%s), variable %s " + ^~ +Src/cmor.c:3729:30: note: directive argument in the range [0, 7] + "NetCDF error (%i: %s) writing formula term " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 82 or more bytes (assuming 1105) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3743:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 979 [-Wformat-truncation=] + "NetCDF error (%i: %s) writing formula " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3746:53: + nc_strerror(ierr), msg, i, + ~~~ +Src/cmor.c:3744:45: note: format string is defined here + "term att (%s) for axis %i (%s), variable " + ^~ +Src/cmor.c:3743:34: note: directive argument in the range [0, 7] + "NetCDF error (%i: %s) writing formula " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 82 or more bytes (assuming 1105) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_CV.c: In function 'cmor_CV_variable': +Src/cmor_CV.c:2339:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] + "Could not find a matching variable for name: '%s'", ctmp); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_variables.c: In function 'cmor_zfactor': Src/cmor_variables.c:791:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] "Udunits: Error parsing user units: %s, " @@ -16015,65 +16416,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c: In function 'cmor_CV_checkISOTime': -Src/cmor_CV.c:2277:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] - "Your global attribute " - ^~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c:2280:39: - "\n! ", szAttribute, szDate); - ~~~~~~ -Src/cmor_CV.c:2278:35: note: format string is defined here - "\"%s\" set to \"%s\" is not a valid date.\n! " - ^~ -In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 118 or more bytes (assuming 1141) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c: In function 'cmor_CV_variable': -Src/cmor_CV.c:2339:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] - "Could not find a matching variable for name: '%s'", ctmp); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_build_outname': -Src/cmor.c:5923:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "Cannot find frequency %s. Closing variable %s (table: %s)", - ^~ - frequency, cmor_vars[var_id].id, - ~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 52 or more bytes (assuming 1075) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5767:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] - "Cannot convert times for calendar: %s,\n! " - ^~ - "closing variable %s (table: %s)", msg2, - ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_variables.c: In function 'cmor_set_var_def_att': Src/cmor_variables.c:1967:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 969 and 978 [-Wformat-truncation=] "Too many dimensions (%i) defined for variable " @@ -16101,86 +16443,45 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_close_variable': -Src/cmor.c:6058:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 934 [-Wformat-truncation=] - "while closing variable %i (%s, table %s)\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6066:72: - ref_table_id].szTable_id, ctmp2, - ~~~~~ -Src/cmor.c:6060:45: note: format string is defined here - "you wrote %s time steps for the variable,\n! " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 176 or more bytes (assuming 2222) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6089:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 920 [-Wformat-truncation=] - "while closing variable %i (%s, table %s) we\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6096:42: - szTable_id, ctmp2, - ~~~~~ -Src/cmor.c:6091:51: note: format string is defined here - "variable, you wrote %s time steps for the\n! " - ^~ +Src/cmor.c: In function 'cmor_write': +Src/cmor.c:4655:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 940 [-Wformat-truncation=] + "NetCDF error (%i: %s) for variable %s (table: %s)\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:4659:45: + "tracking_id", (char *)ctmp2); + ~~~~~ +Src/cmor.c:4656:53: note: format string is defined here + "writing global attribute: %s (%s)", + ^~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 190 or more bytes (assuming 2236) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 86 or more bytes (assuming 1109) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6129:33: warning: '.copy' directive writing 5 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] - sprintf(msg, "%s.copy", outname); - ^~~~~ +Src/cmor.c:4463:40: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] + "creating outpath: %s, for variable %s (table: %s). " + ^~ +Src/cmor.c:4465:21: + outname, cmor_vars[var_id].id, + ~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 6 and 1029 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 68 or more bytes (assuming 1091) into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6140:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] - "Output file ( %s ) already exists,\n! " - ^~ -Src/cmor.c:6143:45: - "cmor_setup.", outname); - ~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 128 and 1151 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6132:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] - "Output file ( %s ) already exists,\n! " - ^~ -Src/cmor.c:6137:45: - "at: %s.copy", outname, outname); - ~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 206 and 2252 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6153:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 970 [-Wformat-truncation=] - "could not rename temporary file: %s to final file\n" - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - "name: %s", cmor_vars[var_id].current_path, outname); - ~~~~~~~ -Src/cmor.c:6154:29: note: format string is defined here - "name: %s", cmor_vars[var_id].current_path, outname); - ^~ +Src/cmor.c:4550:71: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] + "NetCDF Error (%i: %s) putting metadata file (%s) in\n! " + ^~ +Src/cmor.c:4554:25: + cmor_current_dataset.associated_file_name, ncafid, + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 55 or more bytes (assuming 1078) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 117 or more bytes (assuming 1140) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -16620,284 +16921,18 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_addRIPF': -Src/cmor.c:5617:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] - "Your realization_index \"%s\" is invalid. \n! " - ^~ - "It cannot contains more than 4 digits. \n! ", tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 84 and 1107 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5626:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] - "Your realization_index \"%s\" is invalid. \n! " - ^~ -Src/cmor.c:5628:22: - tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 92 and 1115 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5644:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - "Your initialization_index \"%s\" is invalid. \n! " - ^~ - "It cannot contains more than 4 digits. \n! ", tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 87 and 1110 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5653:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - "Your initialization_index \"%s\" is invalid. \n! " - ^~ -Src/cmor.c:5655:22: - tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 95 and 1118 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5672:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Your physics_index \"%s\" is invalid. \n! " - ^~ - "It cannot contains more than 4 digits. \n! ", tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 80 and 1103 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5681:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Your physics_index \"%s\" is invalid. \n! " - ^~ -Src/cmor.c:5683:22: - tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 88 and 1111 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5699:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Your forcing_index \"%s\" is invalid. \n! " - ^~ - "It cannot contains more than 4 digits. \n! ", tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 80 and 1103 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5708:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Your forcing_index \"%s\" is invalid. \n! " - ^~ -Src/cmor.c:5710:22: - tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 88 and 1111 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_setup': -Src/cmor.c:901:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1001 [-Wformat-truncation=] - "Could not open logfile %s for writing", tmplogfile); - ^~ ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 36 and 1059 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:877:48: warning: '%.4i' directive output may be truncated writing between 4 and 11 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "%s_%.4i-%.2i-%.2iT%.2i:%.2i:%.2i", - ^~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 21 and 1096 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:885:31: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1016 [-Wformat-truncation=] - "Logfile %s already exist.\n! Renamed to: %s", tmplogfile, - ^~ ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 39 and 2085 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:892:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1001 [-Wformat-truncation=] - "Could not open logfile %s for writing", tmplogfile); - ^~ ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 36 and 1059 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from Src/cmor.c:9: -Src/cmor.c: In function 'cmor_setGblAttr': -include/cmor.h:188:39: warning: ' output prepared for ' directive output may be truncated writing 21 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] - #define GLOBAL_ATT_TITLE_MSG "%s output prepared for %s" - ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:2843:36: note: in expansion of macro 'GLOBAL_ATT_TITLE_MSG' - snprintf(msg, CMOR_MAX_STRING, GLOBAL_ATT_TITLE_MSG, ctmp, - ^~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 22 or more bytes (assuming 1045) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3000:49: warning: '; - ' directive output may be truncated writing 2 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] - snprintf(ctmp2, CMOR_MAX_STRING, "%s;\n%s", ctmp, msg); - ^~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 3 and 2049 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_define_dimensions': -Src/cmor.c:3682:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 956 [-Wformat-truncation=] - "NCError (%i: %s) defining compression\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3685:49: - nc_strerror(ierr), ctmp, cmor_vars[var_id].id, - ~~~~ -Src/cmor.c:3683:62: note: format string is defined here - "parameters for bounds variable %s for\n! " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 97 or more bytes (assuming 1120) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3729:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 979 [-Wformat-truncation=] - "NetCDF error (%i: %s) writing formula term " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3731:70: - "(table: %s)", ierr, nc_strerror(ierr), msg, - ~~~ -Src/cmor.c:3730:36: note: format string is defined here - "att (%s) for axis %i (%s), variable %s " - ^~ -Src/cmor.c:3729:30: note: directive argument in the range [0, 7] - "NetCDF error (%i: %s) writing formula term " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 82 or more bytes (assuming 1105) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3743:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 979 [-Wformat-truncation=] - "NetCDF error (%i: %s) writing formula " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3746:53: - nc_strerror(ierr), msg, i, - ~~~ -Src/cmor.c:3744:45: note: format string is defined here - "term att (%s) for axis %i (%s), variable " - ^~ -Src/cmor.c:3743:34: note: directive argument in the range [0, 7] - "NetCDF error (%i: %s) writing formula " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 82 or more bytes (assuming 1105) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_write': -Src/cmor.c:4655:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 940 [-Wformat-truncation=] - "NetCDF error (%i: %s) for variable %s (table: %s)\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:4659:45: - "tracking_id", (char *)ctmp2); - ~~~~~ -Src/cmor.c:4656:53: note: format string is defined here - "writing global attribute: %s (%s)", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 86 or more bytes (assuming 1109) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:4463:40: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] - "creating outpath: %s, for variable %s (table: %s). " - ^~ -Src/cmor.c:4465:21: - outname, cmor_vars[var_id].id, - ~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 68 or more bytes (assuming 1091) into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:4550:71: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] - "NetCDF Error (%i: %s) putting metadata file (%s) in\n! " - ^~ -Src/cmor.c:4554:25: - cmor_current_dataset.associated_file_name, ncafid, - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 117 or more bytes (assuming 1140) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -I/usr/include/ossp -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/ossp -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-2.7/Src/_cmormodule.o build/temp.linux-x86_64-2.7/Src/cdTime/cdRegTrfm.o build/temp.linux-x86_64-2.7/Src/cdTime/cdTimeConv.o build/temp.linux-x86_64-2.7/Src/cdTime/cdUtil.o build/temp.linux-x86_64-2.7/Src/cdTime/fcdTimeConv.o build/temp.linux-x86_64-2.7/Src/cdTime/reg_trfm.o build/temp.linux-x86_64-2.7/Src/cdTime/timeArith.o build/temp.linux-x86_64-2.7/Src/cdTime/timeConv.o build/temp.linux-x86_64-2.7/Src/cmor.o build/temp.linux-x86_64-2.7/Src/cmor_CV.o build/temp.linux-x86_64-2.7/Src/cmor_axes.o build/temp.linux-x86_64-2.7/Src/cmor_cfortran_interface.o build/temp.linux-x86_64-2.7/Src/cmor_grids.o build/temp.linux-x86_64-2.7/Src/cmor_md5.o build/temp.linux-x86_64-2.7/Src/cmor_tables.o build/temp.linux-x86_64-2.7/Src/cmor_variables.o build/temp.linux-x86_64-2.7/Src/json-c/arraylist.o build/temp.linux-x86_64-2.7/Src/json-c/debug.o build/temp.linux-x86_64-2.7/Src/json-c/json_c_version.o build/temp.linux-x86_64-2.7/Src/json-c/json_object.o build/temp.linux-x86_64-2.7/Src/json-c/json_object_iterator.o build/temp.linux-x86_64-2.7/Src/json-c/json_tokener.o build/temp.linux-x86_64-2.7/Src/json-c/json_util.o build/temp.linux-x86_64-2.7/Src/json-c/libjson.o build/temp.linux-x86_64-2.7/Src/json-c/linkhash.o build/temp.linux-x86_64-2.7/Src/json-c/printbuf.o build/temp.linux-x86_64-2.7/Src/json-c/random_seed.o -L. -lnetcdf -ludunits2 -lossp-uuid -o build/lib.linux-x86_64-2.7/cmor/_cmor.so building 'cmip6_cv._cmip6_cv' extension C compiler: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -I/usr/include/ossp -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/ossp -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC compile options: '-I/usr/lib/python2.7/dist-packages/numpy/core/include -Iinclude -Iinclude/cdTime -Iinclude/json-c -I/usr/include -I/usr/include/python2.7 -c' extra options: '-DgFortran' -x86_64-linux-gnu-gcc: Src/json-c/json_util.c x86_64-linux-gnu-gcc: Src/json-c/linkhash.c +x86_64-linux-gnu-gcc: Src/json-c/json_util.c x86_64-linux-gnu-gcc: Src/json-c/json_object.c +x86_64-linux-gnu-gcc: Src/cmor_cfortran_interface.c x86_64-linux-gnu-gcc: Src/cdTime/cdRegTrfm.c x86_64-linux-gnu-gcc: Src/json-c/debug.c -x86_64-linux-gnu-gcc: Src/cmor_cfortran_interface.c x86_64-linux-gnu-gcc: Src/json-c/arraylist.c x86_64-linux-gnu-gcc: Src/json-c/json_tokener.c In file included from include/cmor.h:577, @@ -16919,10 +16954,6 @@ x86_64-linux-gnu-gcc: Src/_controlvocabulary.c x86_64-linux-gnu-gcc: Src/cmor_grids.c x86_64-linux-gnu-gcc: Src/cmor.c -x86_64-linux-gnu-gcc: Src/json-c/printbuf.c -x86_64-linux-gnu-gcc: Src/cdTime/reg_trfm.c -x86_64-linux-gnu-gcc: Src/cdTime/timeArith.c -x86_64-linux-gnu-gcc: Src/cmor_axes.c In file included from include/cmor.h:577, from Src/cmor_grids.c:4: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -16934,6 +16965,8 @@ include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern int cmor_get_terminate_signal(); ^~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/printbuf.c +x86_64-linux-gnu-gcc: Src/cdTime/reg_trfm.c In file included from include/cmor.h:577, from Src/cmor.c:9: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -16945,6 +16978,18 @@ include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern int cmor_get_terminate_signal(); ^~~~~~ +Src/cmor.c:122:1: warning: "/*" within comment [-Wcomment] + /**************************************************************************/ + +Src/cmor.c:123:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] + int cmor_get_terminate_signal() { + ^~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:126:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] + void cmor_set_terminate_signal_to_sigint() { + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:129:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] + void cmor_set_terminate_signal_to_sigterm() { + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/cmor.h:577, from Src/_controlvocabulary.c:5: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -16966,11 +17011,39 @@ Src/_controlvocabulary.c:580:9: warning: unused variable 'imissing' [-Wunused-variable] int imissing; ^~~~~~~~ -x86_64-linux-gnu-gcc: Src/cdTime/cdTimeConv.c At top level: Src/_controlvocabulary.c:667:28: warning: '_state' defined but not used [-Wunused-variable] static struct module_state _state; ^~~~~~ +x86_64-linux-gnu-gcc: Src/cdTime/timeArith.c +Src/cmor_grids.c: In function 'cmor_set_grid_attribute': +Src/cmor_grids.c:258:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 984 [-Wformat-truncation=] + "%s parameter must be between -180 and 180 %s, will not be set", + ^~ + name, ctmp); + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_grids.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 58 or more bytes (assuming 1081) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_grids.c:242:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] + "%s parameter must be between -90 and 90 %s, will not be set", + ^~ + name, ctmp); + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_grids.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 56 or more bytes (assuming 1079) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cdTime/cdTimeConv.c +x86_64-linux-gnu-gcc: Src/cmor_axes.c +x86_64-linux-gnu-gcc: Src/json-c/libjson.c In file included from include/cmor.h:577, from Src/cmor_axes.c:3: include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -16988,6 +17061,7 @@ ^~~ "In udunits parsing user units: %s", msg); ~~~ +x86_64-linux-gnu-gcc: Src/json-c/json_object_iterator.c Src/cmor_axes.c: In function 'cmor_check_interval': Src/cmor_axes.c:1475:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Wrestrict] snprintf(msg, CMOR_MAX_STRING, @@ -17000,45 +17074,17 @@ ^~~~ "Cannot convert times for calendar: %s", ctmp); ~~~~ -x86_64-linux-gnu-gcc: Src/json-c/libjson.c -Src/cmor.c:122:1: warning: "/*" within comment [-Wcomment] - /**************************************************************************/ - -Src/cmor.c:123:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] - int cmor_get_terminate_signal() { - ^~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:126:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] - void cmor_set_terminate_signal_to_sigint() { - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:129:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] - void cmor_set_terminate_signal_to_sigterm() { - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_grids.c: In function 'cmor_set_grid_attribute': -Src/cmor_grids.c:258:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 984 [-Wformat-truncation=] - "%s parameter must be between -180 and 180 %s, will not be set", - ^~ - name, ctmp); - ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 58 or more bytes (assuming 1081) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_grids.c:242:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] - "%s parameter must be between -90 and 90 %s, will not be set", - ^~ - name, ctmp); - ~~~~ +Src/cmor_grids.c: In function 'cmor_set_mapping_attribute': +Src/cmor_grids.c:501:56: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] + "Unknown attribute: '%s' for mapping '%s' (value was: '%s')", + ^~ In file included from /usr/include/stdio.h:873, from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 56 or more bytes (assuming 1079) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 53 or more bytes (assuming 1076) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_object_iterator.c x86_64-linux-gnu-gcc: Src/cmor_tables.c Src/cdTime/cdTimeConv.c: In function 'cdParseRelunits': Src/cdTime/cdTimeConv.c:190:25: warning: '%s' directive writing up to 47 bytes into a region of size between 0 and 47 [-Wformat-overflow=] @@ -17063,6 +17109,36 @@ include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] extern int cmor_get_terminate_signal(); ^~~~~~ +Src/cmor_tables.c: In function 'cmor_set_dataset_att': +Src/cmor_tables.c:499:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 6 [-Wrestrict] + snprintf(value, CMOR_MAX_STRING, + ^~~~~ +Src/cmor_tables.c:503:42: + table->szTable_id, att, value); + ~~~~~ +Src/cmor_tables.c: In function 'cmor_set_experiments.part.0': +Src/cmor_tables.c:292:25: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s: Too many experiments defined", table->szTable_id); + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_md5.c +Src/cmor.c: In function 'cmor_add_traceback.part.0': +Src/cmor.c:423:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1008 [-Wformat-overflow=] + sprintf(tmp, "%s\n! called from: %s", name, cmor_traceback_info); + ^~ ~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 1040) into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_axes.c: In function 'cmor_convert_interval_to_seconds': Src/cmor_axes.c:105:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 993 [-Wformat-truncation=] "In udunits parsing user units: %s", msg); @@ -17084,38 +17160,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_grids.c: In function 'cmor_set_mapping_attribute': -Src/cmor_grids.c:501:56: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] - "Unknown attribute: '%s' for mapping '%s' (value was: '%s')", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 53 or more bytes (assuming 1076) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_set_dataset_att': -Src/cmor_tables.c:499:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 6 [-Wrestrict] - snprintf(value, CMOR_MAX_STRING, - ^~~~~ -Src/cmor_tables.c:503:42: - table->szTable_id, att, value); - ~~~~~ -x86_64-linux-gnu-gcc: Src/cmor_md5.c -Src/cmor_tables.c: In function 'cmor_set_experiments.part.0': -Src/cmor_tables.c:292:25: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s: Too many experiments defined", table->szTable_id); - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc: Src/cmor_variables.c -x86_64-linux-gnu-gcc: Src/cmor_CV.c Src/cmor_tables.c: In function 'cmor_set_dataset_att': Src/cmor_tables.c:500:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1017 [-Wformat-truncation=] "table: %s, This keyword: %s value (%s) " @@ -17160,39 +17205,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_add_traceback.part.0': -Src/cmor.c:423:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1008 [-Wformat-overflow=] - sprintf(tmp, "%s\n! called from: %s", name, cmor_traceback_info); - ^~ ~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 1040) into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from include/cmor.h:577, - from Src/cmor_variables.c:4: -include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern void cmor_set_terminate_signal_to_sigint(); - ^~~~~~ -include/cmor_func_def.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern void cmor_set_terminate_signal_to_sigterm(); - ^~~~~~ -include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern int cmor_get_terminate_signal(); - ^~~~~~ -In file included from include/cmor.h:577, - from Src/cmor_CV.c:7: -include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern void cmor_set_terminate_signal_to_sigint(); - ^~~~~~ -include/cmor_func_def.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern void cmor_set_terminate_signal_to_sigterm(); - ^~~~~~ -include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - extern int cmor_get_terminate_signal(); - ^~~~~~ Src/cmor.c: In function 'cmor_prep_units': Src/cmor.c:521:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] "Udunits: Error getting converter from %s to %s", cunits, @@ -17216,40 +17228,18 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_load_table_internal': -Src/cmor_tables.c:693:51: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(word, CMOR_MAX_STRING, "%s/%s", cmor_input_path, szTable); - ^ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:964:57: warning: '%s' directive output may be truncated writing up to 1023999 bytes into a region of size 992 [-Wformat-truncation=] - "attribute for unknown section: %s,%s (table: %s)", - ^~ - key, szVal, cmor_tables[cmor_ntables].szTable_id); - ~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1024042) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:747:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Could not read file %s check file permission", word); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/cdTime/timeConv.c +x86_64-linux-gnu-gcc: Src/cmor_CV.c +In file included from include/cmor.h:577, + from Src/cmor_variables.c:4: +include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern void cmor_set_terminate_signal_to_sigint(); + ^~~~~~ +include/cmor_func_def.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern void cmor_set_terminate_signal_to_sigterm(); + ^~~~~~ +include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern int cmor_get_terminate_signal(); + ^~~~~~ Src/cmor.c: In function 'cmor_open_inpathFile': Src/cmor.c:1232:57: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(szFullName, CMOR_MAX_STRING, "%s/%s", cmor_input_path, @@ -17299,48 +17289,55 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from include/cmor.h:577, + from Src/cmor_CV.c:7: +include/cmor_func_def.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern void cmor_set_terminate_signal_to_sigint(); + ^~~~~~ +include/cmor_func_def.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern void cmor_set_terminate_signal_to_sigterm(); + ^~~~~~ +include/cmor_func_def.h:18:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + extern int cmor_get_terminate_signal(); + ^~~~~~ Src/cmor_variables.c: In function 'cmor_write_var_to_file': Src/cmor_variables.c:2371:9: warning: unused variable 'bb' [-Wunused-variable] int bb; ^~ -x86_64-linux-gnu-gcc: Src/cdTime/fcdTimeConv.c -Src/cmor_tables.c: In function 'cmor_load_table': -Src/cmor_tables.c:619:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szAxisEntryFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_load_table_internal': +Src/cmor_tables.c:693:51: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(word, CMOR_MAX_STRING, "%s/%s", cmor_input_path, szTable); + ^ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:631:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szFormulaVarFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:964:57: warning: '%s' directive output may be truncated writing up to 1023999 bytes into a region of size 992 [-Wformat-truncation=] + "attribute for unknown section: %s,%s (table: %s)", + ^~ + key, szVal, cmor_tables[cmor_ntables].szTable_id); + ~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1024042) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:637:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szControlFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:747:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Could not read file %s check file permission", word); + ^~ ~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cdTime/timeConv.c Src/cmor.c: In function 'cmor_outpath_exist': Src/cmor.c:1727:60: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] "You defined your output directory to be: '%s', but we\n! " @@ -17420,33 +17417,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_treat_axis_values': -Src/cmor_axes.c:941:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] - "In udunits analyzing table defined units (%s)\n! " - ^~ -Src/cmor_axes.c:943:22: - local_unit, refaxis->id, - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:922:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] - "In udunits analyzing units from user (%s),\n! " - ^~ -Src/cmor_axes.c:924:22: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 59 or more bytes (assuming 1082) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cdTime/fcdTimeConv.c Src/cmor.c: In function 'cmor_convert_string_to_list': Src/cmor.c:1788:53: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] "unknown conversion '%c' for list: %s", type, values); @@ -17470,10 +17441,104 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_load_table': +Src/cmor_tables.c:619:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szAxisEntryFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:631:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szFormulaVarFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:637:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szControlFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Src/cdTime/fcdTimeConv.c:26: include/cdTime/cfortran.h:598:14: warning: 'kill_trailingn' defined but not used [-Wunused-function] static char *kill_trailingn(char *s, char t, char *e) ^~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_define_zfactors_vars': +Src/cmor.c:1958:64: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] + "could not find the zfactor variable: %s. \n! " + ^~ +Src/cmor.c:1962:46: + " dimensions.\n! ", ctmp, + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 172 or more bytes (assuming 1195) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:2017:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 950 [-Wformat-truncation=] + "variable \"%s\" (table: %s) has axis \"%s\"\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:2023:75: + cmor_axes[cmor_vars[var_id].axes_ids[i]].id, ctmp, + ~~~~ +Src/cmor.c:2018:70: note: format string is defined here + "defined with formula terms, but term \"%s\"\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 133 or more bytes (assuming 1156) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c: In function 'cmor_treat_axis_values': +Src/cmor_axes.c:941:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] + "In udunits analyzing table defined units (%s)\n! " + ^~ +Src/cmor_axes.c:943:22: + local_unit, refaxis->id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:922:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] + "In udunits analyzing units from user (%s),\n! " + ^~ +Src/cmor_axes.c:924:22: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 59 or more bytes (assuming 1082) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkFurtherInfoURL': Src/cmor_CV.c:410:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 915 [-Wformat-truncation=] "The further info in attribute does not match " @@ -17530,32 +17595,32 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_define_zfactors_vars': -Src/cmor.c:1958:64: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] - "could not find the zfactor variable: %s. \n! " - ^~ -Src/cmor.c:1962:46: - " dimensions.\n! ", ctmp, - ~~~~ +Src/cmor_variables.c: In function 'cmor_has_required_variable_attributes': +Src/cmor_variables.c:94:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] + "variable %s (table %s) does not have required " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:96:64: + cmor_vars[var_id].id, pTable->szTable_id, astr); + ~~~~ +Src/cmor_variables.c:95:34: note: format string is defined here + "attribute: %s", + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 172 or more bytes (assuming 1195) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 54 or more bytes (assuming 1077) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:2017:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 950 [-Wformat-truncation=] - "variable \"%s\" (table: %s) has axis \"%s\"\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:2023:75: - cmor_axes[cmor_vars[var_id].axes_ids[i]].id, ctmp, - ~~~~ -Src/cmor.c:2018:70: note: format string is defined here - "defined with formula terms, but term \"%s\"\n! " - ^~ +Src/cmor_variables.c: In function 'cmor_update_history': +Src/cmor_variables.c:1001:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] + snprintf(tmp2, CMOR_MAX_STRING, "%s %s altered by CMOR: %s.", + ^~ + tmp, date, add); + ~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 133 or more bytes (assuming 1156) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 21 or more bytes (assuming 2067) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -17665,165 +17730,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_has_required_variable_attributes': -Src/cmor_variables.c:94:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] - "variable %s (table %s) does not have required " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:96:64: - cmor_vars[var_id].id, pTable->szTable_id, astr); - ~~~~ -Src/cmor_variables.c:95:34: note: format string is defined here - "attribute: %s", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 54 or more bytes (assuming 1077) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_update_history': -Src/cmor_variables.c:1001:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] - snprintf(tmp2, CMOR_MAX_STRING, "%s %s altered by CMOR: %s.", - ^~ - tmp, date, add); - ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 21 or more bytes (assuming 2067) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_check_interval': -Src/cmor_axes.c:1388:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 992 [-Wformat-truncation=] - "In udunuits parsing user units: %s, axis: %s (table: %s)", - ^~ - ctmp2, cmor_axes[axis_id].id, - ~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 51 or more bytes (assuming 1074) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1456:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 993 [-Wformat-truncation=] - "In udunits parsing user units: %s, axis: %s (table: %s)", - ^~ - ctmp2, cmor_axes[axis_id].id, - ~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 50 or more bytes (assuming 1073) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1476:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] - "Udunits: Error getting converter from %s to %s, axis: %s (table: %s)", - ^~ - ctmp2, msg, cmor_axes[axis_id].id, - ~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 61 or more bytes (assuming 2107) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1541:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 896 and 911 [-Wformat-truncation=] - "approximate time axis interval is defined as %f " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1545:60: - interv, interval, i + 1, diff2, diff, ctmp2, tmp * 100.); - ~~~~~ -Src/cmor_axes.c:1543:35: note: format string is defined here - "seconds (%f %s), which is %f %% , seems too big, check " - ^~ -Src/cmor_axes.c:1541:22: note: assuming directive output of 8 bytes - "approximate time axis interval is defined as %f " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 166 or more bytes (assuming 1209) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1524:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 896 and 911 [-Wformat-truncation=] - "approximate time axis interval is defined as %f " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1528:68: - interv, interval, i + 1, diff2, diff, ctmp2, - ~~~~~ -Src/cmor_axes.c:1526:46: note: format string is defined here - "%f seconds (%f %s), which is %f %% , seems too big, " - ^~ -Src/cmor_axes.c:1524:30: note: assuming directive output of 8 bytes - "approximate time axis interval is defined as %f " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 166 or more bytes (assuming 1209) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1507:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 877 and 892 [-Wformat-truncation=] - "approximate time axis interval is defined as %f " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1511:64: - interv, interval, i + 1, diff2, diff, ctmp2, - ~~~~~ -Src/cmor_axes.c:1509:64: note: format string is defined here - "(based on bounds) of %f seconds, (%f %s), which " - ^~ -Src/cmor_axes.c:1507:26: note: assuming directive output of 8 bytes - "approximate time axis interval is defined as %f " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 185 or more bytes (assuming 1228) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1558:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] - "Cannot convert times for calendar: %s", ctmp); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 36 and 1059 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1464:40: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] - "axis interval units (%s) are incompatible with seconds, axis: %s (table: %s)", - ^~ - ctmp2, cmor_axes[axis_id].id, - ~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 71 or more bytes (assuming 1094) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1395:40: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] - "axis interval units (%s) are incompatible with\n! " - ^~ -Src/cmor_axes.c:1397:18: - ctmp2, cmor_axes[axis_id].id, - ~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 73 or more bytes (assuming 1096) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'CV_VerifyNBElement': Src/cmor_CV.c:749:24: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1019 [-Wformat-truncation=] "Your %s has more than 0 element\n! " @@ -17929,6 +17835,7 @@ Src/cmor_CV.c:881:52: GLOBAL_ATT_SUB_EXPT_ID, NONE, CV_Filename); ~~~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_variable': Src/cmor_CV.c:880:68: note: format string is defined here "as defined in your Control Vocabulary file \"%s\".\n! ", ^~ @@ -17942,6 +17849,9 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1090:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] + "Could not find a matching variable for name: '%s'", ctmp); + ^~ ~~~~ Src/cmor_CV.c:956:64: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 974 [-Wformat-truncation=] "Your input attribute \"%s\" defined as \"%s\" " ^~ @@ -17949,6 +17859,13 @@ GLOBAL_ATT_SUB_EXPT, szValue, ~~~~~~~ In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, from include/cdTime/cdmsint.h:37, from include/cmor_func_def.h:9, from include/cmor.h:577, @@ -17986,6 +17903,9 @@ Src/cmor_CV.c:935:64: note: format string is defined here "as defined in your Control Vocabulary file \"%s\".\n! ", ^~ +Src/cmor_variables.c:1229:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] + "Converted units from '%s' to '%s'", units, refvar.units); + ^~ ~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from include/cdTime/cdmsint.h:37, from include/cmor_func_def.h:9, @@ -17996,6 +17916,13 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 30 or more bytes (assuming 1053) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c:866:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 918 [-Wformat-truncation=] "Your \"%s\" defined in your input file\n! " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -18067,6 +17994,52 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1603:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "You defined variable '%s' (table %s) with axis " + ^~ +Src/cmor_variables.c:1606:22: + refvar.id, + ~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 173 or more bytes (assuming 2219) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1631:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "You defined variable '%s' (table %s) with axis " + ^~ +Src/cmor_variables.c:1634:22: + refvar.id, + ~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 121 or more bytes (assuming 1144) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1698:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, + ^ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1694:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, + ^ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkParentExpID': Src/cmor_CV.c:1053:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 932 [-Wformat-truncation=] "Your input attribute \"%s\" is not defined properly \n! " @@ -18478,69 +18451,131 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_variable': -Src/cmor_variables.c:1090:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] - "Could not find a matching variable for name: '%s'", ctmp); - ^~ ~~~~ +Src/cmor_axes.c: In function 'cmor_check_interval': +Src/cmor_axes.c:1388:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 992 [-Wformat-truncation=] + "In udunuits parsing user units: %s, axis: %s (table: %s)", + ^~ + ctmp2, cmor_axes[axis_id].id, + ~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 51 or more bytes (assuming 1074) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1229:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] - "Converted units from '%s' to '%s'", units, refvar.units); - ^~ ~~~~~~~~~~~~ +Src/cmor_axes.c:1456:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 993 [-Wformat-truncation=] + "In udunits parsing user units: %s, axis: %s (table: %s)", + ^~ + ctmp2, cmor_axes[axis_id].id, + ~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 30 or more bytes (assuming 1053) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 50 or more bytes (assuming 1073) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1603:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "You defined variable '%s' (table %s) with axis " - ^~ -Src/cmor_variables.c:1606:22: - refvar.id, - ~~~~~~~~~ +Src/cmor_axes.c:1476:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] + "Udunits: Error getting converter from %s to %s, axis: %s (table: %s)", + ^~ + ctmp2, msg, cmor_axes[axis_id].id, + ~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 173 or more bytes (assuming 2219) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 61 or more bytes (assuming 2107) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1631:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "You defined variable '%s' (table %s) with axis " - ^~ -Src/cmor_variables.c:1634:22: - refvar.id, - ~~~~~~~~~ +Src/cmor_axes.c:1541:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 896 and 911 [-Wformat-truncation=] + "approximate time axis interval is defined as %f " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1545:60: + interv, interval, i + 1, diff2, diff, ctmp2, tmp * 100.); + ~~~~~ +Src/cmor_axes.c:1543:35: note: format string is defined here + "seconds (%f %s), which is %f %% , seems too big, check " + ^~ +Src/cmor_axes.c:1541:22: note: assuming directive output of 8 bytes + "approximate time axis interval is defined as %f " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 121 or more bytes (assuming 1144) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 166 or more bytes (assuming 1209) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1698:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, - ^ +Src/cmor_axes.c:1524:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 896 and 911 [-Wformat-truncation=] + "approximate time axis interval is defined as %f " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1528:68: + interv, interval, i + 1, diff2, diff, ctmp2, + ~~~~~ +Src/cmor_axes.c:1526:46: note: format string is defined here + "%f seconds (%f %s), which is %f %% , seems too big, " + ^~ +Src/cmor_axes.c:1524:30: note: assuming directive output of 8 bytes + "approximate time axis interval is defined as %f " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 166 or more bytes (assuming 1209) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1694:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, - ^ +Src/cmor_axes.c:1507:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 877 and 892 [-Wformat-truncation=] + "approximate time axis interval is defined as %f " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1511:64: + interv, interval, i + 1, diff2, diff, ctmp2, + ~~~~~ +Src/cmor_axes.c:1509:64: note: format string is defined here + "(based on bounds) of %f seconds, (%f %s), which " + ^~ +Src/cmor_axes.c:1507:26: note: assuming directive output of 8 bytes + "approximate time axis interval is defined as %f " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 185 or more bytes (assuming 1228) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1558:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] + "Cannot convert times for calendar: %s", ctmp); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 36 and 1059 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1464:40: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] + "axis interval units (%s) are incompatible with seconds, axis: %s (table: %s)", + ^~ + ctmp2, cmor_axes[axis_id].id, + ~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 71 or more bytes (assuming 1094) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1395:40: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] + "axis interval units (%s) are incompatible with\n! " + ^~ +Src/cmor_axes.c:1397:18: + ctmp2, cmor_axes[axis_id].id, + ~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 73 or more bytes (assuming 1096) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -18606,48 +18641,35 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_axis': -Src/cmor_axes.c:1761:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 962 [-Wformat-truncation=] - "axis: %s (table: %s) is declared to be converted " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1765:26: - refaxis.convert_to); - ~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1762:44: note: format string is defined here - "to unknown type: %s", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1931:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 969 [-Wformat-truncation=] - "Requested region for axis '%s' (table: %s) " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:1934:70: - cmor_tables[CMOR_TABLE].szTable_id, ctmp); - ~~~~ -Src/cmor_axes.c:1932:51: note: format string is defined here - "is not passed: '%s'", - ^~ +Src/cmor.c: In function 'cmor_write_all_attributes': +Src/cmor.c:3311:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 949 [-Wformat-truncation=] + "NetCDF error (%i: %s) for variable %s\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3315:42: + GLOBAL_ATT_LICENSE, value); + ~~~~~ +Src/cmor.c:3312:60: note: format string is defined here + "(table: %s) writing global att: %s (%s)", + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 1100) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2079:53: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 706 and 1020 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "%lf %s", - ^~ -Src/cmor_axes.c:2081:62: - ref_table_id].interval, ctmp); - ~~~~ +Src/cmor.c:3323:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 936 [-Wformat-truncation=] + "NetCDF error (%i: %s) for variable %s\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3328:46: + GLOBAL_ATT_LICENSE, value); + ~~~~~ +Src/cmor.c:3325:41: note: format string is defined here + "metafile: %s (%s)", ierr, + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 5 and 1342 bytes into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 90 or more bytes (assuming 1113) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -18687,35 +18709,48 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_write_all_attributes': -Src/cmor.c:3311:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 949 [-Wformat-truncation=] - "NetCDF error (%i: %s) for variable %s\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3315:42: - GLOBAL_ATT_LICENSE, value); - ~~~~~ -Src/cmor.c:3312:60: note: format string is defined here - "(table: %s) writing global att: %s (%s)", - ^~ +Src/cmor_axes.c: In function 'cmor_axis': +Src/cmor_axes.c:1761:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 962 [-Wformat-truncation=] + "axis: %s (table: %s) is declared to be converted " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1765:26: + refaxis.convert_to); + ~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1762:44: note: format string is defined here + "to unknown type: %s", + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 1100) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3323:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 936 [-Wformat-truncation=] - "NetCDF error (%i: %s) for variable %s\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3328:46: - GLOBAL_ATT_LICENSE, value); - ~~~~~ -Src/cmor.c:3325:41: note: format string is defined here - "metafile: %s (%s)", ierr, - ^~ +Src/cmor_axes.c:1931:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 969 [-Wformat-truncation=] + "Requested region for axis '%s' (table: %s) " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:1934:70: + cmor_tables[CMOR_TABLE].szTable_id, ctmp); + ~~~~ +Src/cmor_axes.c:1932:51: note: format string is defined here + "is not passed: '%s'", + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 90 or more bytes (assuming 1113) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2079:53: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 706 and 1020 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "%lf %s", + ^~ +Src/cmor_axes.c:2081:62: + ref_table_id].interval, ctmp); + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 5 and 1342 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -18881,6 +18916,20 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_create_var_attributes': +Src/cmor.c:4881:78: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 968 [-Wformat-truncation=] + "NetCDF Error (%i: %s) leaving definition mode for metafile %s", + ^~ +Src/cmor.c:4883:18: + cmor_current_dataset.associated_file_name); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkISOTime': Src/cmor_CV.c:2277:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] "Your global attribute " @@ -18901,93 +18950,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_set_axis_def_att': -Src/cmor_axes.c:2506:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] - "Unknown attribute >>>%s<<< for axis section " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2507:20: note: format string is defined here - "(%s, table: %s), value: %s", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2495:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory " - ^~ -Src/cmor_axes.c:2495:26: note: directive argument in the range [1, 9223372036854775806] - "axis (%s, table: %s): cannot allocate memory " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 2141) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2441:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): looks like we already read " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2453:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2470:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for %i " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2349:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): looks like we already read " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2362:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2383:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for %i " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_variable': Src/cmor_CV.c:2339:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] "Could not find a matching variable for name: '%s'", ctmp); @@ -19002,20 +18964,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_create_var_attributes': -Src/cmor.c:4881:78: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 968 [-Wformat-truncation=] - "NetCDF Error (%i: %s) leaving definition mode for metafile %s", - ^~ -Src/cmor.c:4883:18: - cmor_current_dataset.associated_file_name); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_variables.c: In function 'cmor_zfactor': Src/cmor_variables.c:791:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] "Udunits: Error parsing user units: %s, " @@ -19109,29 +19057,89 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_set_var_def_att': -Src/cmor_variables.c:1967:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 969 and 978 [-Wformat-truncation=] - "Too many dimensions (%i) defined for variable " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1968:28: note: format string is defined here - "(%s), max is: %i", var->ndims, var->id, - ^~ +Src/cmor_axes.c: In function 'cmor_set_axis_def_att': +Src/cmor_axes.c:2506:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] + "Unknown attribute >>>%s<<< for axis section " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2507:20: note: format string is defined here + "(%s, table: %s), value: %s", + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 59 and 1091 bytes into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:2010:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] - "Reading table %s: axis name: '%s' for " - ^~ -Src/cmor_variables.c:2014:73: - cmor_tables[var->table_id].szTable_id, dim, - ~~~ +Src/cmor_axes.c:2495:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory " + ^~ +Src/cmor_axes.c:2495:26: note: directive argument in the range [1, 9223372036854775806] + "axis (%s, table: %s): cannot allocate memory " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 119 or more bytes (assuming 2165) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 2141) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2441:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): looks like we already read " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2453:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2470:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for %i " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2349:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): looks like we already read " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2362:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2383:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for %i " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -19245,6 +19253,33 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_set_var_def_att': +Src/cmor_variables.c:1967:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 969 and 978 [-Wformat-truncation=] + "Too many dimensions (%i) defined for variable " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1968:28: note: format string is defined here + "(%s), max is: %i", var->ndims, var->id, + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 59 and 1091 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:2010:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] + "Reading table %s: axis name: '%s' for " + ^~ +Src/cmor_variables.c:2014:73: + cmor_tables[var->table_id].szTable_id, dim, + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 119 or more bytes (assuming 2165) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_variables.c: In function 'cmor_get_original_shape': Src/cmor_variables.c:2317:56: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] "trying to retrieve shape of variable %s (table: %s) into a %id " @@ -19259,6 +19294,107 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_addRIPF': +Src/cmor.c:5617:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] + "Your realization_index \"%s\" is invalid. \n! " + ^~ + "It cannot contains more than 4 digits. \n! ", tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 84 and 1107 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5626:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] + "Your realization_index \"%s\" is invalid. \n! " + ^~ +Src/cmor.c:5628:22: + tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 92 and 1115 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5644:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + "Your initialization_index \"%s\" is invalid. \n! " + ^~ + "It cannot contains more than 4 digits. \n! ", tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 87 and 1110 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5653:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + "Your initialization_index \"%s\" is invalid. \n! " + ^~ +Src/cmor.c:5655:22: + tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 95 and 1118 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5672:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Your physics_index \"%s\" is invalid. \n! " + ^~ + "It cannot contains more than 4 digits. \n! ", tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 80 and 1103 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5681:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Your physics_index \"%s\" is invalid. \n! " + ^~ +Src/cmor.c:5683:22: + tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 88 and 1111 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5699:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Your forcing_index \"%s\" is invalid. \n! " + ^~ + "It cannot contains more than 4 digits. \n! ", tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 80 and 1103 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5708:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Your forcing_index \"%s\" is invalid. \n! " + ^~ +Src/cmor.c:5710:22: + tmp); + ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 88 and 1111 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_variables.c: In function 'cmor_write_var_to_file': Src/cmor_variables.c:2393:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 942 and 952 [-Wformat-truncation=] "you are passing %i time steps for a static " @@ -19680,107 +19816,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_addRIPF': -Src/cmor.c:5617:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] - "Your realization_index \"%s\" is invalid. \n! " - ^~ - "It cannot contains more than 4 digits. \n! ", tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 84 and 1107 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5626:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] - "Your realization_index \"%s\" is invalid. \n! " - ^~ -Src/cmor.c:5628:22: - tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 92 and 1115 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5644:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - "Your initialization_index \"%s\" is invalid. \n! " - ^~ - "It cannot contains more than 4 digits. \n! ", tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 87 and 1110 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5653:51: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - "Your initialization_index \"%s\" is invalid. \n! " - ^~ -Src/cmor.c:5655:22: - tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 95 and 1118 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5672:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Your physics_index \"%s\" is invalid. \n! " - ^~ - "It cannot contains more than 4 digits. \n! ", tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 80 and 1103 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5681:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Your physics_index \"%s\" is invalid. \n! " - ^~ -Src/cmor.c:5683:22: - tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 88 and 1111 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5699:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Your forcing_index \"%s\" is invalid. \n! " - ^~ - "It cannot contains more than 4 digits. \n! ", tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 80 and 1103 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5708:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Your forcing_index \"%s\" is invalid. \n! " - ^~ -Src/cmor.c:5710:22: - tmp); - ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 88 and 1111 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor.c: In function 'cmor_setup': Src/cmor.c:901:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1001 [-Wformat-truncation=] "Could not open logfile %s for writing", tmplogfile); @@ -20455,57 +20490,21 @@ creating build/temp.linux-x86_64-3.7/Src/json-c compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Iinclude -Iinclude/cdTime -Iinclude/json-c -I/usr/include -I/usr/include/python3.7m -c' extra options: '-DgFortran' -x86_64-linux-gnu-gcc: Src/_cmormodule.c x86_64-linux-gnu-gcc: Src/cdTime/cdRegTrfm.c x86_64-linux-gnu-gcc: Src/cdTime/cdTimeConv.c x86_64-linux-gnu-gcc: Src/cdTime/cdUtil.c +x86_64-linux-gnu-gcc: Src/_cmormodule.c x86_64-linux-gnu-gcc: Src/cdTime/reg_trfm.c x86_64-linux-gnu-gcc: Src/cdTime/timeArith.c -x86_64-linux-gnu-gcc: Src/cdTime/timeConv.c x86_64-linux-gnu-gcc: Src/cdTime/fcdTimeConv.c +x86_64-linux-gnu-gcc: Src/cdTime/timeConv.c x86_64-linux-gnu-gcc: Src/cmor.c -Src/cdTime/cdTimeConv.c: In function 'cdParseRelunits': -Src/cdTime/cdTimeConv.c:190:25: warning: '%s' directive writing up to 47 bytes into a region of size between 0 and 47 [-Wformat-overflow=] - sprintf(basetime,"%s %s",basetime_1,basetime_2); - ^~ ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cdTime/cdTimeConv.c:33: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 96 bytes into a destination of size 48 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc: Src/cmor_CV.c -x86_64-linux-gnu-gcc: Src/cmor_axes.c In file included from Src/cdTime/fcdTimeConv.c:26: include/cdTime/cfortran.h:598:14: warning: 'kill_trailingn' defined but not used [-Wunused-function] static char *kill_trailingn(char *s, char t, char *e) ^~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/cmor_cfortran_interface.c -Src/cmor.c:122:1: warning: "/*" within comment [-Wcomment] - /**************************************************************************/ - -x86_64-linux-gnu-gcc: Src/cmor_grids.c -x86_64-linux-gnu-gcc: Src/cmor_md5.c -Src/cmor_axes.c: In function 'cmor_convert_interval_to_seconds': -Src/cmor_axes.c:104:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict] - snprintf(msg, CMOR_MAX_STRING, - ^~~ - "In udunits parsing user units: %s", msg); - ~~~ -Src/cmor_axes.c: In function 'cmor_check_interval': -Src/cmor_axes.c:1475:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Wrestrict] - snprintf(msg, CMOR_MAX_STRING, - ^~~ -Src/cmor_axes.c:1477:25: - ctmp2, msg, cmor_axes[axis_id].id, - ~~~ -Src/cmor_axes.c:1557:22: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict] - snprintf(ctmp, CMOR_MAX_STRING, - ^~~~ - "Cannot convert times for calendar: %s", ctmp); - ~~~~ -x86_64-linux-gnu-gcc: Src/cmor_tables.c +x86_64-linux-gnu-gcc: Src/cmor_axes.c Src/_cmormodule.c: In function 'PyCMOR_set_variable_attribute': Src/_cmormodule.c:186:15: warning: assignment to 'char *' from incompatible pointer type 'PyObject *' {aka 'struct _object *'} [-Wincompatible-pointer-types] value = PyString_AsString(oValue); @@ -20545,86 +20544,44 @@ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:1: note: expected 'const char * restrict' but argument is of type 'PyObject *' {aka 'struct _object *'} __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^~~~~ +Src/cmor.c:122:1: warning: "/*" within comment [-Wcomment] + /**************************************************************************/ + Src/_cmormodule.c: In function 'PyInit__cmor': Src/_cmormodule.c:1167:26: warning: unused variable 'st' [-Wunused-variable] struct module_state *st = GETSTATE(module); ^~ -Src/cmor_tables.c: In function 'cmor_set_dataset_att': -Src/cmor_tables.c:499:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 6 [-Wrestrict] - snprintf(value, CMOR_MAX_STRING, - ^~~~~ -Src/cmor_tables.c:503:42: - table->szTable_id, att, value); - ~~~~~ -Src/cmor_axes.c: In function 'cmor_convert_interval_to_seconds': -Src/cmor_axes.c:105:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 993 [-Wformat-truncation=] - "In udunits parsing user units: %s", msg); - ^~ ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 32 and 1055 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:110:40: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] - "axis interval units (%s) are incompatible with seconds", msg); - ^~ ~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 53 and 1076 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_set_experiments.part.0': -Src/cmor_tables.c:292:25: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s: Too many experiments defined", table->szTable_id); - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/cmor_variables.c -Src/cmor_grids.c: In function 'cmor_set_grid_attribute': -Src/cmor_grids.c:258:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 984 [-Wformat-truncation=] - "%s parameter must be between -180 and 180 %s, will not be set", - ^~ - name, ctmp); - ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 58 or more bytes (assuming 1081) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_grids.c:242:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] - "%s parameter must be between -90 and 90 %s, will not be set", - ^~ - name, ctmp); - ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 56 or more bytes (assuming 1079) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_add_traceback.part.0': -Src/cmor.c:423:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1008 [-Wformat-overflow=] - sprintf(tmp, "%s\n! called from: %s", name, cmor_traceback_info); - ^~ ~~~~~~~~~~~~~~~~~~~ +Src/cdTime/cdTimeConv.c: In function 'cdParseRelunits': +Src/cdTime/cdTimeConv.c:190:25: warning: '%s' directive writing up to 47 bytes into a region of size between 0 and 47 [-Wformat-overflow=] + sprintf(basetime,"%s %s",basetime_1,basetime_2); + ^~ ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 1040) into a destination of size 1024 + from Src/cdTime/cdTimeConv.c:33: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 96 bytes into a destination of size 48 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_cfortran_interface.c +Src/cmor_axes.c: In function 'cmor_convert_interval_to_seconds': +Src/cmor_axes.c:104:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict] + snprintf(msg, CMOR_MAX_STRING, + ^~~ + "In udunits parsing user units: %s", msg); + ~~~ +Src/cmor_axes.c: In function 'cmor_check_interval': +Src/cmor_axes.c:1475:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Wrestrict] + snprintf(msg, CMOR_MAX_STRING, + ^~~ +Src/cmor_axes.c:1477:25: + ctmp2, msg, cmor_axes[axis_id].id, + ~~~ +Src/cmor_axes.c:1557:22: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict] + snprintf(ctmp, CMOR_MAX_STRING, + ^~~~ + "Cannot convert times for calendar: %s", ctmp); + ~~~~ +x86_64-linux-gnu-gcc: Src/cmor_grids.c Src/cmor_CV.c: In function 'cmor_CV_checkFurtherInfoURL': Src/cmor_CV.c:410:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 915 [-Wformat-truncation=] "The further info in attribute does not match " @@ -20645,6 +20602,27 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c: In function 'cmor_convert_interval_to_seconds': +Src/cmor_axes.c:105:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 993 [-Wformat-truncation=] + "In udunits parsing user units: %s", msg); + ^~ ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 32 and 1055 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:110:40: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] + "axis interval units (%s) are incompatible with seconds", msg); + ^~ ~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 53 and 1076 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkSourceType': Src/cmor_CV.c:536:54: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] "The following source type(s) \"%s\" are required and\n! " @@ -20681,46 +20659,27 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_set_dataset_att': -Src/cmor_tables.c:500:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1017 [-Wformat-truncation=] - "table: %s, This keyword: %s value (%s) " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 125 or more bytes (assuming 2171) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:430:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s: Too many experiments defined", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:403:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s is already defined", table->szTable_id); - ^~ +Src/cmor_grids.c: In function 'cmor_set_grid_attribute': +Src/cmor_grids.c:258:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 984 [-Wformat-truncation=] + "%s parameter must be between -180 and 180 %s, will not be set", + ^~ + name, ctmp); + ~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 26 and 1049 bytes into a destination of size 1024 + from Src/cmor_grids.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 58 or more bytes (assuming 1081) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:341:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s is defined for cmor_version %f, " - ^~ -Src/cmor_tables.c:341:22: note: assuming directive output of 8 bytes - "Table %s is defined for cmor_version %f, " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_grids.c:242:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] + "%s parameter must be between -90 and 90 %s, will not be set", + ^~ + name, ctmp); + ~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 81 and 1418 bytes into a destination of size 1024 + from Src/cmor_grids.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 56 or more bytes (assuming 1079) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -20830,29 +20789,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_prep_units': -Src/cmor.c:521:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] - "Udunits: Error getting converter from %s to %s", cunits, - ^~ - local_unit); - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1066) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:499:55: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 988 [-Wformat-truncation=] - "Udunits: analyzing units from user (%s)", local_unit); - ^~ ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 38 and 1061 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_md5.c Src/cmor_CV.c: In function 'CV_VerifyNBElement': Src/cmor_CV.c:749:24: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1019 [-Wformat-truncation=] "Your %s has more than 0 element\n! " @@ -20880,6 +20817,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_tables.c Src/cmor_CV.c: In function 'CV_CompareNoParent': Src/cmor_CV.c:774:60: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 990 [-Wformat-truncation=] "Your input attribute %s with value \"%s\" \n! " @@ -20897,11 +20835,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_write_var_to_file': -Src/cmor_variables.c:2371:9: warning: unused variable 'bb' [-Wunused-variable] - int bb; - ^~ -x86_64-linux-gnu-gcc: Src/json-c/arraylist.c Src/cmor_CV.c: In function 'cmor_CV_checkSubExpID': Src/cmor_CV.c:919:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 935 [-Wformat-truncation=] "Your input attribute \"%s\" is not defined properly \n! " @@ -21101,99 +21034,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_open_inpathFile': -Src/cmor.c:1232:57: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(szFullName, CMOR_MAX_STRING, "%s/%s", cmor_input_path, - ^ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1291:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 945 [-Wformat-truncation=] - "Please validate JSON File!\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1293:56: - "Syntax Error in file: %s\n! " "%s", szFullName, buffer); - ~~~~~~~~~~ -Src/cmor.c:1293:41: note: format string is defined here - "Syntax Error in file: %s\n! " "%s", szFullName, buffer); - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 84 or more bytes (assuming 1107) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1278:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Could not read file %s check file permission", szFullName); - ^~ ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1264:47: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - "Could not understand file \"%s\" Is this a JSON CMOR table?", - ^~ - szFullName); - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 56 and 1079 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_load_table_internal': -Src/cmor_tables.c:693:51: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(word, CMOR_MAX_STRING, "%s/%s", cmor_input_path, szTable); - ^ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:964:57: warning: '%s' directive output may be truncated writing up to 1023999 bytes into a region of size 992 [-Wformat-truncation=] - "attribute for unknown section: %s,%s (table: %s)", - ^~ - key, szVal, cmor_tables[cmor_ntables].szTable_id); - ~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1024042) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:747:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Could not read file %s check file permission", word); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_grids.c: In function 'cmor_set_mapping_attribute': -Src/cmor_grids.c:501:56: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] - "Unknown attribute: '%s' for mapping '%s' (value was: '%s')", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 53 or more bytes (assuming 1076) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkParentExpID': Src/cmor_CV.c:1053:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 932 [-Wformat-truncation=] "Your input attribute \"%s\" is not defined properly \n! " @@ -21605,146 +21445,36 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_outpath_exist': -Src/cmor.c:1727:60: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] - "You defined your output directory to be: '%s', but we\n! " - ^~ -Src/cmor.c:1729:17: - cmor_current_dataset.outpath); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 97 and 1120 bytes into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1706:60: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] - "You defined your output directory to be: '%s', but this\n! " - ^~ -Src/cmor.c:1708:17: - cmor_current_dataset.outpath); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 103 and 1126 bytes into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1717:63: warning: '%s' directive writing up to 1023 bytes into a region of size 983 [-Wformat-overflow=] - "CMOR was unable to create this directory %s\n! " - ^~ -Src/cmor.c:1719:21: - cmor_current_dataset.outpath); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 79 and 1102 bytes into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1692:68: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] - "You defined your output directory to be: '%s', but\n! " - ^~ -Src/cmor.c:1694:25: - cmor_current_dataset.outpath); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 96 and 1119 bytes into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1674:64: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] - "You defined your output directory to be: '%s',\n! " - ^~ -Src/cmor.c:1676:21: - cmor_current_dataset.outpath); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 99 and 1122 bytes into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1666:64: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] - "You defined your output directory to be: '%s',\n! " - ^~ -Src/cmor.c:1668:21: - cmor_current_dataset.outpath); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_set_dataset_att': +Src/cmor_tables.c:499:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 6 [-Wrestrict] + snprintf(value, CMOR_MAX_STRING, + ^~~~~ +Src/cmor_tables.c:503:42: + table->szTable_id, att, value); + ~~~~~ +Src/cmor.c: In function 'cmor_add_traceback.part.0': +Src/cmor.c:423:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1008 [-Wformat-overflow=] + sprintf(tmp, "%s\n! called from: %s", name, cmor_traceback_info); + ^~ ~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 99 and 1122 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 1040) into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/debug.c -Src/cmor.c: In function 'cmor_convert_string_to_list': -Src/cmor.c:1788:53: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] - "unknown conversion '%c' for list: %s", type, values); - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 34 and 1057 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1793:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "mallocing '%c' for list: %s", - ^~ - type, values); - ~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 25 and 1048 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_load_table': -Src/cmor_tables.c:619:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szAxisEntryFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:631:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szFormulaVarFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:637:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szControlFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_grids.c: In function 'cmor_set_mapping_attribute': +Src/cmor_grids.c:501:56: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] + "Unknown attribute: '%s' for mapping '%s' (value was: '%s')", + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 + from Src/cmor_grids.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 53 or more bytes (assuming 1076) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_variables.c Src/cmor_CV.c: In function 'cmor_CV_checkExperiment': Src/cmor_CV.c:1441:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] "Your input attribute \"%s\" with value \n! \"%s\" " @@ -21806,6 +21536,18 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_set_experiments.part.0': +Src/cmor_tables.c:292:25: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s: Too many experiments defined", table->szTable_id); + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/arraylist.c Src/cmor_CV.c: In function 'cmor_CV_checkFilename': Src/cmor_CV.c:1696:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] "Cannot find frequency %s. Closing variable %s (table: %s)", @@ -21841,97 +21583,154 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_c_version.c -Src/cmor_axes.c: In function 'cmor_treat_axis_values': -Src/cmor_axes.c:941:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] - "In udunits analyzing table defined units (%s)\n! " - ^~ -Src/cmor_axes.c:943:22: - local_unit, refaxis->id, - ~~~~~~~~~~ +Src/cmor.c: In function 'cmor_prep_units': +Src/cmor.c:521:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] + "Udunits: Error getting converter from %s to %s", cunits, + ^~ + local_unit); + ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1066) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:922:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] - "In udunits analyzing units from user (%s),\n! " - ^~ -Src/cmor_axes.c:924:22: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ +Src/cmor.c:499:55: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 988 [-Wformat-truncation=] + "Udunits: analyzing units from user (%s)", local_unit); + ^~ ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 59 or more bytes (assuming 1082) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 38 and 1061 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_object.c -Src/cmor.c: In function 'cmor_define_zfactors_vars': -Src/cmor.c:1958:64: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] - "could not find the zfactor variable: %s. \n! " - ^~ -Src/cmor.c:1962:46: - " dimensions.\n! ", ctmp, - ~~~~ +Src/cmor_variables.c: In function 'cmor_write_var_to_file': +Src/cmor_variables.c:2371:9: warning: unused variable 'bb' [-Wunused-variable] + int bb; + ^~ +Src/cmor_tables.c: In function 'cmor_set_dataset_att': +Src/cmor_tables.c:500:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1017 [-Wformat-truncation=] + "table: %s, This keyword: %s value (%s) " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 125 or more bytes (assuming 2171) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:430:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s: Too many experiments defined", + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:403:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s is already defined", table->szTable_id); + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 26 and 1049 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:341:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s is defined for cmor_version %f, " + ^~ +Src/cmor_tables.c:341:22: note: assuming directive output of 8 bytes + "Table %s is defined for cmor_version %f, " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 81 and 1418 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_open_inpathFile': +Src/cmor.c:1232:57: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(szFullName, CMOR_MAX_STRING, "%s/%s", cmor_input_path, + ^ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 172 or more bytes (assuming 1195) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_object_iterator.c -Src/cmor.c:2017:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 950 [-Wformat-truncation=] - "variable \"%s\" (table: %s) has axis \"%s\"\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:2023:75: - cmor_axes[cmor_vars[var_id].axes_ids[i]].id, ctmp, - ~~~~ -Src/cmor.c:2018:70: note: format string is defined here - "defined with formula terms, but term \"%s\"\n! " - ^~ +Src/cmor.c:1291:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 945 [-Wformat-truncation=] + "Please validate JSON File!\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1293:56: + "Syntax Error in file: %s\n! " "%s", szFullName, buffer); + ~~~~~~~~~~ +Src/cmor.c:1293:41: note: format string is defined here + "Syntax Error in file: %s\n! " "%s", szFullName, buffer); + ^~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 133 or more bytes (assuming 1156) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 84 or more bytes (assuming 1107) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_tokener.c -Src/cmor_variables.c: In function 'cmor_has_required_variable_attributes': -Src/cmor_variables.c:94:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] - "variable %s (table %s) does not have required " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:96:64: - cmor_vars[var_id].id, pTable->szTable_id, astr); - ~~~~ -Src/cmor_variables.c:95:34: note: format string is defined here - "attribute: %s", - ^~ +Src/cmor.c:1278:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Could not read file %s check file permission", szFullName); + ^~ ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 54 or more bytes (assuming 1077) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_update_history': -Src/cmor_variables.c:1001:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] - snprintf(tmp2, CMOR_MAX_STRING, "%s %s altered by CMOR: %s.", - ^~ - tmp, date, add); - ~~~~ +Src/cmor.c:1264:47: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + "Could not understand file \"%s\" Is this a JSON CMOR table?", + ^~ + szFullName); + ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 21 or more bytes (assuming 2067) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 56 and 1079 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c: In function 'cmor_treat_axis_values': +Src/cmor_axes.c:941:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] + "In udunits analyzing table defined units (%s)\n! " + ^~ +Src/cmor_axes.c:943:22: + local_unit, refaxis->id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:922:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] + "In udunits analyzing units from user (%s),\n! " + ^~ +Src/cmor_axes.c:924:22: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 59 or more bytes (assuming 1082) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/debug.c Src/cmor_CV.c: In function 'cmor_CV_setInstitution': Src/cmor_CV.c:1865:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 990 [-Wformat-truncation=] "Your input attribute institution \"%s\" will be replaced with \n! " @@ -22042,7 +21841,142 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_util.c +Src/cmor.c: In function 'cmor_outpath_exist': +Src/cmor.c:1727:60: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] + "You defined your output directory to be: '%s', but we\n! " + ^~ +Src/cmor.c:1729:17: + cmor_current_dataset.outpath); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 97 and 1120 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1706:60: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] + "You defined your output directory to be: '%s', but this\n! " + ^~ +Src/cmor.c:1708:17: + cmor_current_dataset.outpath); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 103 and 1126 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1717:63: warning: '%s' directive writing up to 1023 bytes into a region of size 983 [-Wformat-overflow=] + "CMOR was unable to create this directory %s\n! " + ^~ +Src/cmor.c:1719:21: + cmor_current_dataset.outpath); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 79 and 1102 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1692:68: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] + "You defined your output directory to be: '%s', but\n! " + ^~ +Src/cmor.c:1694:25: + cmor_current_dataset.outpath); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 96 and 1119 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1674:64: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] + "You defined your output directory to be: '%s',\n! " + ^~ +Src/cmor.c:1676:21: + cmor_current_dataset.outpath); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 99 and 1122 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1666:64: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] + "You defined your output directory to be: '%s',\n! " + ^~ +Src/cmor.c:1668:21: + cmor_current_dataset.outpath); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 99 and 1122 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/json_c_version.c +Src/cmor.c: In function 'cmor_convert_string_to_list': +Src/cmor.c:1788:53: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] + "unknown conversion '%c' for list: %s", type, values); + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 34 and 1057 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1793:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "mallocing '%c' for list: %s", + ^~ + type, values); + ~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 25 and 1048 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_load_table_internal': +Src/cmor_tables.c:693:51: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(word, CMOR_MAX_STRING, "%s/%s", cmor_input_path, szTable); + ^ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:964:57: warning: '%s' directive output may be truncated writing up to 1023999 bytes into a region of size 992 [-Wformat-truncation=] + "attribute for unknown section: %s,%s (table: %s)", + ^~ + key, szVal, cmor_tables[cmor_ntables].szTable_id); + ~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1024042) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:747:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Could not read file %s check file permission", word); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkGrids': Src/cmor_CV.c:2133:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] "Your attribute grid_resolution is set to \"%s\" which is invalid." @@ -22094,90 +22028,107 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/libjson.c -Src/cmor_variables.c: In function 'cmor_variable': -Src/cmor_variables.c:1090:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] - "Could not find a matching variable for name: '%s'", ctmp); - ^~ ~~~~ +x86_64-linux-gnu-gcc: Src/json-c/json_object.c +x86_64-linux-gnu-gcc: Src/json-c/json_object_iterator.c +Src/cmor_CV.c: In function 'cmor_CV_checkISOTime': +Src/cmor_CV.c:2277:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] + "Your global attribute " + ^~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_CV.c:2280:39: + "\n! ", szAttribute, szDate); + ~~~~~~ +Src/cmor_CV.c:2278:35: note: format string is defined here + "\"%s\" set to \"%s\" is not a valid date.\n! " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 118 or more bytes (assuming 1141) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1229:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] - "Converted units from '%s' to '%s'", units, refvar.units); - ^~ ~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/json_tokener.c +Src/cmor_CV.c: In function 'cmor_CV_variable': +Src/cmor_CV.c:2339:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] + "Could not find a matching variable for name: '%s'", ctmp); + ^~ ~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 30 or more bytes (assuming 1053) into a destination of size 1024 + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1603:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "You defined variable '%s' (table %s) with axis " - ^~ -Src/cmor_variables.c:1606:22: - refvar.id, - ~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_has_required_variable_attributes': +Src/cmor_variables.c:94:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] + "variable %s (table %s) does not have required " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:96:64: + cmor_vars[var_id].id, pTable->szTable_id, astr); + ~~~~ +Src/cmor_variables.c:95:34: note: format string is defined here + "attribute: %s", + ^~ In file included from /usr/include/stdio.h:873, from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 173 or more bytes (assuming 2219) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 54 or more bytes (assuming 1077) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1631:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "You defined variable '%s' (table %s) with axis " - ^~ -Src/cmor_variables.c:1634:22: - refvar.id, - ~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_load_table': +Src/cmor_tables.c:619:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szAxisEntryFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 121 or more bytes (assuming 1144) into a destination of size 1024 + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1698:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, - ^ +Src/cmor_tables.c:631:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szFormulaVarFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1694:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, - ^ +Src/cmor_tables.c:637:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szControlFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c: In function 'cmor_CV_checkISOTime': -Src/cmor_CV.c:2277:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] - "Your global attribute " - ^~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c:2280:39: - "\n! ", szAttribute, szDate); - ~~~~~~ -Src/cmor_CV.c:2278:35: note: format string is defined here - "\"%s\" set to \"%s\" is not a valid date.\n! " - ^~ +x86_64-linux-gnu-gcc: Src/json-c/json_util.c +Src/cmor_variables.c: In function 'cmor_update_history': +Src/cmor_variables.c:1001:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] + snprintf(tmp2, CMOR_MAX_STRING, "%s %s altered by CMOR: %s.", + ^~ + tmp, date, add); + ~~~~ In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 118 or more bytes (assuming 1141) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 21 or more bytes (assuming 2067) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -22311,55 +22262,106 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/linkhash.c -Src/cmor_CV.c: In function 'cmor_CV_variable': -Src/cmor_CV.c:2339:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] +Src/cmor.c: In function 'cmor_define_zfactors_vars': +Src/cmor.c:1958:64: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] + "could not find the zfactor variable: %s. \n! " + ^~ +Src/cmor.c:1962:46: + " dimensions.\n! ", ctmp, + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 172 or more bytes (assuming 1195) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:2017:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 950 [-Wformat-truncation=] + "variable \"%s\" (table: %s) has axis \"%s\"\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:2023:75: + cmor_axes[cmor_vars[var_id].axes_ids[i]].id, ctmp, + ~~~~ +Src/cmor.c:2018:70: note: format string is defined here + "defined with formula terms, but term \"%s\"\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 133 or more bytes (assuming 1156) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_variable': +Src/cmor_variables.c:1090:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] "Could not find a matching variable for name: '%s'", ctmp); ^~ ~~~~ In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: + from Src/cmor_variables.c:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/printbuf.c -Src/cmor.c: In function 'cmor_write_all_attributes': -Src/cmor.c:3311:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 949 [-Wformat-truncation=] - "NetCDF error (%i: %s) for variable %s\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3315:42: - GLOBAL_ATT_LICENSE, value); - ~~~~~ -Src/cmor.c:3312:60: note: format string is defined here - "(table: %s) writing global att: %s (%s)", - ^~ +Src/cmor_variables.c:1229:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] + "Converted units from '%s' to '%s'", units, refvar.units); + ^~ ~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 1100) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 30 or more bytes (assuming 1053) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3323:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 936 [-Wformat-truncation=] - "NetCDF error (%i: %s) for variable %s\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:3328:46: - GLOBAL_ATT_LICENSE, value); - ~~~~~ -Src/cmor.c:3325:41: note: format string is defined here - "metafile: %s (%s)", ierr, - ^~ +Src/cmor_variables.c:1603:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "You defined variable '%s' (table %s) with axis " + ^~ +Src/cmor_variables.c:1606:22: + refvar.id, + ~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 90 or more bytes (assuming 1113) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 173 or more bytes (assuming 2219) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1631:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "You defined variable '%s' (table %s) with axis " + ^~ +Src/cmor_variables.c:1634:22: + refvar.id, + ~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 121 or more bytes (assuming 1144) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1698:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, + ^ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1694:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, + ^ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/libjson.c +x86_64-linux-gnu-gcc: Src/json-c/linkhash.c +x86_64-linux-gnu-gcc: Src/json-c/printbuf.c x86_64-linux-gnu-gcc: Src/json-c/random_seed.c Src/cmor_axes.c: In function 'cmor_axis': Src/cmor_axes.c:1761:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 962 [-Wformat-truncation=] @@ -22407,109 +22409,35 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_create_var_attributes': -Src/cmor.c:4881:78: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 968 [-Wformat-truncation=] - "NetCDF Error (%i: %s) leaving definition mode for metafile %s", - ^~ -Src/cmor.c:4883:18: - cmor_current_dataset.associated_file_name); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_zfactor': -Src/cmor_variables.c:791:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] - "Udunits: Error parsing user units: %s, " - ^~ -Src/cmor_variables.c:794:30: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 1102) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:828:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] - "Udunits: Error converting units from Pa " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:831:30: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ -Src/cmor_variables.c:829:34: note: format string is defined here - "to %s, zaxis %s (table: %s), when creating " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 87 or more bytes (assuming 1110) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:866:60: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 995 [-Wformat-truncation=] - "Udunits: Error freeing units %s, zaxis %s " +Src/cmor.c: In function 'cmor_write_all_attributes': +Src/cmor.c:3311:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 949 [-Wformat-truncation=] + "NetCDF error (%i: %s) for variable %s\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3315:42: + GLOBAL_ATT_LICENSE, value); + ~~~~~ +Src/cmor.c:3312:60: note: format string is defined here + "(table: %s) writing global att: %s (%s)", ^~ -Src/cmor_variables.c:868:30: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 73 or more bytes (assuming 1096) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:473:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] - "Udunits: Error parsing units: %s, zaxis: " - ^~ -Src/cmor_variables.c:475:26: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 61 or more bytes (assuming 1084) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:488:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] - "Udunits: Error parsing units: %s, zaxis %s, " - ^~ -Src/cmor_variables.c:490:26: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 60 or more bytes (assuming 1083) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:660:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] - "Udunits: Error parsing units: %s, for zaxis %s, variable %s (table: %s)", - ^~ - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 64 or more bytes (assuming 1087) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 1100) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:677:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] - "Udunits: Error parsing units: %s, zaxis %s, variable %s (table: %s)", - ^~ - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ +Src/cmor.c:3323:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 936 [-Wformat-truncation=] + "NetCDF error (%i: %s) for variable %s\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:3328:46: + GLOBAL_ATT_LICENSE, value); + ~~~~~ +Src/cmor.c:3325:41: note: format string is defined here + "metafile: %s (%s)", ierr, + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 60 or more bytes (assuming 1083) into a destination of size 1024 + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 90 or more bytes (assuming 1113) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -22601,138 +22529,161 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_build_outname': -Src/cmor.c:5923:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "Cannot find frequency %s. Closing variable %s (table: %s)", - ^~ - frequency, cmor_vars[var_id].id, - ~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_zfactor': +Src/cmor_variables.c:791:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] + "Udunits: Error parsing user units: %s, " + ^~ +Src/cmor_variables.c:794:30: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 52 or more bytes (assuming 1075) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 1102) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5767:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] - "Cannot convert times for calendar: %s,\n! " +Src/cmor_variables.c:828:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] + "Udunits: Error converting units from Pa " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:831:30: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ +Src/cmor_variables.c:829:34: note: format string is defined here + "to %s, zaxis %s (table: %s), when creating " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 87 or more bytes (assuming 1110) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:866:60: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 995 [-Wformat-truncation=] + "Udunits: Error freeing units %s, zaxis %s " + ^~ +Src/cmor_variables.c:868:30: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 73 or more bytes (assuming 1096) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:473:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] + "Udunits: Error parsing units: %s, zaxis: " ^~ - "closing variable %s (table: %s)", msg2, - ~~~~ +Src/cmor_variables.c:475:26: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 61 or more bytes (assuming 1084) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_set_var_def_att': -Src/cmor_variables.c:1967:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 969 and 978 [-Wformat-truncation=] - "Too many dimensions (%i) defined for variable " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1968:28: note: format string is defined here - "(%s), max is: %i", var->ndims, var->id, - ^~ +Src/cmor_variables.c:488:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] + "Udunits: Error parsing units: %s, zaxis %s, " + ^~ +Src/cmor_variables.c:490:26: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 59 and 1091 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 60 or more bytes (assuming 1083) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:2010:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] - "Reading table %s: axis name: '%s' for " - ^~ -Src/cmor_variables.c:2014:73: - cmor_tables[var->table_id].szTable_id, dim, - ~~~ +Src/cmor_variables.c:660:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] + "Udunits: Error parsing units: %s, for zaxis %s, variable %s (table: %s)", + ^~ + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 119 or more bytes (assuming 2165) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 64 or more bytes (assuming 1087) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_close_variable': -Src/cmor.c:6058:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 934 [-Wformat-truncation=] - "while closing variable %i (%s, table %s)\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6066:72: - ref_table_id].szTable_id, ctmp2, - ~~~~~ -Src/cmor.c:6060:45: note: format string is defined here - "you wrote %s time steps for the variable,\n! " - ^~ +Src/cmor_variables.c:677:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] + "Udunits: Error parsing units: %s, zaxis %s, variable %s (table: %s)", + ^~ + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 176 or more bytes (assuming 2222) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 60 or more bytes (assuming 1083) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6089:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 920 [-Wformat-truncation=] - "while closing variable %i (%s, table %s) we\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6096:42: - szTable_id, ctmp2, - ~~~~~ -Src/cmor.c:6091:51: note: format string is defined here - "variable, you wrote %s time steps for the\n! " - ^~ +Src/cmor.c: In function 'cmor_create_var_attributes': +Src/cmor.c:4881:78: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 968 [-Wformat-truncation=] + "NetCDF Error (%i: %s) leaving definition mode for metafile %s", + ^~ +Src/cmor.c:4883:18: + cmor_current_dataset.associated_file_name); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 190 or more bytes (assuming 2236) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6129:33: warning: '.copy' directive writing 5 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] - sprintf(msg, "%s.copy", outname); - ^~~~~ +Src/cmor_variables.c: In function 'cmor_set_var_def_att': +Src/cmor_variables.c:1967:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 969 and 978 [-Wformat-truncation=] + "Too many dimensions (%i) defined for variable " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1968:28: note: format string is defined here + "(%s), max is: %i", var->ndims, var->id, + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 6 and 1029 bytes into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6140:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] - "Output file ( %s ) already exists,\n! " - ^~ -Src/cmor.c:6143:45: - "cmor_setup.", outname); - ~~~~~~~ + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 59 and 1091 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:2010:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] + "Reading table %s: axis name: '%s' for " + ^~ +Src/cmor_variables.c:2014:73: + cmor_tables[var->table_id].szTable_id, dim, + ~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 128 and 1151 bytes into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 119 or more bytes (assuming 2165) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6132:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] - "Output file ( %s ) already exists,\n! " - ^~ -Src/cmor.c:6137:45: - "at: %s.copy", outname, outname); - ~~~~~~~ +Src/cmor.c: In function 'cmor_build_outname': +Src/cmor.c:5923:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "Cannot find frequency %s. Closing variable %s (table: %s)", + ^~ + frequency, cmor_vars[var_id].id, + ~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 206 and 2252 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 52 or more bytes (assuming 1075) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6153:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 970 [-Wformat-truncation=] - "could not rename temporary file: %s to final file\n" - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - "name: %s", cmor_vars[var_id].current_path, outname); - ~~~~~~~ -Src/cmor.c:6154:29: note: format string is defined here - "name: %s", cmor_vars[var_id].current_path, outname); - ^~ +Src/cmor.c:5767:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] + "Cannot convert times for calendar: %s,\n! " + ^~ + "closing variable %s (table: %s)", msg2, + ~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 55 or more bytes (assuming 1078) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -23172,6 +23123,90 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_close_variable': +Src/cmor.c:6058:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 934 [-Wformat-truncation=] + "while closing variable %i (%s, table %s)\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6066:72: + ref_table_id].szTable_id, ctmp2, + ~~~~~ +Src/cmor.c:6060:45: note: format string is defined here + "you wrote %s time steps for the variable,\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 176 or more bytes (assuming 2222) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6089:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 920 [-Wformat-truncation=] + "while closing variable %i (%s, table %s) we\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6096:42: + szTable_id, ctmp2, + ~~~~~ +Src/cmor.c:6091:51: note: format string is defined here + "variable, you wrote %s time steps for the\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 190 or more bytes (assuming 2236) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6129:33: warning: '.copy' directive writing 5 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] + sprintf(msg, "%s.copy", outname); + ^~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 6 and 1029 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6140:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] + "Output file ( %s ) already exists,\n! " + ^~ +Src/cmor.c:6143:45: + "cmor_setup.", outname); + ~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 128 and 1151 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6132:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] + "Output file ( %s ) already exists,\n! " + ^~ +Src/cmor.c:6137:45: + "at: %s.copy", outname, outname); + ~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 206 and 2252 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6153:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 970 [-Wformat-truncation=] + "could not rename temporary file: %s to final file\n" + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + "name: %s", cmor_vars[var_id].current_path, outname); + ~~~~~~~ +Src/cmor.c:6154:29: note: format string is defined here + "name: %s", cmor_vars[var_id].current_path, outname); + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 55 or more bytes (assuming 1078) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor.c: In function 'cmor_addRIPF': Src/cmor.c:5617:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] "Your realization_index \"%s\" is invalid. \n! " @@ -23444,20 +23479,21 @@ compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Iinclude -Iinclude/cdTime -Iinclude/json-c -I/usr/include -I/usr/include/python3.7m -c' extra options: '-DgFortran' +x86_64-linux-gnu-gcc: Src/cdTime/cdRegTrfm.c x86_64-linux-gnu-gcc: Src/_controlvocabulary.c +x86_64-linux-gnu-gcc: Src/cdTime/cdTimeConv.c x86_64-linux-gnu-gcc: Src/cdTime/fcdTimeConv.c -x86_64-linux-gnu-gcc: Src/cdTime/cdRegTrfm.c x86_64-linux-gnu-gcc: Src/cdTime/cdUtil.c -x86_64-linux-gnu-gcc: Src/cdTime/cdTimeConv.c +x86_64-linux-gnu-gcc: Src/cdTime/timeArith.c x86_64-linux-gnu-gcc: Src/cdTime/reg_trfm.c x86_64-linux-gnu-gcc: Src/cdTime/timeConv.c -x86_64-linux-gnu-gcc: Src/cdTime/timeArith.c In file included from Src/cdTime/fcdTimeConv.c:26: include/cdTime/cfortran.h:598:14: warning: 'kill_trailingn' defined but not used [-Wunused-function] static char *kill_trailingn(char *s, char t, char *e) ^~~~~~~~~~~~~~ x86_64-linux-gnu-gcc: Src/cmor.c x86_64-linux-gnu-gcc: Src/cmor_CV.c +x86_64-linux-gnu-gcc: Src/cmor_axes.c Src/cdTime/cdTimeConv.c: In function 'cdParseRelunits': Src/cdTime/cdTimeConv.c:190:25: warning: '%s' directive writing up to 47 bytes into a region of size between 0 and 47 [-Wformat-overflow=] sprintf(basetime,"%s %s",basetime_1,basetime_2); @@ -23469,17 +23505,22 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/cmor_axes.c -x86_64-linux-gnu-gcc: Src/cmor_cfortran_interface.c +Src/_controlvocabulary.c: In function 'PyCV_setup_variable': +Src/_controlvocabulary.c:593:44: warning: passing argument 4 of 'cmor_CV_variable' from incompatible pointer type [-Wincompatible-pointer-types] + cmor_CV_variable(&var_id, name, units, &missing, startime, endtime, + ^~~~~~~~ +Src/_controlvocabulary.c:7:52: note: expected 'double *' but argument is of type 'float *' + extern int cmor_CV_variable(int *, char *, char *, double *, + ^~~~~~~~ +Src/_controlvocabulary.c:580:9: warning: unused variable 'imissing' [-Wunused-variable] + int imissing; + ^~~~~~~~ Src/cmor_axes.c: In function 'cmor_convert_interval_to_seconds': Src/cmor_axes.c:104:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict] snprintf(msg, CMOR_MAX_STRING, ^~~ "In udunits parsing user units: %s", msg); ~~~ -Src/cmor.c:122:1: warning: "/*" within comment [-Wcomment] - /**************************************************************************/ - Src/cmor_axes.c: In function 'cmor_check_interval': Src/cmor_axes.c:1475:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Wrestrict] snprintf(msg, CMOR_MAX_STRING, @@ -23492,19 +23533,11 @@ ^~~~ "Cannot convert times for calendar: %s", ctmp); ~~~~ +Src/cmor.c:122:1: warning: "/*" within comment [-Wcomment] + /**************************************************************************/ + +x86_64-linux-gnu-gcc: Src/cmor_cfortran_interface.c x86_64-linux-gnu-gcc: Src/cmor_grids.c -Src/_controlvocabulary.c: In function 'PyCV_setup_variable': -Src/_controlvocabulary.c:593:44: warning: passing argument 4 of 'cmor_CV_variable' from incompatible pointer type [-Wincompatible-pointer-types] - cmor_CV_variable(&var_id, name, units, &missing, startime, endtime, - ^~~~~~~~ -Src/_controlvocabulary.c:7:52: note: expected 'double *' but argument is of type 'float *' - extern int cmor_CV_variable(int *, char *, char *, double *, - ^~~~~~~~ -Src/_controlvocabulary.c:580:9: warning: unused variable 'imissing' [-Wunused-variable] - int imissing; - ^~~~~~~~ -x86_64-linux-gnu-gcc: Src/cmor_md5.c -x86_64-linux-gnu-gcc: Src/cmor_tables.c Src/cmor_axes.c: In function 'cmor_convert_interval_to_seconds': Src/cmor_axes.c:105:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 993 [-Wformat-truncation=] "In udunits parsing user units: %s", msg); @@ -23526,6 +23559,31 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_grids.c: In function 'cmor_set_grid_attribute': +Src/cmor_grids.c:258:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 984 [-Wformat-truncation=] + "%s parameter must be between -180 and 180 %s, will not be set", + ^~ + name, ctmp); + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_grids.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 58 or more bytes (assuming 1081) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_grids.c:242:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] + "%s parameter must be between -90 and 90 %s, will not be set", + ^~ + name, ctmp); + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_grids.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 56 or more bytes (assuming 1079) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkFurtherInfoURL': Src/cmor_CV.c:410:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 915 [-Wformat-truncation=] "The further info in attribute does not match " @@ -23546,6 +23604,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_md5.c Src/cmor_CV.c: In function 'cmor_CV_checkSourceType': Src/cmor_CV.c:536:54: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Wformat-truncation=] "The following source type(s) \"%s\" are required and\n! " @@ -23582,38 +23641,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_set_dataset_att': -Src/cmor_tables.c:499:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 6 [-Wrestrict] - snprintf(value, CMOR_MAX_STRING, - ^~~~~ -Src/cmor_tables.c:503:42: - table->szTable_id, att, value); - ~~~~~ -Src/cmor_grids.c: In function 'cmor_set_grid_attribute': -Src/cmor_grids.c:258:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 984 [-Wformat-truncation=] - "%s parameter must be between -180 and 180 %s, will not be set", - ^~ - name, ctmp); - ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 58 or more bytes (assuming 1081) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_grids.c:242:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] - "%s parameter must be between -90 and 90 %s, will not be set", - ^~ - name, ctmp); - ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 56 or more bytes (assuming 1079) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/cmor_tables.c Src/cmor_CV.c: In function 'cmor_CV_checkSourceID': Src/cmor_CV.c:689:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 979 [-Wformat-truncation=] "Your input attribute \"%s\" with value \n! \"%s\" " @@ -23719,17 +23747,18 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_set_experiments.part.0': -Src/cmor_tables.c:292:25: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s: Too many experiments defined", table->szTable_id); - ^~ +x86_64-linux-gnu-gcc: Src/cmor_variables.c +Src/cmor.c: In function 'cmor_add_traceback.part.0': +Src/cmor.c:423:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1008 [-Wformat-overflow=] + sprintf(tmp, "%s\n! called from: %s", name, cmor_traceback_info); + ^~ ~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 1040) into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'CV_VerifyNBElement': Src/cmor_CV.c:749:24: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1019 [-Wformat-truncation=] "Your %s has more than 0 element\n! " @@ -23757,7 +23786,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/cmor_variables.c Src/cmor_CV.c: In function 'CV_CompareNoParent': Src/cmor_CV.c:774:60: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 990 [-Wformat-truncation=] "Your input attribute %s with value \"%s\" \n! " @@ -23775,7 +23803,25 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_grids.c: In function 'cmor_set_mapping_attribute': +Src/cmor_grids.c:501:56: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] + "Unknown attribute: '%s' for mapping '%s' (value was: '%s')", + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_grids.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 53 or more bytes (assuming 1076) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-linux-gnu-gcc: Src/json-c/arraylist.c +Src/cmor_tables.c: In function 'cmor_set_dataset_att': +Src/cmor_tables.c:499:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 6 [-Wrestrict] + snprintf(value, CMOR_MAX_STRING, + ^~~~~ +Src/cmor_tables.c:503:42: + table->szTable_id, att, value); + ~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkSubExpID': Src/cmor_CV.c:919:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 935 [-Wformat-truncation=] "Your input attribute \"%s\" is not defined properly \n! " @@ -23975,17 +24021,17 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_add_traceback.part.0': -Src/cmor.c:423:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1008 [-Wformat-overflow=] - sprintf(tmp, "%s\n! called from: %s", name, cmor_traceback_info); - ^~ ~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_set_experiments.part.0': +Src/cmor_tables.c:292:25: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s: Too many experiments defined", table->szTable_id); + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 1040) into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkParentExpID': Src/cmor_CV.c:1053:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 932 [-Wformat-truncation=] "Your input attribute \"%s\" is not defined properly \n! " @@ -24070,17 +24116,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c: In function 'cmor_set_dataset_att': -Src/cmor_tables.c:500:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1017 [-Wformat-truncation=] - "table: %s, This keyword: %s value (%s) " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 125 or more bytes (assuming 2171) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c:1178:75: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] "Your input attribute branch_time_in_child \"%s\" " ^~ @@ -24122,9 +24157,6 @@ Src/cmor_CV.c:1202:30: szBranchTimeInParent); ~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:430:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s: Too many experiments defined", - ^~ In file included from /usr/include/stdio.h:873, from include/cdTime/cdmsint.h:37, from include/cmor_func_def.h:9, @@ -24135,23 +24167,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:403:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s is already defined", table->szTable_id); - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 26 and 1049 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c:1188:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 948 [-Wformat-truncation=] "Your input attribute \"%s\" is not defined \n! " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -24177,9 +24192,6 @@ Src/cmor_CV.c:1242:49: PARENT_TIME_UNITS, szParentTimeUnits); ~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:341:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "Table %s is defined for cmor_version %f, " - ^~ In file included from /usr/include/stdio.h:873, from include/cdTime/cdmsint.h:37, from include/cmor_func_def.h:9, @@ -24206,16 +24218,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:341:22: note: assuming directive output of 8 bytes - "Table %s is defined for cmor_version %f, " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 81 and 1418 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c:1209:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 952 [-Wformat-truncation=] "Your input attribute \"%s\" is not defined \n! " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -24441,18 +24443,10 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_grids.c: In function 'cmor_set_mapping_attribute': -Src/cmor_grids.c:501:56: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] - "Unknown attribute: '%s' for mapping '%s' (value was: '%s')", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_grids.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 53 or more bytes (assuming 1076) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/debug.c +Src/cmor_variables.c: In function 'cmor_write_var_to_file': +Src/cmor_variables.c:2371:9: warning: unused variable 'bb' [-Wunused-variable] + int bb; + ^~ Src/cmor.c: In function 'cmor_prep_units': Src/cmor.c:521:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] "Udunits: Error getting converter from %s to %s", cunits, @@ -24476,7 +24470,56 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_c_version.c +x86_64-linux-gnu-gcc: Src/json-c/debug.c +Src/cmor.c: In function 'cmor_open_inpathFile': +Src/cmor.c:1232:57: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(szFullName, CMOR_MAX_STRING, "%s/%s", cmor_input_path, + ^ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1291:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 945 [-Wformat-truncation=] + "Please validate JSON File!\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1293:56: + "Syntax Error in file: %s\n! " "%s", szFullName, buffer); + ~~~~~~~~~~ +Src/cmor.c:1293:41: note: format string is defined here + "Syntax Error in file: %s\n! " "%s", szFullName, buffer); + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 84 or more bytes (assuming 1107) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1278:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Could not read file %s check file permission", szFullName); + ^~ ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:1264:47: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + "Could not understand file \"%s\" Is this a JSON CMOR table?", + ^~ + szFullName); + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 56 and 1079 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_CV.c: In function 'cmor_CV_checkExperiment': Src/cmor_CV.c:1441:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] "Your input attribute \"%s\" with value \n! \"%s\" " @@ -24538,92 +24581,51 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_open_inpathFile': -Src/cmor.c:1232:57: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(szFullName, CMOR_MAX_STRING, "%s/%s", cmor_input_path, - ^ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1291:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 945 [-Wformat-truncation=] - "Please validate JSON File!\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1293:56: - "Syntax Error in file: %s\n! " "%s", szFullName, buffer); - ~~~~~~~~~~ -Src/cmor.c:1293:41: note: format string is defined here - "Syntax Error in file: %s\n! " "%s", szFullName, buffer); - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 84 or more bytes (assuming 1107) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1278:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Could not read file %s check file permission", szFullName); - ^~ ~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:1264:47: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - "Could not understand file \"%s\" Is this a JSON CMOR table?", - ^~ - szFullName); - ~~~~~~~~~~ +Src/cmor_tables.c: In function 'cmor_set_dataset_att': +Src/cmor_tables.c:500:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1017 [-Wformat-truncation=] + "table: %s, This keyword: %s value (%s) " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 56 and 1079 bytes into a destination of size 1024 + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 125 or more bytes (assuming 2171) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_write_var_to_file': -Src/cmor_variables.c:2371:9: warning: unused variable 'bb' [-Wunused-variable] - int bb; - ^~ -Src/cmor_tables.c: In function 'cmor_load_table_internal': -Src/cmor_tables.c:693:51: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(word, CMOR_MAX_STRING, "%s/%s", cmor_input_path, szTable); - ^ +Src/cmor_tables.c:430:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s: Too many experiments defined", + ^~ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 37 and 1060 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:964:57: warning: '%s' directive output may be truncated writing up to 1023999 bytes into a region of size 992 [-Wformat-truncation=] - "attribute for unknown section: %s,%s (table: %s)", - ^~ - key, szVal, cmor_tables[cmor_ntables].szTable_id); - ~~~~~ +Src/cmor_tables.c:403:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s is already defined", table->szTable_id); + ^~ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1024042) into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 26 and 1049 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:747:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] - "Could not read file %s check file permission", word); - ^~ ~~~~ +Src/cmor_tables.c:341:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "Table %s is defined for cmor_version %f, " + ^~ +Src/cmor_tables.c:341:22: note: assuming directive output of 8 bytes + "Table %s is defined for cmor_version %f, " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 81 and 1418 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/json_c_version.c x86_64-linux-gnu-gcc: Src/json-c/json_object.c Src/cmor_CV.c: In function 'cmor_CV_checkFilename': Src/cmor_CV.c:1696:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] @@ -24660,6 +24662,34 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/json_object_iterator.c +Src/cmor_axes.c: In function 'cmor_treat_axis_values': +Src/cmor_axes.c:941:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] + "In udunits analyzing table defined units (%s)\n! " + ^~ +Src/cmor_axes.c:943:22: + local_unit, refaxis->id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:922:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] + "In udunits analyzing units from user (%s),\n! " + ^~ +Src/cmor_axes.c:924:22: + local_unit, cmor_axes[axis_id].id, + ~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 59 or more bytes (assuming 1082) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor.c: In function 'cmor_outpath_exist': Src/cmor.c:1727:60: warning: '%s' directive writing up to 1023 bytes into a region of size 982 [-Wformat-overflow=] "You defined your output directory to be: '%s', but we\n! " @@ -24762,67 +24792,67 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_object_iterator.c -Src/cmor_tables.c: In function 'cmor_load_table': -Src/cmor_tables.c:619:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szAxisEntryFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/json_tokener.c +x86_64-linux-gnu-gcc: Src/json-c/json_util.c +Src/cmor_tables.c: In function 'cmor_load_table_internal': +Src/cmor_tables.c:693:51: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(word, CMOR_MAX_STRING, "%s/%s", cmor_input_path, szTable); + ^ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:631:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szFormulaVarFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:964:57: warning: '%s' directive output may be truncated writing up to 1023999 bytes into a region of size 992 [-Wformat-truncation=] + "attribute for unknown section: %s,%s (table: %s)", + ^~ + key, szVal, cmor_tables[cmor_ntables].szTable_id); + ~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1024042) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_tables.c:637:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] - snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", - ^~ - szControlFilenameJSON); - ~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:747:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1004 [-Wformat-truncation=] + "Could not read file %s check file permission", word); + ^~ ~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor_tables.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 43 and 1066 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_treat_axis_values': -Src/cmor_axes.c:941:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] - "In udunits analyzing table defined units (%s)\n! " - ^~ -Src/cmor_axes.c:943:22: - local_unit, refaxis->id, - ~~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_has_required_variable_attributes': +Src/cmor_variables.c:94:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] + "variable %s (table %s) does not have required " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:96:64: + cmor_vars[var_id].id, pTable->szTable_id, astr); + ~~~~ +Src/cmor_variables.c:95:34: note: format string is defined here + "attribute: %s", + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 54 or more bytes (assuming 1077) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:922:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] - "In udunits analyzing units from user (%s),\n! " - ^~ -Src/cmor_axes.c:924:22: - local_unit, cmor_axes[axis_id].id, - ~~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_update_history': +Src/cmor_variables.c:1001:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] + snprintf(tmp2, CMOR_MAX_STRING, "%s %s altered by CMOR: %s.", + ^~ + tmp, date, add); + ~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 59 or more bytes (assuming 1082) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 21 or more bytes (assuming 2067) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -24898,7 +24928,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_tokener.c Src/cmor_CV.c: In function 'cmor_CV_ValidateAttribute': Src/cmor_CV.c:1952:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 947 [-Wformat-truncation=] "You regular expression \"%s\" is invalid. \n! " @@ -24938,60 +24967,54 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/json_util.c -x86_64-linux-gnu-gcc: Src/json-c/libjson.c -Src/cmor_CV.c: In function 'cmor_CV_checkGrids': -Src/cmor_CV.c:2133:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] - "Your attribute grid_resolution is set to \"%s\" which is invalid." - ^~ -Src/cmor_CV.c:2135:22: - szGridResolution, CV_Filename); - ~~~~~~~~~~~~~~~~ +Src/cmor_variables.c: In function 'cmor_variable': +Src/cmor_variables.c:1090:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] + "Could not find a matching variable for name: '%s'", ctmp); + ^~ ~~~~ In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 109 and 2155 bytes into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c:2083:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] - "Your attribute grid_label is set to \"%s\" which is invalid." - ^~ -Src/cmor_CV.c:2085:22: - szGridLabel, CV_Filename); - ~~~~~~~~~~~ +Src/cmor_variables.c:1229:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] + "Converted units from '%s' to '%s'", units, refvar.units); + ^~ ~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 104 and 2150 bytes into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 30 or more bytes (assuming 1053) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c:2060:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 947 [-Wformat-truncation=] - "Your \"grid_labels\" key could not be found in\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - "your Control Vocabulary file.(%s)\n! ", CV_Filename); - ~~~~~~~~~~~ -Src/cmor_CV.c:2061:49: note: format string is defined here - "your Control Vocabulary file.(%s)\n! ", CV_Filename); - ^~ +Src/cmor_variables.c:1603:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "You defined variable '%s' (table %s) with axis " + ^~ +Src/cmor_variables.c:1606:22: + refvar.id, + ~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 82 and 1105 bytes into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 173 or more bytes (assuming 2219) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1631:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "You defined variable '%s' (table %s) with axis " + ^~ +Src/cmor_variables.c:1634:22: + refvar.id, + ~~~~~~~~~ Src/cmor.c: In function 'cmor_define_zfactors_vars': +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 121 or more bytes (assuming 1144) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor.c:1958:64: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] "could not find the zfactor variable: %s. \n! " ^~ @@ -25005,6 +25028,26 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1698:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, + ^ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1694:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] + snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, + ^ +In file included from /usr/include/stdio.h:873, + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor.c:2017:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 950 [-Wformat-truncation=] "variable \"%s\" (table: %s) has axis \"%s\"\n! " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -25021,67 +25064,90 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/linkhash.c -Src/cmor_CV.c: In function 'cmor_CV_checkISOTime': -Src/cmor_CV.c:2277:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] - "Your global attribute " - ^~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c:2280:39: - "\n! ", szAttribute, szDate); - ~~~~~~ -Src/cmor_variables.c: In function 'cmor_has_required_variable_attributes': -Src/cmor_CV.c:2278:35: note: format string is defined here - "\"%s\" set to \"%s\" is not a valid date.\n! " - ^~ -Src/cmor_variables.c:94:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] - "variable %s (table %s) does not have required " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:96:64: - cmor_vars[var_id].id, pTable->szTable_id, astr); - ~~~~ -Src/cmor_variables.c:95:34: note: format string is defined here - "attribute: %s", - ^~ +Src/cmor_tables.c: In function 'cmor_load_table': +Src/cmor_tables.c:619:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szAxisEntryFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from include/cdTime/cdmsint.h:37, - from include/cmor_func_def.h:9, - from include/cmor.h:577, - from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 118 or more bytes (assuming 1141) into a destination of size 1024 + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:631:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szFormulaVarFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_tables.c:637:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 997 [-Wformat-truncation=] + snprintf(msg, CMOR_MAX_STRING, "Can't open/read JSON table %s", + ^~ + szControlFilenameJSON); + ~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 54 or more bytes (assuming 1077) into a destination of size 1024 + from Src/cmor_tables.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 28 and 1051 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_update_history': -Src/cmor_variables.c:1001:41: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] - snprintf(tmp2, CMOR_MAX_STRING, "%s %s altered by CMOR: %s.", - ^~ - tmp, date, add); - ~~~~ +Src/cmor_CV.c: In function 'cmor_CV_checkGrids': +Src/cmor_CV.c:2133:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] + "Your attribute grid_resolution is set to \"%s\" which is invalid." + ^~ +Src/cmor_CV.c:2135:22: + szGridResolution, CV_Filename); + ~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 21 or more bytes (assuming 2067) into a destination of size 1024 + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 109 and 2155 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_CV.c: In function 'cmor_CV_variable': -Src/cmor_CV.c:2339:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] - "Could not find a matching variable for name: '%s'", ctmp); - ^~ ~~~~ +Src/cmor_CV.c:2083:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 987 [-Wformat-truncation=] + "Your attribute grid_label is set to \"%s\" which is invalid." + ^~ +Src/cmor_CV.c:2085:22: + szGridLabel, CV_Filename); + ~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from include/cdTime/cdmsint.h:37, from include/cmor_func_def.h:9, from include/cmor.h:577, from Src/cmor_CV.c:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 104 and 2150 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_CV.c:2060:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 947 [-Wformat-truncation=] + "Your \"grid_labels\" key could not be found in\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + "your Control Vocabulary file.(%s)\n! ", CV_Filename); + ~~~~~~~~~~~ +Src/cmor_CV.c:2061:49: note: format string is defined here + "your Control Vocabulary file.(%s)\n! ", CV_Filename); + ^~ +In file included from /usr/include/stdio.h:873, + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 82 and 1105 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -25123,6 +25189,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +x86_64-linux-gnu-gcc: Src/json-c/libjson.c Src/cmor_axes.c:1541:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 896 and 911 [-Wformat-truncation=] "approximate time axis interval is defined as %f " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -25215,74 +25282,42 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_variable': -Src/cmor_variables.c:1090:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] - "Could not find a matching variable for name: '%s'", ctmp); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1229:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] - "Converted units from '%s' to '%s'", units, refvar.units); - ^~ ~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 30 or more bytes (assuming 1053) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1603:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "You defined variable '%s' (table %s) with axis " - ^~ -Src/cmor_variables.c:1606:22: - refvar.id, - ~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 173 or more bytes (assuming 2219) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1631:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "You defined variable '%s' (table %s) with axis " - ^~ -Src/cmor_variables.c:1634:22: - refvar.id, - ~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 121 or more bytes (assuming 1144) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1698:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, - ^ +Src/cmor_CV.c: In function 'cmor_CV_checkISOTime': +Src/cmor_CV.c:2277:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 991 [-Wformat-truncation=] + "Your global attribute " + ^~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_CV.c:2280:39: + "\n! ", szAttribute, szDate); + ~~~~~~ +Src/cmor_CV.c:2278:35: note: format string is defined here + "\"%s\" set to \"%s\" is not a valid date.\n! " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 118 or more bytes (assuming 1141) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1694:55: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] - snprintf(ctmp, CMOR_MAX_STRING, "%s %s", msg, - ^ +x86_64-linux-gnu-gcc: Src/json-c/linkhash.c +x86_64-linux-gnu-gcc: Src/json-c/printbuf.c +Src/cmor_CV.c: In function 'cmor_CV_variable': +Src/cmor_CV.c:2339:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 978 [-Wformat-truncation=] + "Could not find a matching variable for name: '%s'", ctmp); + ^~ ~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 + from include/cdTime/cdmsint.h:37, + from include/cmor_func_def.h:9, + from include/cmor.h:577, + from Src/cmor_CV.c:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 48 and 1071 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -x86_64-linux-gnu-gcc: Src/json-c/printbuf.c x86_64-linux-gnu-gcc: Src/json-c/random_seed.c Src/cmor_axes.c: In function 'cmor_axis': Src/cmor_axes.c:1761:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 962 [-Wformat-truncation=] @@ -25363,93 +25398,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c: In function 'cmor_set_axis_def_att': -Src/cmor_axes.c:2506:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] - "Unknown attribute >>>%s<<< for axis section " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2507:20: note: format string is defined here - "(%s, table: %s), value: %s", - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2495:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory " - ^~ -Src/cmor_axes.c:2495:26: note: directive argument in the range [1, 9223372036854775806] - "axis (%s, table: %s): cannot allocate memory " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 2141) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2441:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): looks like we already read " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2453:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2470:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for %i " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2349:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): looks like we already read " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2362:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_axes.c:2383:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] - "axis (%s, table: %s): cannot allocate memory for %i " - ^~ -In file included from /usr/include/stdio.h:873, - from Src/cmor_axes.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_variables.c: In function 'cmor_zfactor': Src/cmor_variables.c:791:66: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] "Udunits: Error parsing user units: %s, " @@ -25543,152 +25491,130 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_create_var_attributes': -Src/cmor.c:4881:78: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 968 [-Wformat-truncation=] - "NetCDF Error (%i: %s) leaving definition mode for metafile %s", - ^~ -Src/cmor.c:4883:18: - cmor_current_dataset.associated_file_name); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c: In function 'cmor_set_axis_def_att': +Src/cmor_axes.c:2506:18: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 981 [-Wformat-truncation=] + "Unknown attribute >>>%s<<< for axis section " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_axes.c:2507:20: note: format string is defined here + "(%s, table: %s), value: %s", + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 63 or more bytes (assuming 1086) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c: In function 'cmor_set_var_def_att': -Src/cmor_variables.c:1967:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 969 and 978 [-Wformat-truncation=] - "Too many dimensions (%i) defined for variable " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:1968:28: note: format string is defined here - "(%s), max is: %i", var->ndims, var->id, - ^~ +Src/cmor_axes.c:2495:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory " + ^~ +Src/cmor_axes.c:2495:26: note: directive argument in the range [1, 9223372036854775806] + "axis (%s, table: %s): cannot allocate memory " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 59 and 1091 bytes into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 77 or more bytes (assuming 2141) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor_variables.c:2010:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] - "Reading table %s: axis name: '%s' for " - ^~ -Src/cmor_variables.c:2014:73: - cmor_tables[var->table_id].szTable_id, dim, - ~~~ +Src/cmor_axes.c:2441:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): looks like we already read " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor_variables.c:2: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 119 or more bytes (assuming 2165) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_build_outname': -Src/cmor.c:5923:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] - "Cannot find frequency %s. Closing variable %s (table: %s)", - ^~ - frequency, cmor_vars[var_id].id, - ~~~~~~~~~ +Src/cmor_axes.c:2453:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 52 or more bytes (assuming 1075) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:5767:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] - "Cannot convert times for calendar: %s,\n! " - ^~ - "closing variable %s (table: %s)", msg2, - ~~~~ +Src/cmor_axes.c:2470:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for %i " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 72 or more bytes (assuming 2118) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c: In function 'cmor_close_variable': -Src/cmor.c:6058:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 934 [-Wformat-truncation=] - "while closing variable %i (%s, table %s)\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6066:72: - ref_table_id].szTable_id, ctmp2, - ~~~~~ -Src/cmor.c:6060:45: note: format string is defined here - "you wrote %s time steps for the variable,\n! " - ^~ +Src/cmor_axes.c:2349:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): looks like we already read " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 176 or more bytes (assuming 2222) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 135 or more bytes (assuming 1158) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6089:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 920 [-Wformat-truncation=] - "while closing variable %i (%s, table %s) we\n! " - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6096:42: - szTable_id, ctmp2, - ~~~~~ -Src/cmor.c:6091:51: note: format string is defined here - "variable, you wrote %s time steps for the\n! " - ^~ +Src/cmor_axes.c:2362:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 190 or more bytes (assuming 2236) into a destination of size 1024 + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6129:33: warning: '.copy' directive writing 5 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] - sprintf(msg, "%s.copy", outname); - ^~~~~ +Src/cmor_axes.c:2383:29: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1018 [-Wformat-truncation=] + "axis (%s, table: %s): cannot allocate memory for %i " + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 6 and 1029 bytes into a destination of size 1024 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6140:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] - "Output file ( %s ) already exists,\n! " - ^~ -Src/cmor.c:6143:45: - "cmor_setup.", outname); - ~~~~~~~ + from Src/cmor_axes.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 2125) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_create_var_attributes': +Src/cmor.c:4881:78: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 968 [-Wformat-truncation=] + "NetCDF Error (%i: %s) leaving definition mode for metafile %s", + ^~ +Src/cmor.c:4883:18: + cmor_current_dataset.associated_file_name); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 128 and 1151 bytes into a destination of size 1024 +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6132:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] - "Output file ( %s ) already exists,\n! " - ^~ -Src/cmor.c:6137:45: - "at: %s.copy", outname, outname); - ~~~~~~~ +Src/cmor_variables.c: In function 'cmor_set_var_def_att': +Src/cmor_variables.c:1967:26: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 969 and 978 [-Wformat-truncation=] + "Too many dimensions (%i) defined for variable " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor_variables.c:1968:28: note: format string is defined here + "(%s), max is: %i", var->ndims, var->id, + ^~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 206 and 2252 bytes into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 59 and 1091 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Src/cmor.c:6153:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 970 [-Wformat-truncation=] - "could not rename temporary file: %s to final file\n" - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - "name: %s", cmor_vars[var_id].current_path, outname); - ~~~~~~~ -Src/cmor.c:6154:29: note: format string is defined here - "name: %s", cmor_vars[var_id].current_path, outname); - ^~ +Src/cmor_variables.c:2010:65: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 996 [-Wformat-truncation=] + "Reading table %s: axis name: '%s' for " + ^~ +Src/cmor_variables.c:2014:73: + cmor_tables[var->table_id].szTable_id, dim, + ~~~ In file included from /usr/include/stdio.h:873, - from Src/cmor.c:1: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 55 or more bytes (assuming 1078) into a destination of size 1024 + from Src/cmor_variables.c:2: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 119 or more bytes (assuming 2165) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); @@ -26085,6 +26011,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_build_outname': Src/cmor_variables.c:2979:87: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 971 [-Wformat-truncation=] "NetCDF error (%i: %s) writing time values for variable '%s' (%s)", ^~ @@ -26095,6 +26022,18 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:5923:44: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1002 [-Wformat-truncation=] + "Cannot find frequency %s. Closing variable %s (table: %s)", + ^~ + frequency, cmor_vars[var_id].id, + ~~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 52 or more bytes (assuming 1075) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor_variables.c:3001:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 921 [-Wformat-truncation=] "Time point: %lf ( %lf in output units) " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -26111,6 +26050,18 @@ Src/cmor_variables.c:3271:60: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 986 [-Wformat-truncation=] "NetCDF Error (%i: %s), writing variable '%s' (table %s) to file", ^~ +Src/cmor.c:5767:57: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 989 [-Wformat-truncation=] + "Cannot convert times for calendar: %s,\n! " + ^~ + "closing variable %s (table: %s)", msg2, + ~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 67 or more bytes (assuming 1090) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from Src/cmor_variables.c:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 57 or more bytes (assuming 1080) into a destination of size 1024 @@ -26128,6 +26079,90 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c: In function 'cmor_close_variable': +Src/cmor.c:6058:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 934 [-Wformat-truncation=] + "while closing variable %i (%s, table %s)\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6066:72: + ref_table_id].szTable_id, ctmp2, + ~~~~~ +Src/cmor.c:6060:45: note: format string is defined here + "you wrote %s time steps for the variable,\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 176 or more bytes (assuming 2222) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6089:30: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 920 [-Wformat-truncation=] + "while closing variable %i (%s, table %s) we\n! " + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6096:42: + szTable_id, ctmp2, + ~~~~~ +Src/cmor.c:6091:51: note: format string is defined here + "variable, you wrote %s time steps for the\n! " + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 190 or more bytes (assuming 2236) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6129:33: warning: '.copy' directive writing 5 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] + sprintf(msg, "%s.copy", outname); + ^~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 6 and 1029 bytes into a destination of size 1024 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6140:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] + "Output file ( %s ) already exists,\n! " + ^~ +Src/cmor.c:6143:45: + "cmor_setup.", outname); + ~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 128 and 1151 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6132:45: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1010 [-Wformat-truncation=] + "Output file ( %s ) already exists,\n! " + ^~ +Src/cmor.c:6137:45: + "at: %s.copy", outname, outname); + ~~~~~~~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 206 and 2252 bytes into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Src/cmor.c:6153:22: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 970 [-Wformat-truncation=] + "could not rename temporary file: %s to final file\n" + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + "name: %s", cmor_vars[var_id].current_path, outname); + ~~~~~~~ +Src/cmor.c:6154:29: note: format string is defined here + "name: %s", cmor_vars[var_id].current_path, outname); + ^~ +In file included from /usr/include/stdio.h:873, + from Src/cmor.c:1: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 55 or more bytes (assuming 1078) into a destination of size 1024 + return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Src/cmor.c: In function 'cmor_addRIPF': Src/cmor.c:5617:48: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1000 [-Wformat-truncation=] "Your realization_index \"%s\" is invalid. \n! " @@ -26794,10 +26829,10 @@ install -d debian/python3-cmor/usr/share/doc/python3-cmor install -p -m0644 debian/copyright debian/python3-cmor/usr/share/doc/python3-cmor/copyright dh_installchangelogs - install -p -m0644 debian/changelog debian/python3-cmor/usr/share/doc/python3-cmor/changelog.Debian - install -p -m0644 debian/changelog debian/python-cmor/usr/share/doc/python-cmor/changelog.Debian install -p -m0644 debian/changelog debian/libcmor2/usr/share/doc/libcmor2/changelog.Debian install -p -m0644 debian/changelog debian/libcmor-dev/usr/share/doc/libcmor-dev/changelog.Debian + install -p -m0644 debian/changelog debian/python3-cmor/usr/share/doc/python3-cmor/changelog.Debian + install -p -m0644 debian/changelog debian/python-cmor/usr/share/doc/python-cmor/changelog.Debian dh_installexamples install -d debian/libcmor-dev/usr/share/doc/libcmor-dev/examples cp --reflink=auto -a ./Test/3D_txy.input debian/libcmor-dev/usr/share/doc/libcmor-dev/examples @@ -27269,7 +27304,7 @@ D: dh_python2 fs:209: removing unwanted: debian/python-cmor/usr/lib/python2.7/dist-packages/cmip6_cv/PrePARE/__init__.pyc D: dh_python2 fs:260: package python-cmor details = {'requires.txt': set(), 'egg-info': set(), 'nsp.txt': set(), 'shebangs': set(), 'public_vers': {Version('2.7')}, 'private_dirs': {}, 'compile': True, 'ext_vers': {Version('2.7')}, 'ext_no_version': set()} D: dh_python2 depends:114: generating dependencies for package python-cmor -D: dh_python2 depends:272: D={'python:any (<< 2.8)', 'python:any', 'python (<< 2.8)', 'python:any (>= 2.7~)', 'python (>= 2.7~)'}; R=[]; S=[]; E=[], B=[]; RT=[] +D: dh_python2 depends:272: D={'python (>= 2.7~)', 'python:any (>= 2.7~)', 'python (<< 2.8)', 'python:any', 'python:any (<< 2.8)'}; R=[]; S=[]; E=[], B=[]; RT=[] dh_python3 D: dh_python3 dh_python3:161: version: 3.20190308 D: dh_python3 dh_python3:162: argv: ['/usr/bin/dh_python3'] @@ -27287,7 +27322,7 @@ D: dh_python3 dh_python3:183: processing package python3-cmor... D: dh_python3 fs:260: package python3-cmor details = {'requires.txt': set(), 'egg-info': set(), 'nsp.txt': set(), 'shebangs': set(), 'public_vers': {Version('3')}, 'private_dirs': {}, 'compile': True, 'ext_vers': {Version('3.7')}, 'ext_no_version': set()} D: dh_python3 depends:114: generating dependencies for package python3-cmor -D: dh_python3 depends:272: D={'python3:any', 'python3 (>= 3.7~)', 'python3 (<< 3.8)'}; R=[]; S=[]; E=[], B=[]; RT=[] +D: dh_python3 depends:272: D={'python3:any', 'python3 (<< 3.8)', 'python3 (>= 3.7~)'}; R=[]; S=[]; E=[], B=[]; RT=[] dh_perl dh_link rm -f debian/libcmor-dev/usr/lib/x86_64-linux-gnu/libcmor.so @@ -27298,12 +27333,12 @@ cd debian/libcmor-dev cd debian/python3-cmor cd debian/python-cmor + chmod a-x usr/share/doc/libcmor2/changelog.Debian chmod a-x usr/share/doc/python-cmor/changelog.Debian chmod a-x usr/share/doc/python3-cmor/changelog.Debian - chmod a-x usr/share/doc/libcmor2/changelog.Debian + gzip -9nf usr/share/doc/libcmor2/changelog.Debian gzip -9nf usr/share/doc/python-cmor/changelog.Debian gzip -9nf usr/share/doc/python3-cmor/changelog.Debian - gzip -9nf usr/share/doc/libcmor2/changelog.Debian cd '/build/cmor-3.4.0' cd '/build/cmor-3.4.0' cd '/build/cmor-3.4.0' @@ -27312,14 +27347,14 @@ cd '/build/cmor-3.4.0' dh_fixperms find debian/libcmor2 -true -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0 - find debian/libcmor-dev -true -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0 find debian/python-cmor -true -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0 + find debian/libcmor-dev -true -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0 find debian/python3-cmor -true -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0 find debian/libcmor2 ! -type l -a -true -a -true -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s find debian/libcmor2/usr/share/doc -type f -a -true -a ! -regex 'debian/libcmor2/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 0644 find debian/libcmor2/usr/share/doc -type d -a -true -a -true -print0 2>/dev/null | xargs -0r chmod 0755 - find debian/python-cmor ! -type l -a -true -a -true -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s find debian/libcmor2 -type f \( -name '*.so.*' -o -name '*.so' -o -name '*.la' -o -name '*.a' -o -name '*.js' -o -name '*.css' -o -name '*.scss' -o -name '*.sass' -o -name '*.jpeg' -o -name '*.jpg' -o -name '*.png' -o -name '*.gif' -o -name '*.cmxs' -o -name '*.node' \) -a -true -a -true -print0 2>/dev/null | xargs -0r chmod 0644 + find debian/python-cmor ! -type l -a -true -a -true -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s find debian/python3-cmor ! -type l -a -true -a -true -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s find debian/libcmor2/usr/lib -type f -name '*.ali' -a -true -a -true -print0 2>/dev/null | xargs -0r chmod uga-w find debian/libcmor-dev ! -type l -a -true -a -true -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s @@ -27341,23 +27376,23 @@ dh_strip install -d debian/.debhelper/libcmor2/dbgsym-root/usr/lib/debug/.build-id/f2 objcopy --only-keep-debug --compress-debug-sections debian/libcmor2/usr/lib/x86_64-linux-gnu/libcmor.so.2 debian/.debhelper/libcmor2/dbgsym-root/usr/lib/debug/.build-id/f2/1d0b545cc5102d0270ab440e1c22ee4f2d161b.debug - install -d debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80 - objcopy --only-keep-debug --compress-debug-sections debian/python3-cmor/usr/lib/python3/dist-packages/cmor/_cmor.cpython-37m-x86_64-linux-gnu.so debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80/1c58870554a9bd7d8ad663e10a063302383807.debug - install -d debian/.debhelper/python-cmor/dbgsym-root/usr/lib/debug/.build-id/63 - objcopy --only-keep-debug --compress-debug-sections debian/python-cmor/usr/lib/python2.7/dist-packages/cmor/_cmor.x86_64-linux-gnu.so debian/.debhelper/python-cmor/dbgsym-root/usr/lib/debug/.build-id/63/bb3bb3033140388097e31af13cbdd28899d553.debug - strip --strip-debug --remove-section=.comment --remove-section=.note --enable-deterministic-archives debian/libcmor-dev/usr/lib/x86_64-linux-gnu/libcmor.a chmod 0644 -- debian/.debhelper/libcmor2/dbgsym-root/usr/lib/debug/.build-id/f2/1d0b545cc5102d0270ab440e1c22ee4f2d161b.debug chown 0:0 -- debian/.debhelper/libcmor2/dbgsym-root/usr/lib/debug/.build-id/f2/1d0b545cc5102d0270ab440e1c22ee4f2d161b.debug strip --remove-section=.comment --remove-section=.note --strip-unneeded debian/libcmor2/usr/lib/x86_64-linux-gnu/libcmor.so.2 objcopy --add-gnu-debuglink debian/.debhelper/libcmor2/dbgsym-root/usr/lib/debug/.build-id/f2/1d0b545cc5102d0270ab440e1c22ee4f2d161b.debug debian/libcmor2/usr/lib/x86_64-linux-gnu/libcmor.so.2 + install -d debian/.debhelper/python-cmor/dbgsym-root/usr/lib/debug/.build-id/63 + objcopy --only-keep-debug --compress-debug-sections debian/python-cmor/usr/lib/python2.7/dist-packages/cmor/_cmor.x86_64-linux-gnu.so debian/.debhelper/python-cmor/dbgsym-root/usr/lib/debug/.build-id/63/bb3bb3033140388097e31af13cbdd28899d553.debug install -d debian/.debhelper/libcmor2/dbgsym-root/usr/share/doc ln -s libcmor2 debian/.debhelper/libcmor2/dbgsym-root/usr/share/doc/libcmor2-dbgsym - chmod 0644 -- debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80/1c58870554a9bd7d8ad663e10a063302383807.debug - chown 0:0 -- debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80/1c58870554a9bd7d8ad663e10a063302383807.debug - strip --remove-section=.comment --remove-section=.note --strip-unneeded debian/python3-cmor/usr/lib/python3/dist-packages/cmor/_cmor.cpython-37m-x86_64-linux-gnu.so + install -d debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80 + objcopy --only-keep-debug --compress-debug-sections debian/python3-cmor/usr/lib/python3/dist-packages/cmor/_cmor.cpython-37m-x86_64-linux-gnu.so debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80/1c58870554a9bd7d8ad663e10a063302383807.debug + strip --strip-debug --remove-section=.comment --remove-section=.note --enable-deterministic-archives debian/libcmor-dev/usr/lib/x86_64-linux-gnu/libcmor.a chmod 0644 -- debian/.debhelper/python-cmor/dbgsym-root/usr/lib/debug/.build-id/63/bb3bb3033140388097e31af13cbdd28899d553.debug chown 0:0 -- debian/.debhelper/python-cmor/dbgsym-root/usr/lib/debug/.build-id/63/bb3bb3033140388097e31af13cbdd28899d553.debug strip --remove-section=.comment --remove-section=.note --strip-unneeded debian/python-cmor/usr/lib/python2.7/dist-packages/cmor/_cmor.x86_64-linux-gnu.so + chmod 0644 -- debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80/1c58870554a9bd7d8ad663e10a063302383807.debug + chown 0:0 -- debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80/1c58870554a9bd7d8ad663e10a063302383807.debug + strip --remove-section=.comment --remove-section=.note --strip-unneeded debian/python3-cmor/usr/lib/python3/dist-packages/cmor/_cmor.cpython-37m-x86_64-linux-gnu.so objcopy --add-gnu-debuglink debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/80/1c58870554a9bd7d8ad663e10a063302383807.debug debian/python3-cmor/usr/lib/python3/dist-packages/cmor/_cmor.cpython-37m-x86_64-linux-gnu.so objcopy --add-gnu-debuglink debian/.debhelper/python-cmor/dbgsym-root/usr/lib/debug/.build-id/63/bb3bb3033140388097e31af13cbdd28899d553.debug debian/python-cmor/usr/lib/python2.7/dist-packages/cmor/_cmor.x86_64-linux-gnu.so install -d debian/.debhelper/python3-cmor/dbgsym-root/usr/lib/debug/.build-id/5f @@ -27388,10 +27423,10 @@ rm -f debian/python3-cmor/DEBIAN/shlibs dh_shlibdeps dpkg-shlibdeps -Tdebian/libcmor2.substvars debian/libcmor2/usr/lib/x86_64-linux-gnu/libcmor.so.2 - install -d debian/python-cmor/DEBIAN - dpkg-shlibdeps -Tdebian/python-cmor.substvars debian/python-cmor/usr/lib/python2.7/dist-packages/cmor/_cmor.x86_64-linux-gnu.so debian/python-cmor/usr/lib/python2.7/dist-packages/cmip6_cv/_cmip6_cv.x86_64-linux-gnu.so install -d debian/python3-cmor/DEBIAN dpkg-shlibdeps -Tdebian/python3-cmor.substvars debian/python3-cmor/usr/lib/python3/dist-packages/cmor/_cmor.cpython-37m-x86_64-linux-gnu.so debian/python3-cmor/usr/lib/python3/dist-packages/cmip6_cv/_cmip6_cv.cpython-37m-x86_64-linux-gnu.so + install -d debian/python-cmor/DEBIAN + dpkg-shlibdeps -Tdebian/python-cmor.substvars debian/python-cmor/usr/lib/python2.7/dist-packages/cmor/_cmor.x86_64-linux-gnu.so debian/python-cmor/usr/lib/python2.7/dist-packages/cmip6_cv/_cmip6_cv.x86_64-linux-gnu.so dh_installdeb install -p -m0644 debian/.debhelper/generated/libcmor2/triggers debian/libcmor2/DEBIAN/triggers install -d debian/libcmor-dev/DEBIAN @@ -27435,16 +27470,11 @@ echo misc:Pre-Depends= >> debian/python-cmor.substvars install -d debian/.debhelper/python-cmor/dbgsym-root/DEBIAN dpkg-gencontrol -ppython-cmor -ldebian/changelog -Tdebian/python-cmor.substvars -Pdebian/.debhelper/python-cmor/dbgsym-root -UPre-Depends -URecommends -USuggests -UEnhances -UProvides -UEssential -UConflicts -DPriority=optional -UHomepage -UImportant -DAuto-Built-Package=debug-symbols -DPackage=python-cmor-dbgsym "-DDepends=python-cmor (= \${binary:Version})" "-DDescription=debug symbols for python-cmor" "-DBuild-Ids=446fc9cdc2fd4c51a5d47b1c7ac90149ce3d34df 63bb3bb3033140388097e31af13cbdd28899d553" -DSection=debug -UMulti-Arch -UReplaces -UBreaks -dpkg-gencontrol: warning: package python3-cmor: substitution variable ${python3:Versions} unused, but is defined -dpkg-gencontrol: warning: package python3-cmor: substitution variable ${python:Depends} unused, but is defined dpkg-gencontrol: warning: Depends field of package python-cmor: substitution variable ${pydeb:Depends} used, but is not defined - chmod 0644 -- debian/.debhelper/python3-cmor/dbgsym-root/DEBIAN/control - chown 0:0 -- debian/.debhelper/python3-cmor/dbgsym-root/DEBIAN/control - dpkg-gencontrol -ppython3-cmor -ldebian/changelog -Tdebian/python3-cmor.substvars -Pdebian/python3-cmor -dpkg-gencontrol: warning: package libcmor2: substitution variable ${python3:Depends} unused, but is defined -dpkg-gencontrol: warning: package libcmor2: substitution variable ${python:Depends} unused, but is defined dpkg-gencontrol: warning: package python-cmor: substitution variable ${python3:Depends} unused, but is defined dpkg-gencontrol: warning: package python-cmor: substitution variable ${python:Versions} unused, but is defined +dpkg-gencontrol: warning: package libcmor2: substitution variable ${python3:Depends} unused, but is defined +dpkg-gencontrol: warning: package libcmor2: substitution variable ${python:Depends} unused, but is defined chmod 0644 -- debian/.debhelper/python-cmor/dbgsym-root/DEBIAN/control chown 0:0 -- debian/.debhelper/python-cmor/dbgsym-root/DEBIAN/control dpkg-gencontrol -ppython-cmor -ldebian/changelog -Tdebian/python-cmor.substvars -Pdebian/python-cmor @@ -27455,39 +27485,44 @@ dpkg-gencontrol: warning: package libcmor-dev: substitution variable ${python:Depends} unused, but is defined chmod 0644 -- debian/libcmor-dev/DEBIAN/control chown 0:0 -- debian/libcmor-dev/DEBIAN/control +dpkg-gencontrol: warning: package python3-cmor: substitution variable ${python3:Versions} unused, but is defined +dpkg-gencontrol: warning: package python3-cmor: substitution variable ${python:Depends} unused, but is defined + chmod 0644 -- debian/.debhelper/python3-cmor/dbgsym-root/DEBIAN/control + chown 0:0 -- debian/.debhelper/python3-cmor/dbgsym-root/DEBIAN/control + dpkg-gencontrol -ppython3-cmor -ldebian/changelog -Tdebian/python3-cmor.substvars -Pdebian/python3-cmor dpkg-gencontrol: warning: Depends field of package python-cmor: substitution variable ${pydeb:Depends} used, but is not defined +dpkg-gencontrol: warning: package libcmor2: substitution variable ${python3:Depends} unused, but is defined +dpkg-gencontrol: warning: package libcmor2: substitution variable ${python:Depends} unused, but is defined dpkg-gencontrol: warning: package python3-cmor: substitution variable ${python3:Versions} unused, but is defined dpkg-gencontrol: warning: package python3-cmor: substitution variable ${python:Depends} unused, but is defined + chmod 0644 -- debian/libcmor2/DEBIAN/control + chown 0:0 -- debian/libcmor2/DEBIAN/control chmod 0644 -- debian/python3-cmor/DEBIAN/control chown 0:0 -- debian/python3-cmor/DEBIAN/control dpkg-gencontrol: warning: package python-cmor: substitution variable ${python3:Depends} unused, but is defined dpkg-gencontrol: warning: package python-cmor: substitution variable ${python:Versions} unused, but is defined chmod 0644 -- debian/python-cmor/DEBIAN/control chown 0:0 -- debian/python-cmor/DEBIAN/control -dpkg-gencontrol: warning: package libcmor2: substitution variable ${python3:Depends} unused, but is defined -dpkg-gencontrol: warning: package libcmor2: substitution variable ${python:Depends} unused, but is defined - chmod 0644 -- debian/libcmor2/DEBIAN/control - chown 0:0 -- debian/libcmor2/DEBIAN/control dh_md5sums cd debian/libcmor2 >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums cd debian/python3-cmor >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums - cd debian/libcmor-dev >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums - cd debian/python-cmor >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums chmod 0644 -- debian/libcmor2/DEBIAN/md5sums chown 0:0 -- debian/libcmor2/DEBIAN/md5sums + cd debian/python-cmor >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums + cd debian/libcmor-dev >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums + cd debian/.debhelper/libcmor2/dbgsym-root >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums + chmod 0644 -- debian/.debhelper/libcmor2/dbgsym-root/DEBIAN/md5sums + chown 0:0 -- debian/.debhelper/libcmor2/dbgsym-root/DEBIAN/md5sums chmod 0644 -- debian/python3-cmor/DEBIAN/md5sums chown 0:0 -- debian/python3-cmor/DEBIAN/md5sums + cd debian/.debhelper/python3-cmor/dbgsym-root >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums chmod 0644 -- debian/python-cmor/DEBIAN/md5sums chown 0:0 -- debian/python-cmor/DEBIAN/md5sums - cd debian/.debhelper/libcmor2/dbgsym-root >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums - cd debian/.debhelper/python3-cmor/dbgsym-root >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums - cd debian/.debhelper/python-cmor/dbgsym-root >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums chmod 0644 -- debian/libcmor-dev/DEBIAN/md5sums chown 0:0 -- debian/libcmor-dev/DEBIAN/md5sums + cd debian/.debhelper/python-cmor/dbgsym-root >/dev/null && xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums chmod 0644 -- debian/.debhelper/python3-cmor/dbgsym-root/DEBIAN/md5sums chown 0:0 -- debian/.debhelper/python3-cmor/dbgsym-root/DEBIAN/md5sums - chmod 0644 -- debian/.debhelper/libcmor2/dbgsym-root/DEBIAN/md5sums - chown 0:0 -- debian/.debhelper/libcmor2/dbgsym-root/DEBIAN/md5sums chmod 0644 -- debian/.debhelper/python-cmor/dbgsym-root/DEBIAN/md5sums chown 0:0 -- debian/.debhelper/python-cmor/dbgsym-root/DEBIAN/md5sums dh_builddeb @@ -27498,13 +27533,13 @@ dpkg-deb --build debian/.debhelper/python-cmor/dbgsym-root .. dpkg-deb --build debian/python3-cmor .. dpkg-deb --build debian/.debhelper/python3-cmor/dbgsym-root .. -dpkg-deb: building package 'libcmor2-dbgsym' in '../libcmor2-dbgsym_3.4.0-2_amd64.deb'. dpkg-deb: building package 'libcmor2' in '../libcmor2_3.4.0-2_amd64.deb'. +dpkg-deb: building package 'libcmor2-dbgsym' in '../libcmor2-dbgsym_3.4.0-2_amd64.deb'. dpkg-deb: building package 'python-cmor-dbgsym' in '../python-cmor-dbgsym_3.4.0-2_amd64.deb'. -dpkg-deb: building package 'python3-cmor-dbgsym' in '../python3-cmor-dbgsym_3.4.0-2_amd64.deb'. dpkg-deb: building package 'libcmor-dev' in '../libcmor-dev_3.4.0-2_amd64.deb'. dpkg-deb: building package 'python-cmor' in '../python-cmor_3.4.0-2_amd64.deb'. dpkg-deb: building package 'python3-cmor' in '../python3-cmor_3.4.0-2_amd64.deb'. +dpkg-deb: building package 'python3-cmor-dbgsym' in '../python3-cmor-dbgsym_3.4.0-2_amd64.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../cmor_3.4.0-2_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -27512,12 +27547,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/804211/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/804211/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/1379518 and its subdirectories -I: Current time: Tue Nov 30 05:23:05 -12 2021 -I: pbuilder-time-stamp: 1638292985 +I: removing directory /srv/workspace/pbuilder/804211 and its subdirectories +I: Current time: Tue Jan 3 13:47:46 +14 2023 +I: pbuilder-time-stamp: 1672703266