Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krJQ0-00033S-Ey for pgsql-committers@arkaria.postgresql.org; Mon, 21 Dec 2020 11:32:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1krJPz-0007On-6C for pgsql-committers@arkaria.postgresql.org; Mon, 21 Dec 2020 11:31:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krJPy-0007Og-UY for pgsql-committers@lists.postgresql.org; Mon, 21 Dec 2020 11:31:59 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1krJPw-0001sw-A1 for pgsql-committers@lists.postgresql.org; Mon, 21 Dec 2020 11:31:57 +0000 Received: by mail-io1-xd2d.google.com with SMTP id z136so8544031iof.3 for ; Mon, 21 Dec 2020 03:31:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h6RCjqfjTe9JgG7vb3ClJY5rPalGYBIGI+E89MvvBq0=; b=Z/FvCFYnDafwGqtE0taz99Rg/PjsqbWsZlJQyuEJ0tliEDxmr1dGkBvSj/z29VNrb2 EJlMtz+lbefZEEtAKbi1AZ6xaKj4k/zm2+PMTE7a4Iut07D474vNIbJ1G++mEB28RcGR f0vkeQYHWcN2OC/rMpRjhMzqkpdsCjGMPjjWKgHS698bD6JxWn/3s7pFRZY8DeaoeF04 Db6EN6kmNNzSnElBg5XWhACClYlp+Z2kivn6Q5BtdH81nJ9uvjkkbjhKlza5nCJFIaXe zQE/7aG9K1QCpFzX5X2gXKZencx7u2wPnBXstCGp4zuhWjNZ+OZTVJjFH1B8fl3USSgG 79ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h6RCjqfjTe9JgG7vb3ClJY5rPalGYBIGI+E89MvvBq0=; b=lmuua1XYfrB/5peaSDlxc1PKX8clEnMk92+VGtATgYi1dLUxcfdYvT5A9zX8fKSisn /giwEjwnQGwNRl76lKfC7wclazRT3TbwYJwegZMCezMbsVvKGJsncmS0OAM08iw+IL+O 8XtVcsUjEUA+R4QUw7H9mBzcXsewBxXZm6huXaUdpWouQFiNCwZuutg1ofsgdvK8aWRb 5cDm7jVKcR/zxCoLCQK35KwZyOFLJEtjsk6p9xhtX11Igthh/C54iyVwDkdUlfpL1uar 9evSgHEpk35Vi1Xeqi4uLX2/1Y2bfFqkHJRV9cDTzuCy9ug+d4D2LNishieNdQdcWQnq c+DA== X-Gm-Message-State: AOAM5311KUJyZGCSTjUhc0J4TsUPGMITCX6lEqwEe0lmazO+mdyJN8Cw 9bV1mW/nqJw2UmqlHzLUP3AyE62gbKYQgMy5ML7VLwDxzhPq4Q== X-Google-Smtp-Source: ABdhPJxBTLLzaNoHbv/MwbXENRvKRKpFw4A7qMAPnqUzO4m9IqvUxvudXTpRFuXOyrPPZXs9YGCyE4I/l/hAQdc1X7Y= X-Received: by 2002:a5d:8405:: with SMTP id i5mr13888981ion.164.1608550315355; Mon, 21 Dec 2020 03:31:55 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Korotkov Date: Mon, 21 Dec 2020 14:31:44 +0300 Message-ID: Subject: Re: pgsql: Multirange datatypes To: Michael Paquier Cc: Alexander Korotkov , pgsql-committers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, Michael! On Mon, Dec 21, 2020 at 10:34 AM Michael Paquier wrote: > On Sun, Dec 20, 2020 at 04:21:16AM +0000, Alexander Korotkov wrote: > > Multirange datatypes > > > > Multiranges are basically sorted arrays of non-overlapping ranges with > > set-theoretic operations defined over them. > > This commit is creating a compilation warning on Windows: > multirangetypes.c(1033): warning C4715: 'multirange_constructor0' : > not all control paths return a value > > See for example woodlouse: > https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=woodlouse&dt=2020-12-21%2001%3A42%3A28&stg=make > > Looking at the code, it is obvious that the compiler cannot understand > that this should always return. Please find attached a suggestion of > patch. Thank you for catching this! Pushed. ------ Regards, Alexander Korotkov