• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Révision7ff3cbb07369c0bca9d19b957d45dc9dd1c40aee (tree)
l'heure2014-10-02 07:23:48
AuteurHans Breuer <hans@breu...>
CommiterHans Breuer

Message de Log

[warningectomy] variable 'flip' is used uninitialized whenever ...

path-math.c:579:14: warning: variable 'flip' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]

} else if (distance_point_point (&eseg->p3,
~

path-math.c:590:7: note: uninitialized use occurs here

if (flip) {
~

path-math.c:579:10: note: remove the 'if' if its condition is always true

} else if (distance_point_point (&eseg->p3,
~

path-math.c:569:16: note: initialize the variable 'flip' to silence this warning

gboolean flip;

= 0

Change Summary

Modification

--- a/lib/path-math.c
+++ b/lib/path-math.c
@@ -585,6 +585,7 @@ _append_segments (GArray *path,
585585 bp.type = BEZ_MOVE_TO;
586586 bp.p1 = sseg->p0;
587587 g_array_append_val (path, bp);
588+ flip = FALSE;
588589 }
589590
590591 if (flip) {