Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warnings #254

Merged
merged 2 commits into from Mar 22, 2022
Merged

Fix compiler warnings #254

merged 2 commits into from Mar 22, 2022

Conversation

TobiasDuswald
Copy link
Contributor

This PR fixes the following compiler warnings:

[493/533] Building CXX object CMakeFiles/biodynamo-unit-tests.dir/test/unit/core/agent/agent_test.cc.o
/Users/rdm/biodynamo/test/unit/core/agent/agent_test.cc:306:8: warning: unused variable 'nptr' [-Wunused-variable]
  auto nptr = neighbor->GetAgentPtr<Cell>();
       ^
/Users/rdm/biodynamo/test/unit/core/agent/agent_test.cc:350:8: warning: unused variable 'aptr1' [-Wunused-variable]
  auto aptr1 = agent1->GetAgentPtr<Cell>();
       ^
/Users/rdm/biodynamo/test/unit/core/agent/agent_test.cc:356:8: warning: unused variable 'aptr2' [-Wunused-variable]
  auto aptr2 = agent2->GetAgentPtr<Cell>();
       ^
/Users/rdm/biodynamo/test/unit/core/agent/agent_test.cc:399:8: warning: unused variable 'naptr' [-Wunused-variable]
  auto naptr = new_agent->GetAgentPtr<Cell>();
       ^
/Users/rdm/biodynamo/test/unit/core/agent/agent_test.cc:430:8: warning: unused variable 'aptr1' [-Wunused-variable]
  auto aptr1 = agent1->GetAgentPtr<Cell>();
       ^
/Users/rdm/biodynamo/test/unit/core/agent/agent_test.cc:436:8: warning: unused variable 'aptr2' [-Wunused-variable]
  auto aptr2 = agent2->GetAgentPtr<Cell>();
       ^
6 warnings generated.
[509/533] Building CXX object CMakeFiles/biodynamo-unit-tests.dir/libbiodynamo-unit-tests_dict.cc.o
In file included from /Users/rdm/biodynamo/build/libbiodynamo-unit-tests_dict.cc:49:
/Users/rdm/biodynamo/test/unit/core/resource_manager_test.h:462:21: warning: variable 'd' set but not used [-Wunused-but-set-variable]
    volatile double d = 0;
                    ^
1 warning generated.
[529/533] Building CXX object CMakeFiles/biodynamo-unit-tests.dir/test/unit/core/resource_manager_test.cc.o
In file included from /Users/rdm/biodynamo/test/unit/core/resource_manager_test.cc:16:
/Users/rdm/biodynamo/test/unit/core/resource_manager_test.h:462:21: warning: variable 'd' set but not used [-Wunused-but-set-variable]
    volatile double d = 0;
                    ^
1 warning generated.
[533/533] Linking CXX executable bin/biodynamo-unit-tests

@sonarcloud
Copy link

sonarcloud bot commented Mar 22, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@TobiasDuswald TobiasDuswald merged commit 4e1d0d9 into master Mar 22, 2022
@TobiasDuswald TobiasDuswald deleted the fix-warnings branch March 22, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant