tigervnc/tigervnc-c99-2.patch
Florian Weimer 2957f63ae9 C compatibility fixes
The tigervnc-xserver120.patch change is already upstream
(commit e4ec992984983ac9107efae1f1cc552007e4229e).

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2023-11-22 13:52:36 +01:00

24 lines
781 B
Diff

commit 25a03f430f47733b215eb9f0251e25ce7bdb7ada
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed Nov 22 12:57:03 2023 +0100
cmake: Use correct input pointer type for iconv detection
The iconv function expects a char ** pointer argument for the input
pointer. Future C compilers will flag this as an error (as it is not
valid C), causing this probe to fail incorrectly.
diff --git a/cmake/Modules/FindIconv.cmake b/cmake/Modules/FindIconv.cmake
index cf268ea0..9cd899da 100644
--- a/cmake/Modules/FindIconv.cmake
+++ b/cmake/Modules/FindIconv.cmake
@@ -36,7 +36,7 @@ IF(ICONV_FOUND)
#include <iconv.h>
int main(){
iconv_t conv = 0;
- const char* in = 0;
+ char* in = 0;
size_t ilen = 0;
char* out = 0;
size_t olen = 0;