From 600a22e5b049be6d1507a0e3ba361457b0fb9a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Thu, 8 Dec 2011 16:25:00 +0100 Subject: [PATCH] Staticise internal function to avoid warnings about missing prior prototype. --- opmcore/pressure/msmfem/coarse_sys.c | 2 +- opmcore/utility/cpgpreprocess/preprocess.c | 8 ++++---- tests/test_cfs_tpfa.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/opmcore/pressure/msmfem/coarse_sys.c b/opmcore/pressure/msmfem/coarse_sys.c index 1cfc3a59..00dbf9d1 100644 --- a/opmcore/pressure/msmfem/coarse_sys.c +++ b/opmcore/pressure/msmfem/coarse_sys.c @@ -128,7 +128,7 @@ coarse_sys_meta_destroy(struct coarse_sys_meta *m) /* ---------------------------------------------------------------------- */ -struct coarse_sys_meta * +static struct coarse_sys_meta * coarse_sys_meta_allocate(size_t nblocks, size_t nfaces_c, size_t nc , size_t nfaces_f) /* ---------------------------------------------------------------------- */ diff --git a/opmcore/utility/cpgpreprocess/preprocess.c b/opmcore/utility/cpgpreprocess/preprocess.c index dbbddd65..8b9747a5 100644 --- a/opmcore/utility/cpgpreprocess/preprocess.c +++ b/opmcore/utility/cpgpreprocess/preprocess.c @@ -80,7 +80,7 @@ static void igetvectors(int dims[3], int i, int j, int *field, int *v[]) element in neighbors. */ -void compute_cell_index(const int dims[3], int i, int j, int *neighbors, int len) +static void compute_cell_index(const int dims[3], int i, int j, int *neighbors, int len) { int k; @@ -102,7 +102,7 @@ void compute_cell_index(const int dims[3], int i, int j, int *neighbors, int len /*----------------------------------------------------------------- Ensure there's sufficient memory */ -int checkmemeory(int nz, struct processed_grid *out, int **intersections) +static int checkmemeory(int nz, struct processed_grid *out, int **intersections) { /* Ensure there is enough space */ @@ -157,7 +157,7 @@ int checkmemeory(int nz, struct processed_grid *out, int **intersections) direction == 0 : constant-i faces. direction == 1 : constant-j faces. */ -void process_vertical_faces(int direction, +static void process_vertical_faces(int direction, int **intersections, int *plist, int *work, struct processed_grid *out) @@ -237,7 +237,7 @@ static int linearindex(const int dims[3], int i, int j, int k) ACTNUM==0) */ -void process_horizontal_faces(int **intersections, +static void process_horizontal_faces(int **intersections, int *plist, struct processed_grid *out) { diff --git a/tests/test_cfs_tpfa.c b/tests/test_cfs_tpfa.c index 31a2703c..4b8e0563 100644 --- a/tests/test_cfs_tpfa.c +++ b/tests/test_cfs_tpfa.c @@ -137,7 +137,7 @@ solve_umfpack(struct CSCMatrix *csc, const double *b, double *x) /*---------------------------------------------------------------------------*/ -void +static void call_UMFPACK(struct CSRMatrix *A, double *b, double *x) /*---------------------------------------------------------------------------*/ { @@ -176,7 +176,7 @@ deallocate_cart_grid(grid_t *G) free(G); } -grid_t * +static grid_t * cart_grid(int nx, int ny, int nz) { /* The following applies to any grid derived from base_grid_t. */