Skip to content

Commit

Permalink
Merge pull request #45 from lanl/jmm/fix-warnings
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
Yurlungur authored Jul 20, 2023
2 parents ed44803 + 5185525 commit 3c6c72a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion singularity-opac/base/opac_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ namespace singularity {
printf("%s", x); \
std::exit(1)
#endif
#define UNDEFINED_ERROR OPAC_ERROR("DEFINE ME\n")

} // namespace singularity

Expand Down
11 changes: 0 additions & 11 deletions singularity-opac/constants/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@

#include <ports-of-call/portability.hpp>

#ifdef SINGULARITY_ENABLE_EXCEPTIONS
#include <stdexcept>
#define CONSTANTS_ERROR(x) (throw std::runtime_error(x))
#else
#define CONSTANTS_ERROR(x) printf("%s", x)
#endif
#define UNDEFINED_ERROR CONSTANTS_ERROR("DEFINE ME\n")

namespace singularity {

struct BaseUnity {
Expand Down Expand Up @@ -211,7 +203,4 @@ using PhysicalConstantsCGS =

} // namespace singularity

#undef CONSTANTS_ERROR
#undef UNDEFINED_ERROR

#endif // SINGULARITY_OPAC_CONSTANTS_CONSTANTS_
2 changes: 1 addition & 1 deletion singularity-opac/neutrinos/non_cgs_neutrinos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class NonCGSUnits {
}

template <typename FrequencyIndexer, typename DataIndexer>
PORTABLE_INLINE_FUNCTION Real AbsorptionCoefficient(
PORTABLE_INLINE_FUNCTION void AbsorptionCoefficient(
const Real rho, const Real temp, const Real Ye, RadiationType type,
FrequencyIndexer &nu_bins, DataIndexer &coeffs, const int nbins,
Real *lambda = nullptr) const {
Expand Down

0 comments on commit 3c6c72a

Please sign in to comment.