external/firebird: Implicit int in configure check
...so that with Clang 15 trunk after
<https://github.com/llvm/llvm-project/commit/2cb2cd242ca08d0bbd2a51a41f1317442e5414fc>
"Change the behavior of implicit int diagnostics" the check now failed to
compile with
> configure:21471: checking alignment of long
[...]
> conftest.c:166:2: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
with consequences the same as in f6be6cd82b
"external/firebird: Missing include in configure check" (so rename the existing
configure-include.patch, as it now covers various kinds of C99 violations)
Change-Id: I64e7c13945a3ede3900cc6a84da575e35bdce953
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133994
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,firebird,\
|
||||
external/firebird/msvc.patch \
|
||||
external/firebird/wnt-per-process-trace-storage.patch.1 \
|
||||
external/firebird/0001-extern-cloop-Missing-dependencies-of-compilations-on.patch.1 \
|
||||
external/firebird/configure-include.patch \
|
||||
external/firebird/configure-c99.patch \
|
||||
))
|
||||
|
||||
ifeq ($(OS),WNT)
|
||||
|
||||
+9
-4
@@ -1,18 +1,23 @@
|
||||
--- configure
|
||||
+++ configure
|
||||
@@ -21478,6 +21478,7 @@
|
||||
@@ -21478,8 +21478,9 @@
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
+#include <stdlib.h>
|
||||
#include <semaphore.h>
|
||||
main () {
|
||||
-main () {
|
||||
+int main () {
|
||||
struct s {
|
||||
@@ -21514,6 +21515,7 @@
|
||||
char a;
|
||||
union { long long x; sem_t y; } b;
|
||||
@@ -21514,7 +21515,8 @@
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
-main () {
|
||||
+#include <stdlib.h>
|
||||
main () {
|
||||
+int main () {
|
||||
struct s {
|
||||
char a;
|
||||
double b;
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
/* end confdefs.h. */
|
||||
#include <stdlib.h>
|
||||
-#include <semaphore.h>
|
||||
main () {
|
||||
int main () {
|
||||
struct s {
|
||||
char a;
|
||||
- union { long long x; sem_t y; } b;
|
||||
|
||||
Reference in New Issue
Block a user