This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via ec5c8093c73872736480da4c97cbce5245fd6dc5 (commit) from a1c7fb9eab833787770f97497d38a17799d490c8 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/ec5c8093c73872736480da4c97cbce5245fd6...
commit ec5c8093c73872736480da4c97cbce5245fd6dc5 Author: Cyril Hrubis metan@ucw.cz Date: Wed Nov 21 23:16:29 2012 +0100
filters: Silence wrongly generated warnings.
Some older gcc wrongly thinks that x and y are used uninitialized. Silence the warning by initializing them to 0.
diff --git a/include/filters/GP_HilbertCurve.h b/include/filters/GP_HilbertCurve.h index fecac22..f5283c8 100644 --- a/include/filters/GP_HilbertCurve.h +++ b/include/filters/GP_HilbertCurve.h @@ -55,7 +55,11 @@ static inline void GP_HilbertCurveInit(struct GP_CurveState *state, int n) static inline void GP_HilbertCurveGetXY(struct GP_CurveState *state) { int sa, sb; - unsigned int i, temp, x, y; + /* + * Older gcc thinks that x and y are used uninitialized that is not + * true so we silence the warning by initializing them. + */ + unsigned int i, temp, x = 0, y = 0;
for (i = 0; i < 2 * state->n; i += 2) { sa = (state->s >> (i+1)) & 0x01;
-----------------------------------------------------------------------
Summary of changes: include/filters/GP_HilbertCurve.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.