fix compile error
@@ -41,9 +41,12 @@ | ||
41 | 41 | int ret; |
42 | 42 | int n; |
43 | 43 | int i; |
44 | + urg_t urg; | |
44 | 45 | |
46 | + (void)argc; | |
47 | + (void)argv; | |
48 | + | |
45 | 49 | /* Connection */ |
46 | - urg_t urg; | |
47 | 50 | urg_initialize(&urg); |
48 | 51 | ret = urg_connect(&urg, device, 115200); |
49 | 52 | if (ret < 0) { |
@@ -70,6 +70,7 @@ | ||
70 | 70 | } |
71 | 71 | urg_parameters(&urg, ¶meter); |
72 | 72 | scan_msec = urg_scanMsec(&urg); |
73 | + (void)scan_msec; | |
73 | 74 | |
74 | 75 | /* Request for MD data */ |
75 | 76 | /* To get data continuously for more than 100 times, set capture times equal |
@@ -1,8 +1,8 @@ | ||
1 | 1 | # Makefile for c_urg_sample |
2 | 2 | |
3 | 3 | CFLAGS = -g -O0 -Wall -Werror `c_urg-config --cflags` |
4 | -LDFLAGS = `c_urg-config --libs` | |
5 | -LDLIBS = -lm | |
4 | +LDFLAGS = | |
5 | +LDLIBS = `c_urg-config --libs` -lm | |
6 | 6 | |
7 | 7 | TARGET = gd_scan md_scan |
8 | 8 |
@@ -3,8 +3,8 @@ | ||
3 | 3 | # $Id$ |
4 | 4 | |
5 | 5 | CXXFLAGS = -g -O0 -Wall -Werror `urg-config --cflags` `sdl-config --cflags` |
6 | -LDFLAGS = `urg-config --libs` `sdl-config --libs` | |
7 | -LDLIBS = -lc | |
6 | +LDFLAGS = | |
7 | +LDLIBS = `urg-config --libs` `sdl-config --libs` -lc | |
8 | 8 | |
9 | 9 | TARGET = gdScanSample |
10 | 10 |