Skip to content

Commit e48378e

Browse files
committed
[Geom] Fix compiler warnings in TGDMLWrite
This follows up on 74e607e, which introduced some compiler warnings that cause the Debian CI to fail.
1 parent 1048939 commit e48378e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

geom/gdml/src/TGDMLWrite.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,13 +765,12 @@ void TGDMLWrite::ExtractVolumes(TGeoNode *node)
765765
{
766766
TGeoRCExtension *rcext = (TGeoRCExtension *)volume->GetUserExtension();
767767
if (rcext) {
768-
TMap *auxmap = nullptr;
769768
TObject *userObj = rcext->GetUserObject();
770769
if (userObj && userObj->InheritsFrom("TMap")) {
771770
TMap *auxmap = (TMap *)userObj;
772771
TIterator *it = auxmap->MakeIterator();
773772
TObject *k = nullptr;
774-
while (k = it->Next()) {
773+
while ((k = it->Next())) {
775774
TObject *valobj = auxmap->GetValue(k);
776775
if (!valobj || !k->InheritsFrom("TObjString") || !valobj->InheritsFrom("TObjString"))
777776
continue;

0 commit comments

Comments
 (0)