freebsd-ports/comms/flrig/files/patch-src_main.cxx
Diane Bruce cf616cb1bc Make build under clang6
Added one patchfile

main.cxx:517:21: error: invalid suffix on literal; C++11 requires a space       +between literal and identifier [-Wreserved-user-defined-literal]                               printf("Version: "VERSION"\n");

Reported by:	pkg-fallout
2018-01-18 20:45:32 +00:00

11 lines
336 B
C++

--- src/main.cxx.orig 2018-01-18 20:38:50 UTC
+++ src/main.cxx
@@ -514,7 +514,7 @@ int parse_args(int argc, char **argv, int& idx)
exit(0);
}
if (strcasecmp("--version", argv[idx]) == 0) {
- printf("Version: "VERSION"\n");
+ printf("Version: %s\n",VERSION);
exit (0);
}
if (strcasecmp("--rig_debug", argv[idx]) == 0) {