[Bug 982942] improve quality of yast C++ code by fixing warnings given by Clang