silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2021-04-23 16:19:57 -04:00
parent f759e6ffcf
commit ef858ae70f
13 changed files with 61 additions and 63 deletions

View File

@ -12,7 +12,7 @@
------------------------------------------------------------------------- */
#include "lmppython.h"
#if LMP_PYTHON
#if defined(LMP_PYTHON)
#include "python_impl.h"
#else
#include "error.h"
@ -46,7 +46,7 @@ PythonInterface::~PythonInterface()
void Python::init()
{
#if LMP_PYTHON
#if defined(LMP_PYTHON)
if (!impl) impl = new PythonImpl(lmp);
#else
error->all(FLERR,"Python support missing! Compile with PYTHON package installed!");
@ -55,7 +55,7 @@ void Python::init()
/* ---------------------------------------------------------------------- */
bool Python::is_enabled() const {
#if LMP_PYTHON
#if defined(LMP_PYTHON)
return true;
#else
return false;