From 8f53b3e88228afec00a5d4fbc9ff0c0793ce3ab8 Mon Sep 17 00:00:00 2001 From: wccsnow Date: Fri, 5 Jan 2018 20:43:59 -0500 Subject: [PATCH 01/13] minor --- DESCRIPTION | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 46ae928..d835bcd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: pbdZMQ -Version: 0.3-0 -Date: 2017-12-30 +Version: 0.3-1 +Date: 2018-01-05 Title: Programming with Big Data -- Interface to ZeroMQ Authors@R: c(person("Wei-Chen", "Chen", role = c("aut", "cre"), email = "wccsnow@gmail.com"), @@ -21,8 +21,8 @@ Depends: R (>= 3.2.0) LazyLoad: yes LazyData: yes Copyright: See files AUTHORS, COPYING, COPYING.LESSER, and MAINTAINERS - in pbdZMQ/inst/zmq_copyright/ for the ZeroMQ source files in - src/zmq_src/ which are under GPL-3. + in 'pbdZMQ/inst/zmq_copyright/' for the ZeroMQ source files in + 'src/zmq_src/' which are under GPL-3. Description: 'ZeroMQ' is a well-known library for high-performance asynchronous messaging in scalable, distributed applications. This package provides high level R wrapper functions to easily utilize @@ -31,8 +31,8 @@ Description: 'ZeroMQ' is a well-known library for high-performance is shipped with 'pbdZMQ', which can be used if no system installation of 'ZeroMQ' is available. A few wrapper functions compatible with 'rzmq' are also provided. -SystemRequirements: Linux, Mac OSX, and Windows, or ZeroMQ library >= - 4.0.4. Solaris 10 needs ZeroMQ library 4.0.7 and OpenCSW. +SystemRequirements: Linux, Mac OSX, and Windows, or 'ZeroMQ' library >= + 4.0.4. Solaris 10 needs 'ZeroMQ' library 4.0.7 and 'OpenCSW'. License: GPL-3 URL: http://r-pbd.org/ BugReports: http://group.r-pbd.org/ From 8e40ccbf7254c7cd5868b94b230b5d05b7ca097c Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 16:24:51 -0500 Subject: [PATCH 02/13] Test osx external static library --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ef35b2b..6db07b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ os: - osx before_install: - #- sudo apt-get install -qq libzmq3-dev + - sudo apt-get install -qq libzmq3-dev - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh - chmod 755 ./travis-tool.sh - ./travis-tool.sh bootstrap @@ -21,7 +21,7 @@ install: script: # - ./travis-tool.sh run_tests - - ./travis-tool.sh install_github snoweye/pbdZMQ@pbdZMQ_0.3-0 + - ./travis-tool.sh install_github snoweye/pbdZMQ - Rscript -e "pbdZMQ::get.zmq.cppflags()" - Rscript -e "pbdZMQ::get.zmq.ldflags()" - Rscript -e "pbdZMQ::get.pbdZMQ.ldflags()" From 1e361b2a14a0dc67de084dbce9a008d8c0e08f4e Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 17:22:56 -0500 Subject: [PATCH 03/13] Use external static libzmq --- .travis.yml | 23 +++++++++++++++++------ src/install.libs.R | 4 ++-- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6db07b0..1412e76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,17 +6,28 @@ language: c +### For Linux +# os: +# - linux +### Use external static library +# before_install: +# - sudo apt-get install -qq libzmq3-dev + +### For osx os: - #- linux - osx - +### Use external static library before_install: - - sudo apt-get install -qq libzmq3-dev + - git clone git://github.com/zeromq/libzmq.git + - curl -OL http://raw.github.com/snoweye/libzmq_osx/master/make_libzmq_osx.sh + - chmod 755 make_libzmq_osx.sh + - make_libzmq_osx.sh + + +install: - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh - chmod 755 ./travis-tool.sh - ./travis-tool.sh bootstrap - -install: - ./travis-tool.sh install_deps script: @@ -27,7 +38,7 @@ script: - Rscript -e "pbdZMQ::get.pbdZMQ.ldflags()" - Rscript -e "pbdZMQ::test.load.zmq()" - otool -L /Library/Frameworks/R.framework/Versions/3.4/Resources/library/pbdZMQ/libs/pbdZMQ.so - - otool -L /Library/Frameworks/R.framework/Versions/3.4/Resources/library/pbdZMQ/libs/libzmq.5.dylib + # - otool -L /Library/Frameworks/R.framework/Versions/3.4/Resources/library/pbdZMQ/libs/libzmq.5.dylib after_failure: - ./travis-tool.sh dump_logs diff --git a/src/install.libs.R b/src/install.libs.R index e3eccee..2c7a983 100644 --- a/src/install.libs.R +++ b/src/install.libs.R @@ -15,14 +15,14 @@ if(length(files) > 0){ ### For Mac OSX and when "internal ZMQ" is asked. ### Overwrite RPATH from the shared library installed to the destination. - if(Sys.info()[['sysname']] == "Darwin"){ + if(Sys.info()[['sysname']] == "Darwin" && length(lib.osx) > 0){ cmd.int <- system("which install_name_tool", intern = TRUE) cmd.ot <- system("which otool", intern = TRUE) fn.pbdZMQ.so <- file.path(dest, "pbdZMQ.so") if(length(lib.osx) != 1){ print(lib.osx) - stop("None or more than one libzmq.*.dylib are found.") + stop("More than one libzmq.*.dylib are found.") } else{ fn.libzmq.dylib <- file.path(dest, lib.osx) From b6fff9ed6eb8fe14c1ce3580ba7ae1299a01106f Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 17:32:52 -0500 Subject: [PATCH 04/13] travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1412e76..a30cfa2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ before_install: - git clone git://github.com/zeromq/libzmq.git - curl -OL http://raw.github.com/snoweye/libzmq_osx/master/make_libzmq_osx.sh - chmod 755 make_libzmq_osx.sh - - make_libzmq_osx.sh + - ./make_libzmq_osx.sh install: From 169c35f2ca9358bb300e3fa3c082fdd6080e1380 Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 18:56:50 -0500 Subject: [PATCH 05/13] change get.zmq.conf() --- .travis.yml | 7 ++--- src/zmqsrc/include/zmq_utils.h | 48 ++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 src/zmqsrc/include/zmq_utils.h diff --git a/.travis.yml b/.travis.yml index a30cfa2..791acc2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,11 +28,12 @@ install: - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh - chmod 755 ./travis-tool.sh - ./travis-tool.sh bootstrap - - ./travis-tool.sh install_deps + # - ./travis-tool.sh install_deps script: # - ./travis-tool.sh run_tests - - ./travis-tool.sh install_github snoweye/pbdZMQ + # - ./travis-tool.sh install_github snoweye/pbdZMQ + - R CMD INSTALL . - Rscript -e "pbdZMQ::get.zmq.cppflags()" - Rscript -e "pbdZMQ::get.zmq.ldflags()" - Rscript -e "pbdZMQ::get.pbdZMQ.ldflags()" @@ -41,7 +42,7 @@ script: # - otool -L /Library/Frameworks/R.framework/Versions/3.4/Resources/library/pbdZMQ/libs/libzmq.5.dylib after_failure: - - ./travis-tool.sh dump_logs + # - ./travis-tool.sh dump_logs notifications: email: diff --git a/src/zmqsrc/include/zmq_utils.h b/src/zmqsrc/include/zmq_utils.h new file mode 100644 index 0000000..f29638d --- /dev/null +++ b/src/zmqsrc/include/zmq_utils.h @@ -0,0 +1,48 @@ +/* + Copyright (c) 2007-2016 Contributors as noted in the AUTHORS file + + This file is part of libzmq, the ZeroMQ core engine in C++. + + libzmq is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License (LGPL) as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + As a special exception, the Contributors give you permission to link + this library with independent modules to produce an executable, + regardless of the license terms of these independent modules, and to + copy and distribute the resulting executable under terms of your choice, + provided that you also meet, for each linked independent module, the + terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. + If you modify this library, you must extend this exception to your + version of the library. + + libzmq is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + +/* This file is deprecated, and all its functionality provided by zmq.h */ +/* Note that -Wpedantic compilation requires GCC to avoid using its custom + extensions such as #warning, hence the trick below. Also, pragmas for + warnings or other messages are not standard, not portable, and not all + compilers even have an equivalent concept. + So in the worst case, this include file is treated as silently empty. */ + +#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) || defined(_MSC_VER) +#if defined(__GNUC__) || defined(__GNUG__) +#pragma GCC diagnostic push +#pragma GCC diagnostic warning "-Wcpp" +#pragma GCC diagnostic ignored "-Werror" +#pragma GCC diagnostic ignored "-Wall" +#endif +#pragma message("Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.") +#if defined(__GNUC__) || defined(__GNUG__) +#pragma GCC diagnostic pop +#endif +#endif From 8589c852794f39801802fdc7b5ce157421aebde8 Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 19:16:44 -0500 Subject: [PATCH 06/13] get_conf_zmq --- ChangeLog | 6 +++++- R/get_conf_zmq.r | 22 ++++++++++++++++++---- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3fd8d5d..6aa5c0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ +2018-01-06: Ver 0.3-1 + * Fix uses of osx external static library. + * Fix get.zmq.conf(). + 2018-01-03: Ver 0.3-0 - * Remove "zmq_utils.h" because #pragma diagnostics is not needed at all. + * Disable "zmq_utils.h" because #pragma diagnostics is not needed at all. 2017-12-30: Ver 0.3-0 * Fix windows conf spacing problems. diff --git a/R/get_conf_zmq.r b/R/get_conf_zmq.r index 3e899ad..93ccf53 100644 --- a/R/get_conf_zmq.r +++ b/R/get_conf_zmq.r @@ -54,6 +54,11 @@ get.zmq.ldflags <- function(arch = '', package = "pbdZMQ"){ system.file(file.name, package = package)) ret <- scan(file.path, what = character(), sep = "\n", quiet = TRUE) + ### Check if system zmq is used. + arg <- "SYSTEM_ZMQ_LIBDIR" + id <- grep(paste("^", arg, " = ", sep = ""), ret) + sys.zmq.ld <- gsub(paste("^", arg, " = (.*)", sep = ""), "\\1", ret[id[1]]) + ### Check if external zmq is used. arg <- "EXTERNAL_ZMQ_LDFLAGS" id <- grep(paste("^", arg, " = ", sep = ""), ret) @@ -65,7 +70,7 @@ get.zmq.ldflags <- function(arch = '', package = "pbdZMQ"){ en.int.zmq <- gsub(paste("^", arg, " = (.*)", sep = ""), "\\1", ret[id[1]]) ### Check which zmq should be used. - if(ext.zmq.ld == "" || en.int.zmq == "yes"){ + if((sys.zmq.ld == "" && ext.zmq.ld == "") || en.int.zmq == "yes"){ file.name <- paste("./libs", arch, "/", sep = "") dir.path <- tools::file_path_as_absolute( system.file(file.name, package = package)) @@ -78,7 +83,9 @@ get.zmq.ldflags <- function(arch = '', package = "pbdZMQ"){ zmq.ldflags <- paste("-L", dir.path, " -lzmq", sep = "") } } else{ - zmq.ldflags <- ext.zmq.ld + arg <- "ZMQ_LDFLAGS" + id <- grep(paste("^", arg, " = ", sep = ""), ret) + zmq.ldflags <- gsub(paste("^", arg, " = (.*)", sep = ""), "\\1", ret[id[1]]) } } @@ -105,6 +112,11 @@ get.zmq.cppflags <- function(arch = '', package = "pbdZMQ"){ system.file(file.name, package = package)) ret <- scan(file.path, what = character(), sep = "\n", quiet = TRUE) + ### Check if system zmq is used. + arg <- "SYSTEM_ZMQ_INCLUDEDIR" + id <- grep(paste("^", arg, " = ", sep = ""), ret) + sys.zmq.inc <- gsub(paste("^", arg, " = (.*)", sep = ""), "\\1", ret[id[1]]) + ### Check if external zmq is used. arg <- "EXTERNAL_ZMQ_INCLUDE" id <- grep(paste("^", arg, " = ", sep = ""), ret) @@ -116,13 +128,15 @@ get.zmq.cppflags <- function(arch = '', package = "pbdZMQ"){ en.int.zmq <- gsub(paste("^", arg, " = (.*)", sep = ""), "\\1", ret[id[1]]) ### Check which zmq should be used. - if(ext.zmq.inc == "" || en.int.zmq == "yes"){ + if((sys.zmq.inc == "" && ext.zmq.inc == "") || en.int.zmq == "yes"){ file.name <- paste("./zmq", arch, "/include/", sep = "") dir.path <- tools::file_path_as_absolute( system.file(file.name, package = package)) zmq.cppflags <- paste("-I", dir.path, sep = "") } else{ - zmq.cppflags <- ext.zmq.inc + arg <- "ZMQ_INCLUDE" + id <- grep(paste("^", arg, " = ", sep = ""), ret) + zmq.cppflags <- gsub(paste("^", arg, " = (.*)", sep = ""), "\\1", ret[id[1]]) } } From c5563ad6a149237cc183b0549c552477d8135c5d Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 20:59:15 -0500 Subject: [PATCH 07/13] static travis --- .travis.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 791acc2..5fa293a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,16 +6,15 @@ language: c -### For Linux -# os: -# - linux -### Use external static library -# before_install: -# - sudo apt-get install -qq libzmq3-dev +branches: + only: + - master + - osx_static ### For osx os: - osx + ### Use external static library before_install: - git clone git://github.com/zeromq/libzmq.git @@ -23,7 +22,6 @@ before_install: - chmod 755 make_libzmq_osx.sh - ./make_libzmq_osx.sh - install: - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh - chmod 755 ./travis-tool.sh From ea8778daaef928d2f45b2642604b937f5d98f06f Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 21:01:32 -0500 Subject: [PATCH 08/13] shared travis --- .travis.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 791acc2..611c123 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,11 @@ language: c +branches: + only: + - master + - osx_static + ### For Linux # os: # - linux @@ -18,10 +23,10 @@ os: - osx ### Use external static library before_install: - - git clone git://github.com/zeromq/libzmq.git - - curl -OL http://raw.github.com/snoweye/libzmq_osx/master/make_libzmq_osx.sh - - chmod 755 make_libzmq_osx.sh - - ./make_libzmq_osx.sh + # - git clone git://github.com/zeromq/libzmq.git + # - curl -OL http://raw.github.com/snoweye/libzmq_osx/master/make_libzmq_osx.sh + # - chmod 755 make_libzmq_osx.sh + # - ./make_libzmq_osx.sh install: @@ -39,7 +44,7 @@ script: - Rscript -e "pbdZMQ::get.pbdZMQ.ldflags()" - Rscript -e "pbdZMQ::test.load.zmq()" - otool -L /Library/Frameworks/R.framework/Versions/3.4/Resources/library/pbdZMQ/libs/pbdZMQ.so - # - otool -L /Library/Frameworks/R.framework/Versions/3.4/Resources/library/pbdZMQ/libs/libzmq.5.dylib + - otool -L /Library/Frameworks/R.framework/Versions/3.4/Resources/library/pbdZMQ/libs/libzmq.5.dylib after_failure: # - ./travis-tool.sh dump_logs From 91c3199eb81e42e1c8742f607b467b1ce8538961 Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 21:22:00 -0500 Subject: [PATCH 09/13] add quote --- R/get_conf_zmq.r | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/get_conf_zmq.r b/R/get_conf_zmq.r index 93ccf53..60f853c 100644 --- a/R/get_conf_zmq.r +++ b/R/get_conf_zmq.r @@ -78,9 +78,9 @@ get.zmq.ldflags <- function(arch = '', package = "pbdZMQ"){ lib.osx <- list.files(dir.path, pattern = "libzmq\\.(.*)\\.dylib") i.ver <- gsub("libzmq\\.(.*)\\.dylib", "\\1", lib.osx) i.ver <- max(as.integer(i.ver)) - zmq.ldflags <- paste("-L", dir.path, " -lzmq.", i.ver, sep = "") + zmq.ldflags <- paste("-L\"", dir.path, "\" -lzmq.", i.ver, sep = "") } else{ - zmq.ldflags <- paste("-L", dir.path, " -lzmq", sep = "") + zmq.ldflags <- paste("-L\"", dir.path, "\" -lzmq", sep = "") } } else{ arg <- "ZMQ_LDFLAGS" @@ -132,7 +132,7 @@ get.zmq.cppflags <- function(arch = '', package = "pbdZMQ"){ file.name <- paste("./zmq", arch, "/include/", sep = "") dir.path <- tools::file_path_as_absolute( system.file(file.name, package = package)) - zmq.cppflags <- paste("-I", dir.path, sep = "") + zmq.cppflags <- paste("-I\"", dir.path, "\"", sep = "") } else{ arg <- "ZMQ_INCLUDE" id <- grep(paste("^", arg, " = ", sep = ""), ret) From b91afaa8b859e1f20d24d1d97b50a6d34af62b0c Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sat, 6 Jan 2018 21:23:30 -0500 Subject: [PATCH 10/13] quote --- R/get_conf_zmq.r | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/get_conf_zmq.r b/R/get_conf_zmq.r index 93ccf53..60f853c 100644 --- a/R/get_conf_zmq.r +++ b/R/get_conf_zmq.r @@ -78,9 +78,9 @@ get.zmq.ldflags <- function(arch = '', package = "pbdZMQ"){ lib.osx <- list.files(dir.path, pattern = "libzmq\\.(.*)\\.dylib") i.ver <- gsub("libzmq\\.(.*)\\.dylib", "\\1", lib.osx) i.ver <- max(as.integer(i.ver)) - zmq.ldflags <- paste("-L", dir.path, " -lzmq.", i.ver, sep = "") + zmq.ldflags <- paste("-L\"", dir.path, "\" -lzmq.", i.ver, sep = "") } else{ - zmq.ldflags <- paste("-L", dir.path, " -lzmq", sep = "") + zmq.ldflags <- paste("-L\"", dir.path, "\" -lzmq", sep = "") } } else{ arg <- "ZMQ_LDFLAGS" @@ -132,7 +132,7 @@ get.zmq.cppflags <- function(arch = '', package = "pbdZMQ"){ file.name <- paste("./zmq", arch, "/include/", sep = "") dir.path <- tools::file_path_as_absolute( system.file(file.name, package = package)) - zmq.cppflags <- paste("-I", dir.path, sep = "") + zmq.cppflags <- paste("-I\"", dir.path, "\"", sep = "") } else{ arg <- "ZMQ_INCLUDE" id <- grep(paste("^", arg, " = ", sep = ""), ret) From 242f1926586bf9cc2253dee3d79dc913430c8aee Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sun, 7 Jan 2018 14:52:12 -0500 Subject: [PATCH 11/13] 0.3-1 CMD check --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6aa5c0f..ddb19f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-01-07: Ver 0.3-1 + * Test with JuniperKernel. + * Test on r-hub. + 2018-01-06: Ver 0.3-1 * Fix uses of osx external static library. * Fix get.zmq.conf(). From 67a9877fe21f34ed82641ed6e767635fa627c939 Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sun, 7 Jan 2018 14:59:51 -0500 Subject: [PATCH 12/13] r-hub did not run --- ChangeLog | 1 - 1 file changed, 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ddb19f8..06bbae9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,5 @@ 2018-01-07: Ver 0.3-1 * Test with JuniperKernel. - * Test on r-hub. 2018-01-06: Ver 0.3-1 * Fix uses of osx external static library. From 44ff2f4af08fe8e977913be52c14a94870b6ed6a Mon Sep 17 00:00:00 2001 From: wccsnow Date: Sun, 7 Jan 2018 15:15:33 -0500 Subject: [PATCH 13/13] Disable pragma ... gagin --- src/zmqsrc/include/zmq_utils.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/zmqsrc/include/zmq_utils.h b/src/zmqsrc/include/zmq_utils.h index f29638d..2cf7286 100644 --- a/src/zmqsrc/include/zmq_utils.h +++ b/src/zmqsrc/include/zmq_utils.h @@ -36,13 +36,13 @@ #if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) || defined(_MSC_VER) #if defined(__GNUC__) || defined(__GNUG__) -#pragma GCC diagnostic push -#pragma GCC diagnostic warning "-Wcpp" -#pragma GCC diagnostic ignored "-Werror" -#pragma GCC diagnostic ignored "-Wall" +//WCC #pragma GCC diagnostic push +//WCC #pragma GCC diagnostic warning "-Wcpp" +//WCC #pragma GCC diagnostic ignored "-Werror" +//WCC #pragma GCC diagnostic ignored "-Wall" #endif -#pragma message("Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.") +//WCC #pragma message("Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.") #if defined(__GNUC__) || defined(__GNUG__) -#pragma GCC diagnostic pop +//WCC #pragma GCC diagnostic pop #endif #endif