Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2020 09:08:27 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r547250 - head/x11-wm/oroborus/files
Message-ID:  <202009010908.08198RWl065481@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue Sep  1 09:08:27 2020
New Revision: 547250
URL: https://svnweb.freebsd.org/changeset/ports/547250

Log:
  Ensure that there is only one variable definition per each object, as
  the C (and C++) standards mandated for years and compilers started to
  enforce as of recently (Clang 11, GCC 10).
  
  Reported by:	pkg-fallout

Added:
  head/x11-wm/oroborus/files/patch-src_hints.c   (contents, props changed)
  head/x11-wm/oroborus/files/patch-src_keyboard.c   (contents, props changed)
  head/x11-wm/oroborus/files/patch-src_keyboard.h   (contents, props changed)

Added: head/x11-wm/oroborus/files/patch-src_hints.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/oroborus/files/patch-src_hints.c	Tue Sep  1 09:08:27 2020	(r547250)
@@ -0,0 +1,11 @@
+--- src/hints.c.orig	2006-01-12 15:40:43 UTC
++++ src/hints.c
+@@ -43,7 +43,7 @@ Atom win_hints, win_state, win_client_list, win_layer,
+   win_workspace_count, win_desktop_button_proxy, win_supporting_wm_check,
+   gnome_panel_desktop_area;
+ Atom net_atoms[NET_ATOM_COUNT];
+-Display *dpy;
++extern Display *dpy;
+ 
+ void
+ initHints (Display * d)

Added: head/x11-wm/oroborus/files/patch-src_keyboard.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/oroborus/files/patch-src_keyboard.c	Tue Sep  1 09:08:27 2020	(r547250)
@@ -0,0 +1,11 @@
+--- src/keyboard.c.orig	2006-01-12 15:40:43 UTC
++++ src/keyboard.c
+@@ -35,6 +35,8 @@
+ #include <stdio.h>
+ #endif
+ 
++int NumLockMask, CapsLockMask, ScrollLockMask;
++
+ void
+ parseKeyString (Display * dpy, MyKey * key, char *str)
+ {

Added: head/x11-wm/oroborus/files/patch-src_keyboard.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/oroborus/files/patch-src_keyboard.h	Tue Sep  1 09:08:27 2020	(r547250)
@@ -0,0 +1,11 @@
+--- src/keyboard.h.orig	2006-01-12 15:40:43 UTC
++++ src/keyboard.h
+@@ -90,7 +90,7 @@ void grabKey (Display *, MyKey *, Window);
+ void ungrabKeys (Display *, Window);
+ void init_keyboard (Display * dpy);
+ 
+-int NumLockMask, CapsLockMask, ScrollLockMask;
++extern int NumLockMask, CapsLockMask, ScrollLockMask;
+ 
+ #endif /* __KEYBOARD_H */
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009010908.08198RWl065481>