Re: Fix for configure error in 9.5/9.6 on macOS 11.0 Big Sur

Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Jesse Zhang <sbjesse@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Thomas Gilligan <thomas.gilligan@icloud.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-09-03T04:57:47Z
Lists: pgsql-hackers
On 2020-09-02 22:43, Jesse Zhang wrote:
> | conftest.c:184:3: error: implicitly declaring library function
> 'exit' with type 'void (int) __attribute__((noreturn))'
> [-Werror,-Wimplicit-function-declaration]
> |   exit(! does_int64_work());
> |   ^
> | conftest.c:184:3: note: include the header <stdlib.h> or explicitly
> provide a declaration for 'exit'
> | 2 warnings and 1 error generated.

Where did the -Werror come from?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. Use return instead of exit() in configure