0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/fvwm/fvwm-2.7.0-clang16-0002.patch
Tee KOBAYASHI d8984d91b2 fvwm: Fix configure for strict C99
%ci:no-build
2023-04-09 12:21:32 +09:00

16 lines
567 B
Diff

https://github.com/termux/termux-packages/issues/15852
--- a/configure.ac
+++ b/configure.ac
@@ -221,8 +221,8 @@
# catch -Werror and similar options when running configure
AC_TRY_COMPILE([#include <stdio.h>],
[int i; int *p; char *c;
- switch (*p = p = *c) { case 0: printf("%Q", c, p); }
- *c = &i; c = p;
+ switch (*p = (int)(p = (int *)*c)) { case 0: printf("%Q", c, p); }
+ *c = (char)&i; c = p;
while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1));
], , AC_MSG_ERROR("
configure is not able to compile programs with warnings. Please