Comment 13 for bug 1905159

Revision history for this message
Gabriel Fedel (fedel) wrote :

Thank you Andrew for the explanations.

I've tried to solve the gdd warnings, but I haven't found a solution yet.
My first try was to use the copy method:

--- a/src/ca/legacy/gdd/gddI.h
+++ b/src/ca/legacy/gdd/gddI.h
@@ -114,7 +114,7 @@ inline void gdd::setStatSevr(aitInt16 stat, aitInt16 sevr)
         { status.s.aitStat = stat; status.s.aitSevr = sevr; }

 inline gdd& gdd::operator=(const gdd& v)
- { memcpy(this,&v,sizeof(gdd)); return *this; }
+ { this->copy(&v); return *this; }

 inline int gdd::isScalar(void) const { return dimension()==0?1:0; }
 inline int gdd::isContainer(void) const

But with this change the code doesn't compile, and I don't know why. I got this:

make[3]: *** No rule to make target '../O.Common/gddApps.h', needed by '../../../../../include/gddApps.h'. Stop.
make[2]: *** [../../../../configure/RULES_ARCHS:58: install.linux-x86_64] Error 2
make[1]: *** [../configure/RULES_DIRS:85: ca/legacy/gdd.install] Error 2
make: *** [configure/RULES_DIRS:85: src.install] Error 2