Commit eb850c53 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

silence compiler warning about unused static function in shared include file

parent a2ec8d3f
...@@ -27,6 +27,7 @@ namespace LJSDKParms { ...@@ -27,6 +27,7 @@ namespace LJSDKParms {
// LJ type flags. list of supported LJ exponent combinations // LJ type flags. list of supported LJ exponent combinations
enum {LJ_NOT_SET=0, LJ9_6, LJ12_4, LJ12_6, NUM_LJ_TYPES}; enum {LJ_NOT_SET=0, LJ9_6, LJ12_4, LJ12_6, NUM_LJ_TYPES};
#if defined(LMP_NEED_FIND_SDK_LJ_TYPE)
static int find_lj_type(const char *label, static int find_lj_type(const char *label,
const char * const * const list) { const char * const * const list) {
for (int i=0; i < NUM_LJ_TYPES; ++i) for (int i=0; i < NUM_LJ_TYPES; ++i)
...@@ -34,6 +35,7 @@ namespace LJSDKParms { ...@@ -34,6 +35,7 @@ namespace LJSDKParms {
return LJ_NOT_SET; return LJ_NOT_SET;
} }
#endif
static const char * const lj_type_list[] = {"none", "lj9_6", "lj12_4", "lj12_6"}; static const char * const lj_type_list[] = {"none", "lj9_6", "lj12_4", "lj12_6"};
static const double lj_prefact[] = {0.0, 6.75, 2.59807621135332, 4.0}; static const double lj_prefact[] = {0.0, 6.75, 2.59807621135332, 4.0};
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "memory.h" #include "memory.h"
#include "error.h" #include "error.h"
#define LMP_NEED_FIND_SDK_LJ_TYPE 1
#include "lj_sdk_common.h" #include "lj_sdk_common.h"
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "memory.h" #include "memory.h"
#include "error.h" #include "error.h"
#define LMP_NEED_FIND_SDK_LJ_TYPE 1
#include "lj_sdk_common.h" #include "lj_sdk_common.h"
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment