Skip to content

goals model unused variable compiler warnings #346

Description

@jeffeaton

These are not an issue but just a bit of tidying thing. I am getting compiler warnings for unused variables from the Goals implementation:

Not essential, but nice to clean to keep the compiler messages tidy to be able to quickly spot new issues.

   /Users/jee182/Downloads/leapfrog-sandbox/leapfrog-10to14/leapfrog-core/include/models/goals_simulation.hpp:2172:12: warning: variable 'temp1' set but not used [-Wunused-but-set-variable]
    2172 |     double temp1=0.0;
         |            ^
   /Users/jee182/Downloads/leapfrog-sandbox/leapfrog-10to14/leapfrog-core/include/models/goals_simulation.hpp:2173:12: warning: variable 'temp2' set but not used [-Wunused-but-set-variable]
    2173 |     double temp2=0.0;
         |            ^
   /Users/jee182/Downloads/leapfrog-sandbox/leapfrog-10to14/leapfrog-core/include/models/goals_simulation.hpp:2540:8: warning: unused variable 'totalSexActs' [-Wunused-variable]
    2540 | double totalSexActs  = 0.0;
         |        ^~~~~~~~~~~~
   /Users/jee182/Downloads/leapfrog-sandbox/leapfrog-10to14/leapfrog-core/include/models/goals_simulation.hpp:2563:8: warning: variable 'rMultM_IDU' set but not used [-Wunused-but-set-variable]
    2563 | double rMultM_IDU =1.0;
         |        ^
   /Users/jee182/Downloads/leapfrog-sandbox/leapfrog-10to14/leapfrog-core/include/models/goals_simulation.hpp:2564:8: warning: variable 'rMultF_IDU' set but not used [-Wunused-but-set-variable]
    2564 | double rMultF_IDU =1.0;
         |        ^
   /Users/jee182/Downloads/leapfrog-sandbox/leapfrog-10to14/leapfrog-core/include/models/goals_simulation.hpp:2569:8: warning: variable 'total_inf_m' set but not used [-Wunused-but-set-variable]
    2569 | double total_inf_m=0.0;
         |        ^
   /Users/jee182/Downloads/leapfrog-sandbox/leapfrog-10to14/leapfrog-core/include/models/goals_simulation.hpp:2570:8: warning: variable 'total_inf_f' set but not used [-Wunused-but-set-variable]
    2570 | double total_inf_f=0.0;
         |        ^
   /Users/jee182/Downloads/leapfrog-sandbox/leapfrog-10to14/leapfrog-core/include/models/goals_simulation.hpp:4127:11: warning: unused variable 'value' [-Wunused-variable]
    4127 |    double value=0.0;
         |           ^~~~~
   8 warnings generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions