diff --git a/src/USER-REAXC/reaxc_allocate.cpp b/src/USER-REAXC/reaxc_allocate.cpp
index 14906a2a9c5d437eae686ab046fd3f8f2efdc2de..c6c103b6f4a989c3a55638699e0fbc5ad6e1c458 100644
--- a/src/USER-REAXC/reaxc_allocate.cpp
+++ b/src/USER-REAXC/reaxc_allocate.cpp
@@ -39,8 +39,8 @@
    important: we cannot know the exact number of atoms that will fall into a
    process's box throughout the whole simulation. therefore
    we need to make upper bound estimates for various data structures */
-int PreAllocate_Space( reax_system *system, control_params */*control*/,
-                       storage */*workspace*/, MPI_Comm comm )
+int PreAllocate_Space( reax_system *system, control_params * /*control*/,
+                       storage * workspace, MPI_Comm comm )
 {
   int mincap = system->mincap;
   double safezone = system->safezone;
@@ -60,6 +60,8 @@ int PreAllocate_Space( reax_system *system, control_params */*control*/,
   workspace->forceReduction = NULL;
   workspace->valence_angle_atom_myoffset = NULL;
   workspace->my_ext_pressReduction = NULL;
+#else
+  LMP_UNUSED_PARAM(workspace);
 #endif
 
   return SUCCESS;
@@ -69,7 +71,7 @@ int PreAllocate_Space( reax_system *system, control_params */*control*/,
 /*************       system        *************/
 
 int Allocate_System( reax_system *system, int /*local_cap*/, int total_cap,
-                     char */*msg*/ )
+                     char * /*msg*/ )
 {
   system->my_atoms = (reax_atom*)
     realloc( system->my_atoms, total_cap*sizeof(reax_atom) );
@@ -116,7 +118,7 @@ void DeAllocate_System( reax_system *system )
 
 
 /*************       workspace        *************/
-void DeAllocate_Workspace( control_params */*control*/, storage *workspace )
+void DeAllocate_Workspace( control_params * /*control*/, storage *workspace )
 {
   int i;
 
@@ -204,9 +206,9 @@ void DeAllocate_Workspace( control_params */*control*/, storage *workspace )
 }
 
 
-int Allocate_Workspace( reax_system */*system*/, control_params */*control*/,
+int Allocate_Workspace( reax_system * /*system*/, control_params * control,
                         storage *workspace, int local_cap, int total_cap,
-                        MPI_Comm comm, char */*msg*/ )
+                        MPI_Comm comm, char * /*msg*/ )
 {
   int i, total_real, total_rvec, local_rvec;
 
@@ -307,6 +309,8 @@ int Allocate_Workspace( reax_system */*system*/, control_params */*control*/,
 
   workspace->valence_angle_atom_myoffset = (int *) scalloc(sizeof(int), total_cap, "valence_angle_atom_myoffset", comm);
   workspace->my_ext_pressReduction = (rvec *) calloc(sizeof(rvec), control->nthreads);
+#else
+  LMP_UNUSED_PARAM(control);
 #endif
 
   return SUCCESS;
diff --git a/src/lmptype.h b/src/lmptype.h
index 7e359d2abeda05c1b0ec992cb7b113b9be7e67ab..e5c202aa876eab5e3a192cda26c426e2c44fe846 100644
--- a/src/lmptype.h
+++ b/src/lmptype.h
@@ -213,4 +213,6 @@ typedef int bigint;
 #include "lmpwindows.h"
 #endif
 
+#define LMP_UNUSED_PARAM(x) (void)x
+
 #endif