From 485d64204c68331eb6e29d36b15bcc11e6bd512c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Mon, 31 May 2021 14:52:22 +0300 Subject: [PATCH] =?UTF-8?q?x11-wm/pekwm:=20=D0=9F=D0=B0=D1=82=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ActionHandler.cc:586:10: error: narrowing conversion of ‘WORKSPACE_LEFT’ from ‘unsigned int’ to ‘int’ [-Wnarrowing] https://github.com/pekdon/pekwm/commit/e2e7456ce3d12c9c9330e615d2c90b3c41a90a67.patch --- .../x11-wm/pekwm/.calculate_directory | 1 + .../x11-wm/pekwm/pekwm-0.1.17-c11.patch | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 profiles/templates/3.6/6_ac_install_patch/x11-wm/pekwm/.calculate_directory create mode 100644 profiles/templates/3.6/6_ac_install_patch/x11-wm/pekwm/pekwm-0.1.17-c11.patch diff --git a/profiles/templates/3.6/6_ac_install_patch/x11-wm/pekwm/.calculate_directory b/profiles/templates/3.6/6_ac_install_patch/x11-wm/pekwm/.calculate_directory new file mode 100644 index 000000000..615bc8bdf --- /dev/null +++ b/profiles/templates/3.6/6_ac_install_patch/x11-wm/pekwm/.calculate_directory @@ -0,0 +1 @@ +# Calculate append=skip merge()!= diff --git a/profiles/templates/3.6/6_ac_install_patch/x11-wm/pekwm/pekwm-0.1.17-c11.patch b/profiles/templates/3.6/6_ac_install_patch/x11-wm/pekwm/pekwm-0.1.17-c11.patch new file mode 100644 index 000000000..67c558e5a --- /dev/null +++ b/profiles/templates/3.6/6_ac_install_patch/x11-wm/pekwm/pekwm-0.1.17-c11.patch @@ -0,0 +1,23 @@ +# Calculate format=diff +From e2e7456ce3d12c9c9330e615d2c90b3c41a90a67 Mon Sep 17 00:00:00 2001 +From: Andreas Schlick +Date: Sun, 9 Jun 2013 19:56:35 +0200 +Subject: [PATCH] Add cast for enum for compilation with -std=c++11. + +--- + src/ActionHandler.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/ActionHandler.cc b/src/ActionHandler.cc +index 5302e9a1..4d340614 100644 +--- a/src/ActionHandler.cc ++++ b/src/ActionHandler.cc +@@ -603,7 +603,7 @@ ActionHandler::actionSendToWorkspace(PDecor *decor, int direction) + row_min = Workspaces::getRowMin(), + row_max = Workspaces::getRowMax(); + +- switch (direction) { ++ switch (static_cast(direction)) { + case WORKSPACE_LEFT: + case WORKSPACE_PREV: + if (cur_act > row_min) {