From 20d2923bf34e88f28bf882017d525689a9f3bda0 Mon Sep 17 00:00:00 2001 From: rhaas Date: Wed, 6 Apr 2011 16:28:06 +0000 Subject: TOVSolver: add static keyword to inline function to work around issues with gcc (before version 4.3) differing from C99 as well as completely ignoring the inline hint when -O0 is specified. (This time with content). refs: http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Inline.html http://gcc.gnu.org/gcc-4.2/changes.html git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/TOVSolver/trunk@126 1bdb13ef-5d69-4035-bb54-08abeb3aa7f1 --- src/external.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external.inc b/src/external.inc index e1adfbd..6788f1a 100644 --- a/src/external.inc +++ b/src/external.inc @@ -13,7 +13,7 @@ void TOV_debug_input_points(CCTK_INT size, fclose(f); } -inline int get_nearest_star(const CCTK_REAL *x, const CCTK_REAL *y, +static inline int get_nearest_star(const CCTK_REAL *x, const CCTK_REAL *y, const CCTK_REAL *z, const int i) { DECLARE_CCTK_PARAMETERS -- cgit v1.2.3