From 40c50fcfde4c51591584ad3ae5e8f70f1887ed8d Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Sat, 1 Nov 2014 13:57:59 +0100
Subject: [PATCH] silence some compilation warnings

---
 modules/mol/mm/src/gromacs_block_modifiers.cc | 38 -------------------
 modules/mol/mm/src/mm_interaction.hh          |  6 +--
 2 files changed, 3 insertions(+), 41 deletions(-)

diff --git a/modules/mol/mm/src/gromacs_block_modifiers.cc b/modules/mol/mm/src/gromacs_block_modifiers.cc
index 0a8f74c96..55ce401c4 100644
--- a/modules/mol/mm/src/gromacs_block_modifiers.cc
+++ b/modules/mol/mm/src/gromacs_block_modifiers.cc
@@ -194,24 +194,10 @@ void GromacsHydrogenConstructor::ApplyOnResidue(ost::mol::ResidueHandle& res, os
   std::vector<geom::Vec3> hydrogen_positions;
   std::vector<geom::Vec3> anchor_positions;
 
-  bool hydrogens_present;
-
   for(uint a=0;a<add_number_.size();++a){
 
     hydrogen_names = hydrogen_names_[a];
 
-   /*
-    bool hydrogens_present = true;
-    for(std::vector<String>::iterator i = hydrogen_names.begin();
-        i != hydrogen_names.end(); ++i){
-      if(!res.FindAtom(*i).IsValid()){
-        hydrogens_present = false;
-        break;
-      }
-    }
-
-    if(hydrogens_present) continue;
-    */
     number = add_number_[a];
     method = methods_[a];
     anchor_names = anchor_atom_names_[a];
@@ -220,8 +206,6 @@ void GromacsHydrogenConstructor::ApplyOnResidue(ost::mol::ResidueHandle& res, os
     anchor_positions.clear();
     anchor_atoms.clear();
 
-    
-
     String atom_name;
     ost::mol::ResidueHandle temp_res;
     ost::mol::AtomHandle atom;
@@ -279,7 +263,6 @@ void GromacsHydrogenConstructor::ApplyOnResidue(ost::mol::ResidueHandle& res, os
       if(!atom.IsValid()){
         atom = ed.InsertAtom(res,hydrogen_names[b],hydrogen_positions[b],"H");
       }
-      //ed.Connect(atom, anchor_atoms[0]);
     }
   }
 }
@@ -482,25 +465,4 @@ void GromacsBlockModifier::CheckInteractionToAdd(MMInteractionPtr p, const Strin
 
 }
 
-
-
-
 }}}//ns
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/mol/mm/src/mm_interaction.hh b/modules/mol/mm/src/mm_interaction.hh
index edc8afc21..ca69e78b1 100644
--- a/modules/mol/mm/src/mm_interaction.hh
+++ b/modules/mol/mm/src/mm_interaction.hh
@@ -82,9 +82,9 @@ public:
     ds & has_name_wildcard_;
 
     if(ds.IsSource()){
-      int num_types;
-      int num_names;
-      int num_param;
+      int num_types = 0;
+      int num_names = 0;
+      int num_param = 0;
       ds & num_types;
       ds & num_names;
       ds & num_param;
-- 
GitLab