diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-08-12 15:59:15 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-08-13 23:28:06 +0200 |
commit | 8afe9200c45110eb2166e09bdce739fa170c08cb (patch) | |
tree | abf4a363504f9c5fbee8f2af9ad9cd70333f7f6e /meta-networking/recipes-support/curlpp/curlpp/example21.cpp-remove-deprecated-code.patch | |
parent | 4d7e174324d61c8da79152b67c4e8a434bd2d078 (diff) | |
download | meta-openembedded-contrib-8afe9200c45110eb2166e09bdce739fa170c08cb.tar.gz |
curlpp: fix do_compile failed since gcc upgrade to 4.9
The deprecated test code was no longer used, so remove it
to avoid compiling failure with -Werror=unused-function
...
| example21.cpp:51:8: error: 'size_t {anonymous}::readData(char*,
size_t, size_t)' defined but not used [-Werror=unused-function]
| size_t readData(char *buffer, size_t size, size_t nitems)
...
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/curlpp/curlpp/example21.cpp-remove-deprecated-code.patch')
-rw-r--r-- | meta-networking/recipes-support/curlpp/curlpp/example21.cpp-remove-deprecated-code.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/curlpp/curlpp/example21.cpp-remove-deprecated-code.patch b/meta-networking/recipes-support/curlpp/curlpp/example21.cpp-remove-deprecated-code.patch new file mode 100644 index 0000000000..dae583d854 --- /dev/null +++ b/meta-networking/recipes-support/curlpp/curlpp/example21.cpp-remove-deprecated-code.patch @@ -0,0 +1,47 @@ +example21.cpp: remove deprecated code + +The deprecated code was no longer used, so remove it to avoid +compiling failure with -Werror=unused-function +... +| example21.cpp:51:8: error: 'size_t {anonymous}::readData(char*, +size_t, size_t)' defined but not used [-Werror=unused-function] +| size_t readData(char *buffer, size_t size, size_t nitems) +... + +Upstream-Status: Pending + +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> +--- + examples/example21.cpp | 17 ----------------- + 1 file changed, 17 deletions(-) + +diff --git a/examples/example21.cpp b/examples/example21.cpp +--- a/examples/example21.cpp ++++ b/examples/example21.cpp +@@ -39,23 +39,6 @@ + #include <curlpp/Options.hpp> + #include <curlpp/Exception.hpp> + +-/* +- anonymous namespace to prevent name clash in case other examples using the same global entities +- would be compiled in the same project +-*/ +-namespace +-{ +- +-char *data = NULL; +- +-size_t readData(char *buffer, size_t size, size_t nitems) +-{ +- strncpy(buffer, data, size * nitems); +- return size * nitems; +-} +- +-} // namespace +- + int main(int argc, char *argv[]) + { + if(argc != 3) { +-- +1.9.1 + |