summaryrefslogtreecommitdiff
path: root/src/modules/modPipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/modPipe.c')
-rwxr-xr-xsrc/modules/modPipe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c
index 2c1a6e5..2ca2f17 100755
--- a/src/modules/modPipe.c
+++ b/src/modules/modPipe.c
@@ -218,7 +218,7 @@ static void moveShot(shot_t *shot, int position, int src_x, int src_y,
int dist_x, int dist_y, int dist_w, int dist_h)
{
int offset = 0;
- int new_x, new_y;
+ int new_x = 0, new_y = 0; // no warninng
switch( shot->position )
{
@@ -341,6 +341,8 @@ static int negPosition(int n)
assert( ! "premenna n ma zlu hodnotu !" );
break;
}
+
+ return -1; // no warnning
}
int event()