Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQB6Z-0002qB-C2 for pgsql-committers@arkaria.postgresql.org; Sat, 16 Dec 2017 11:58:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQB6X-0006hB-Nm for pgsql-committers@arkaria.postgresql.org; Sat, 16 Dec 2017 11:58:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eQB6X-0006h1-By for pgsql-committers@lists.postgresql.org; Sat, 16 Dec 2017 11:58:09 +0000 Received: from mail-ua0-x229.google.com ([2607:f8b0:400c:c08::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eQB6P-0003Vd-F8 for pgsql-committers@postgresql.org; Sat, 16 Dec 2017 11:58:07 +0000 Received: by mail-ua0-x229.google.com with SMTP id a25so563446uak.3 for ; Sat, 16 Dec 2017 03:58:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uAQnDVHfJSZBAR4eLhaYunonh9oGBqQFqbkvx9/FHqU=; b=KBafBW2LKXGWLygodTnlWOw87pwMsNAOLzcUn+8tSE6MKQNrrY8jsiYieA6F4WRvwM e7APn8oLPh+xuuc+tVrIp4u3kVtvCw4Xdm6GSGTT94wt6CTXMAi9SO46eipedswPyBnV lfhaQuwj4fcTcCZ4wjgYkvlvTh0WwDm8R4NALjGx09GFTSfvA51kHYKz3F0CgScAYuyf D+t4SdTv6YHaohtuB7kge1nLrjCQVfmwA728gyuS7nlczdP37h2ahr5307gwA4gLAYPZ XeWIeOeNGdMvJi8J+dBy19BRM0/CVDCMlA5GJpMKYquWXlw5gk2iKeGSAZThDaotCr2O 6QRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uAQnDVHfJSZBAR4eLhaYunonh9oGBqQFqbkvx9/FHqU=; b=Rd9cu780D21XET0u5ocg3QqvoSv1NeptQjQkpPRjX9y0gDkz/vLrfMkBiGbZ0KPIY/ dBim6e+wSIfQhN4TUC82p0Zrsg7DuA28aBncVBLkQ9Xx/riYZ0A2BiMc4kn6ZY07D7QQ Rs83pR+P6yrklmKQ7KFNkRhhK2OO1KP724RE2zyufhXc2IPNSTkM5EVk1LUjciaaC12L 4rcx3PDTgedmZio1MMMpgZM0H6pJlQqKfi/U0EXz6QzP63BBNoNaSl7PCnlOfGiwPBAq gi6OOCZAjzdffU3Api1Ghs2hUbeCIDPHvoO4wvnF0cYumAsz/phAf/NXrhGlDZDyFe5w hK1g== X-Gm-Message-State: AKGB3mJjvR9faIK6vMOuMu0NZkKm7yMc9VEo0bXlAEzP3k9oTm8APHMt qnEKUiQaq3pXDTehmUhmLhv4WRgh4ekAl89+b2+onRyL X-Google-Smtp-Source: ACJfBosqhg2EvOV2Sy2DRfDYJTec+FKWa+e3nHCGF12YN5x4tJM22QqGQpyT308OoeN4WDSSqSCbTyLgWbTG4YU6Z+g= X-Received: by 10.159.61.196 with SMTP id e4mr18478086uaj.156.1513425479682; Sat, 16 Dec 2017 03:57:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.64.9 with HTTP; Sat, 16 Dec 2017 03:57:59 -0800 (PST) In-Reply-To: References: From: David Rowley Date: Sun, 17 Dec 2017 00:57:59 +1300 Message-ID: Subject: Re: pgsql: Use new overflow aware integer operations. To: Andres Freund Cc: pgsql-committers Content-Type: multipart/mixed; boundary="089e082b7ae81c9068056073d423" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --089e082b7ae81c9068056073d423 Content-Type: text/plain; charset="UTF-8" On 13 December 2017 at 14:01, Andres Freund wrote: > Use new overflow aware integer operations. Thanks for making this happen. I notice it's caused a small warning in compilers that don't understand about elog(ERROR) and ereport(ERROR) not returning. This can be seen on bowerbird's compile log [1]: c:\prog\bf\root\head\pgsql.build\src\backend\utils\adt\int8.c(131): warning C4715: 'scanint8' : not all control paths return a value [c:\prog\bf\root\HEAD\pgsql.build\postgres.vcxproj] The attached just shuffles things around to get rid of the warning. This way seems better than to add another "return false" at the end as this way saves a couple of lines of code rather than adding one. [1] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=bowerbird&dt=2017-12-15%2018%3A21%3A51&stg=make -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --089e082b7ae81c9068056073d423 Content-Type: application/octet-stream; name="scanint8_warning_fix.patch" Content-Disposition: attachment; filename="scanint8_warning_fix.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jb9acuj80 ZGlmZiAtLWdpdCBhL3NyYy9iYWNrZW5kL3V0aWxzL2FkdC9pbnQ4LmMgYi9zcmMvYmFja2VuZC91 dGlscy9hZHQvaW50OC5jCmluZGV4IGE4ZTIyMDAuLjcwOWNmN2MgMTAwNjQ0Ci0tLSBhL3NyYy9i YWNrZW5kL3V0aWxzL2FkdC9pbnQ4LmMKKysrIGIvc3JjL2JhY2tlbmQvdXRpbHMvYWR0L2ludDgu YwpAQCAtMTEzLDIxICsxMTMsMTkgQEAgc2NhbmludDgoY29uc3QgY2hhciAqc3RyLCBib29sIGVy cm9yT0ssIGludDY0ICpyZXN1bHQpCiAJcmV0dXJuIHRydWU7CiAKIG91dF9vZl9yYW5nZToKLQlp ZiAoZXJyb3JPSykKLQkJcmV0dXJuIGZhbHNlOwotCWVsc2UKKwlpZiAoIWVycm9yT0spCiAJCWVy ZXBvcnQoRVJST1IsCiAJCQkJKGVycmNvZGUoRVJSQ09ERV9OVU1FUklDX1ZBTFVFX09VVF9PRl9S QU5HRSksCiAJCQkJIGVycm1zZygidmFsdWUgXCIlc1wiIGlzIG91dCBvZiByYW5nZSBmb3IgdHlw ZSAlcyIsCiAJCQkJCQlzdHIsICJiaWdpbnQiKSkpOworCXJldHVybiBmYWxzZTsKIGludmFsaWRf c3ludGF4OgotCWlmIChlcnJvck9LKQotCQlyZXR1cm4gZmFsc2U7Ci0JZWxzZQorCWlmICghZXJy b3JPSykKIAkJZXJlcG9ydChFUlJPUiwKIAkJCQkoZXJyY29kZShFUlJDT0RFX0lOVkFMSURfVEVY VF9SRVBSRVNFTlRBVElPTiksCiAJCQkJIGVycm1zZygiaW52YWxpZCBpbnB1dCBzeW50YXggZm9y IGludGVnZXI6IFwiJXNcIiIsCiAJCQkJCQlzdHIpKSk7CisJcmV0dXJuIGZhbHNlOwogfQogCiAv KiBpbnQ4aW4oKQo= --089e082b7ae81c9068056073d423--