diff options
author | Andrea Canciani <ranma42@gmail.com> | 2012-02-19 17:20:49 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2012-02-20 12:32:53 +0100 |
commit | d3b6e151a26de7cdf5b00cf3942e25185f4b6892 (patch) | |
tree | 578861a2b29fb30ff20f3ede3d58ffc5c0906135 /src/cairo-path-fixed.c | |
parent | f4908b3848aac2b66a7acafc60eeab0066bc1b1d (diff) |
path-fixed: Silence gcc warnings
_cairo_path_fixed_last_op() contains an assertion, which gcc doesn't
like to inline. Since it is a static function, which basically
accesses a value, gcc will inline it anyway when assertions are
disabled, so remove the "inline" hint to reduce gcc warning noise when
doing debug builds.
Fixes:
cairo-path-fixed.c: In function '_cairo_path_fixed_drop_line_to':
cairo-path-fixed.c:373:1: warning: inlining failed in call to
'_cairo_path_fixed_last_op.isra.5.part.6': call is unlikely and code
size would grow [-Winline]
cairo-path-fixed.c:400:1: warning: called from here [-Winline]
...
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r-- | src/cairo-path-fixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index 1e9a7594..652e6159 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -369,7 +369,7 @@ _cairo_path_fixed_destroy (cairo_path_fixed_t *path) free (path); } -static inline cairo_path_op_t +static cairo_path_op_t _cairo_path_fixed_last_op (cairo_path_fixed_t *path) { cairo_path_buf_t *buf; |