summaryrefslogtreecommitdiff
path: root/src/include/CommOverloadables.h
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-09 22:04:13 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-09 22:04:13 +0000
commit4a1db9c3ea04f33adb2f0898f9eed3a1e986c473 (patch)
tree69e5fc26b7ccf7373b6612e53fb834fd64846b68 /src/include/CommOverloadables.h
parent407367bf997d32ac42ef8529429606da9ef183f7 (diff)
Define USE_ARGUMENTS macro which expands to something which use the arguments
of overloaded functions. This gets rid of nasty compiler warnings about unused function arguments for dummy overloadables. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2488 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/CommOverloadables.h')
-rw-r--r--src/include/CommOverloadables.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/CommOverloadables.h b/src/include/CommOverloadables.h
index 96d9741a..b59a05b7 100644
--- a/src/include/CommOverloadables.h
+++ b/src/include/CommOverloadables.h
@@ -32,12 +32,17 @@
#undef ARGUMENTS
#endif
+#ifdef USE_ARGUMENTS
+#undef USE_ARGUMENTS
+#endif
+
#ifdef RETURN_TYPE
#undef RETURN_TYPE
#endif
#define RETURN_TYPE int
#define ARGUMENTS cGH *GH, const char *group
+#define USE_ARGUMENTS GH = GH; group = group;
OVERLOADABLE(SyncGroup)
OVERLOADABLE(EnableGroupStorage)
@@ -48,16 +53,22 @@ OVERLOADABLE(DisableGroupComm)
#undef ARGUMENTS
#define ARGUMENTS const cGH *GH
+#undef USE_ARGUMENTS
+#define USE_ARGUMENTS GH = GH;
OVERLOADABLE(Barrier)
OVERLOADABLE(MyProc)
OVERLOADABLE(nProcs)
#undef ARGUMENTS
#define ARGUMENTS cGH *GH
+#undef USE_ARGUMENTS
+#define USE_ARGUMENTS GH = GH;
OVERLOADABLE(ParallelInit)
#undef ARGUMENTS
#define ARGUMENTS cGH *GH, int retval
+#undef USE_ARGUMENTS
+#define USE_ARGUMENTS GH = GH; retval = retval;
#undef RETURN_TYPE
#define RETURN_TYPE int
OVERLOADABLE(Exit)
@@ -65,29 +76,38 @@ OVERLOADABLE(Abort)
#undef ARGUMENTS
#define ARGUMENTS tFleshConfig *config, int convergence_level
+#undef USE_ARGUMENTS
+#define USE_ARGUMENTS config = config; convergence_level = convergence_level;
#undef RETURN_TYPE
#define RETURN_TYPE cGH *
OVERLOADABLE(SetupGH)
#undef ARGUMENTS
#define ARGUMENTS const cGH *GH, int dir, int group, const char *groupname
+#undef USE_ARGUMENTS
+#define USE_ARGUMENTS GH = GH; dir = dir; group = group; groupname = groupname;
#undef RETURN_TYPE
#define RETURN_TYPE const int *
OVERLOADABLE(ArrayGroupSizeB)
#undef ARGUMENTS
#define ARGUMENTS const cGH *GH, int group, const char *groupname
+#undef USE_ARGUMENTS
+#define USE_ARGUMENTS GH = GH; group = group; groupname = groupname;
#undef RETURN_TYPE
#define RETURN_TYPE int
OVERLOADABLE(QueryGroupStorageB)
#undef ARGUMENTS
#define ARGUMENTS const cGH *GH, int group, cGroupDynamicData *data
+#undef USE_ARGUMENTS
+#define USE_ARGUMENTS GH = GH; group = group; data = data;
#undef RETURN_TYPE
#define RETURN_TYPE int
OVERLOADABLE(GroupDynamicData)
#undef ARGUMENTS
+#undef USE_ARGUMENTS
#undef RETURN_TYPE
#undef OVERLOADABLE_CALL