[Pkg-electronics-commits] [gnucap] 25/43: fix warning (-Wunused-variable)

felix salfelder felix-guest at moszumanska.debian.org
Wed Oct 4 03:21:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository gnucap.

commit 646d2fc5ca0c91ca2dd6605137395eb19bb302ad
Author: Felix Salfelder <felix at salfelder.org>
Date:   Mon Sep 14 16:13:23 2015 +0200

    fix warning (-Wunused-variable)
---
 include/e_compon.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/e_compon.h b/include/e_compon.h
index 4861ded..a6bec18 100644
--- a/include/e_compon.h
+++ b/include/e_compon.h
@@ -191,11 +191,13 @@ public:	// state, aux data
 
   double mfactor()const {
     assert(_mfactor_fixed != NOT_VALID);
+#ifndef NDEBUG
     if (const COMPONENT* o = prechecked_cast<const COMPONENT*>(owner())) {
       assert(_mfactor_fixed == o->mfactor() * _mfactor);
     }else{
       assert(_mfactor_fixed == _mfactor);
     }
+#endif
     return _mfactor_fixed;
   }
   //--------------------------------------------------------------------

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/gnucap.git



More information about the Pkg-electronics-commits mailing list