User: rhaas Date: 2011/04/06 11:28 AM
Modified: /trunk/src/ external.inc
Log: 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
File Changes:
Directory: /trunk/src/ ======================
File [modified]: external.inc Delta lines: +1 -1 =================================================================== --- trunk/src/external.inc 2011-04-06 16:23:19 UTC (rev 125) +++ trunk/src/external.inc 2011-04-06 16:28:06 UTC (rev 126) @@ -13,7 +13,7 @@ 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
commits@lists.einsteintoolkit.org