From ce343fcfad39eeaeab8016df260a5bcab141ec24 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sat, 28 Mar 2020 15:43:57 +0100 Subject: [PATCH] lib/vpsc: rename bcopy->b_copy bcopy is the name of a deprecated function. Compiling on a system system that still have the function (for example android) gives an error like: ``` [...] Making all in vpsc make[3]: Entering directory '/data/data/com.termux/files/home/projects/graphviz/build/lib/vpsc' CXX blocks.lo ../../../lib/vpsc/blocks.cpp:158:36: error: too few arguments provided to function-like macro invocation vector bcopy(begin(),end()); ^ /data/data/com.termux/files/usr/include/strings.h:61:9: note: macro 'bcopy' defined here ^ 1 error generated. ``` Not using bcopy for vector names in block.cpp fixes this. --- lib/vpsc/blocks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vpsc/blocks.cpp b/lib/vpsc/blocks.cpp index 7e25ae45c..ee88eb4ae 100644 --- a/lib/vpsc/blocks.cpp +++ b/lib/vpsc/blocks.cpp @@ -155,8 +155,8 @@ void Blocks::removeBlock(Block *doomed) { //erase(doomed); } void Blocks::cleanup() { - vector bcopy(begin(),end()); - for(vector::iterator i=bcopy.begin();i!=bcopy.end();i++) { + vector b_copy(begin(),end()); + for(vector::iterator i=b_copy.begin();i!=b_copy.end();i++) { Block *b=*i; if(b->deleted) { erase(b); -- 2.40.0