diff options
| author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-07-24 13:00:32 +1000 |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-07-31 10:05:49 +1000 |
| commit | 1ddaf0af41098d0a01eac162c6fe4d38f2fbbbad (patch) | |
| tree | 1836f25b8342ea63b090711b9bbdb198ab39ccb5 /src | |
| parent | 6f7c5c558006bb69fdf0af73103097c012ccfed5 (diff) | |
Fix compiler warning - implicit declaration of function 'abs'
match_four.c:80:4: warning: implicit declaration of function 'abs'
[-Wimplicit-function-declaration]
*dist++ = abs(q->x - p->x) + abs(q->y - p->y);
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
| -rw-r--r-- | src/match_four.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/match_four.c b/src/match_four.c index c7d2cd3..df88afb 100644 --- a/src/match_four.c +++ b/src/match_four.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #include "match.h" | 1 | #include "match.h" |
| 2 | #include <limits.h> | 2 | #include <limits.h> |
| 3 | #include <stdlib.h> | ||
| 3 | 4 | ||
| 4 | typedef unsigned char u8; | 5 | typedef unsigned char u8; |
| 5 | typedef unsigned int u32; | 6 | typedef unsigned int u32; |
