Skip to content

Commit

Permalink
Avoid Werror for an uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed May 22, 2024
1 parent c5411e0 commit 4e8a921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torch_api.F
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ END FUNCTION torch_c_cuda_is_available
res = torch_c_cuda_is_available()
#else
CPABORT("CP2K was compiled without Torch library.")
MARK_USED(res)
res = .FALSE.
#endif
END FUNCTION torch_cuda_is_available

Expand Down

0 comments on commit 4e8a921

Please sign in to comment.