tigervnc/tigervnc-c99-1.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

31 lines
814 B
Diff

Replace INITARGS with void
Most compilers currently accept arbitrary identifiers in this place
and ignore then, but this is going to change and turn into an error.
Submitted upstream: <https://github.com/TigerVNC/tigervnc/pull/1698>
diff --git a/unix/xserver/hw/vnc/vncModule.c b/unix/xserver/hw/vnc/vncModule.c
index a448c2f1..fb8ce047 100644
--- a/unix/xserver/hw/vnc/vncModule.c
+++ b/unix/xserver/hw/vnc/vncModule.c
@@ -36,7 +36,7 @@
#include "XorgGlue.h"
#include "RandrGlue.h"
-static void vncModuleInit(INITARGS);
+static void vncModuleInit(void);
static MODULESETUPPROTO(vncSetup);
@@ -70,7 +70,7 @@ vncSetup(void * module, void * opts, int *errmaj, int *errmin) {
return (void *)1;
}
-static void vncModuleInit(INITARGS)
+static void vncModuleInit(void)
{
static char once = 0;