mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
d105717fd7
Clang 6 (on 12-CURRENT) reports the following error during build: EWMH.cc:250:7: error: non-constant-expression cannot be narrowed from type 'long' to 'unsigned long' in initializer list [-Wc++11-narrowing] { static_cast<long>(x), static_cast<long>(y) }; ^~~~~~~~~~~~~~~~~~~~ There was also a bug introduced 4 years ago which removed the MAN1 variable a later INSTALL_MAN macro relied on [1]. This caused a build/install failure when the TOOLS_ONLY option was enabled. This change fixes those two issues. While I'm here level up port compliance: - Add LICENSE_FILE - Convert to OPTIONS helpers - Regenerate patches [1] http://svnweb.freebsd.org/changeset/ports/346174 [2] https://lists.freebsd.org/pipermail/freebsd-ports/2018-August/114039.html PR: 226708 Submitted by: <Trond Endrestol ximalas info> (Clang 6 fix) Approved by: Andrew J. Caines <A J Caines halplant com> (technically) Approved by: portmgr (implicit, build fixes, framework compliance) Reported by: Erich Dollansky <freebsd ed lists sumeritec com> [2] MFH: 2018Q3
29 lines
652 B
C++
29 lines
652 B
C++
--- src/blackbox.cc.orig 2005-10-18 11:33:25 UTC
|
|
+++ src/blackbox.cc
|
|
@@ -27,6 +27,8 @@
|
|
#include "Slit.hh"
|
|
#include "Window.hh"
|
|
|
|
+#include <cstdlib>
|
|
+
|
|
#include <Pen.hh>
|
|
#include <PixmapCache.hh>
|
|
#include <Util.hh>
|
|
@@ -36,6 +38,7 @@
|
|
#include <sys/stat.h>
|
|
#include <assert.h>
|
|
#include <signal.h>
|
|
+#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
// #define FOCUS_DEBUG
|
|
@@ -422,7 +425,7 @@ Blackbox::Blackbox(char **m_argv, const char *dpy_name
|
|
if (managed == 0) {
|
|
fprintf(stderr, "%s: no managable screens found, exiting...\n",
|
|
applicationName().c_str());
|
|
- ::exit(3);
|
|
+ std::exit(3);
|
|
}
|
|
|
|
screen_list_count = managed;
|