diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-07-20 13:11:59 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-07-20 13:11:59 +0000 |
commit | 33c927b5d02368d7b0c374578ba660b6299e1ca1 (patch) | |
tree | 88e0412446de5b408e29e63c50d0fee5e64e438f /x11/wbar/files/patch-src_config_Functions.cc | |
parent | 9cb860e90a47c15b1013cc122348ba7da4d8a004 (diff) | |
download | ports-33c927b5d02368d7b0c374578ba660b6299e1ca1.tar.gz ports-33c927b5d02368d7b0c374578ba660b6299e1ca1.zip |
x11/wbar: Unbreak build with Clang 6
./src/core/Main.cc:84:38: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
command = PACKAGE_NAME" "DEFAULT_ARGV;
^
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p474767_s336359/logs/wbar-2.3.4_1.log
http://thunderx1.nyi.freebsd.org/data/head-arm64-default/p474481_s336216/logs/wbar-2.3.4_1.log
Notes
Notes:
svn path=/head/; revision=475013
Diffstat (limited to 'x11/wbar/files/patch-src_config_Functions.cc')
-rw-r--r-- | x11/wbar/files/patch-src_config_Functions.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11/wbar/files/patch-src_config_Functions.cc b/x11/wbar/files/patch-src_config_Functions.cc new file mode 100644 index 000000000000..d564df6aa63f --- /dev/null +++ b/x11/wbar/files/patch-src_config_Functions.cc @@ -0,0 +1,29 @@ +../src/config/Functions.cc:14:34: error: invalid suffix on literal; C++11 requires a + space between literal and identifier [-Wreserved-user-defined-literal] +#define ICON_DEFAULT PIXMAPDIR"/"PACKAGE_NAME".png" + ^ + +../src/config/Functions.cc:307:38: error: invalid suffix on literal; C++11 requires a + space between literal and identifier [-Wreserved-user-defined-literal] + command = PACKAGE_NAME" "DEFAULT_ARGV; + +--- src/config/Functions.cc.orig 2012-09-19 02:54:53 UTC ++++ src/config/Functions.cc +@@ -11,7 +11,7 @@ + #include "Run.h" + #include "OptParser.h" + +-#define ICON_DEFAULT PIXMAPDIR"/"PACKAGE_NAME".png" ++#define ICON_DEFAULT PIXMAPDIR "/" PACKAGE_NAME ".png" + + static const gchar *authors[] = + { +@@ -304,7 +304,7 @@ void set_config_states(std::string command) + + if (command.empty()) + { +- command = PACKAGE_NAME" "DEFAULT_ARGV; ++ command = PACKAGE_NAME " " DEFAULT_ARGV; + } + + if (argc <= 1 || tmpoptparser.isSet( OptParser::CONFIG )) |