[dia] [scan-build] Value stored to 'angle' is never read
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Value stored to 'angle' is never read
- Date: Sun, 7 Sep 2014 18:49:45 +0000 (UTC)
commit 1ae7a9087756163a1b7b9af7ac4595b56edc3084
Author: Hans Breuer <hans breuer org>
Date: Sun Sep 7 20:17:46 2014 +0200
[scan-build] Value stored to 'angle' is never read
prop_matrix.c:209:5: warning: Value stored to 'angle' is never read
angle = atan2 (prop->matrix->xy, prop->matrix->xx)*180/G_PI;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
lib/prop_matrix.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/lib/prop_matrix.c b/lib/prop_matrix.c
index 6ae6bf6..8c51ca0 100644
--- a/lib/prop_matrix.c
+++ b/lib/prop_matrix.c
@@ -206,7 +206,6 @@ matrixprop_reset_widget(MatrixProperty *prop, GtkWidget *widget)
dia_matrix_get_angle_and_scales (prop->matrix, &a, &sx, &sy);
- angle = atan2 (prop->matrix->xy, prop->matrix->xx)*180/G_PI;
angle = -a*180/G_PI;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]