Skip to content

Commit 31a231f

Browse files
authored
Merge pull request #4229 from BsAtHome/fix_rtai-rtapi-uspace-warning
rtai: fix 'unused' warning when compiled with RTAPI_USPACE
2 parents af6fb80 + 2c7397e commit 31a231f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/hal/utils/halcmd_commands.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,10 @@ int do_unlinkp_cmd(char *pin)
241241
}
242242

243243
int do_set_debug_cmd(char* level){
244-
int m=0,retval=-EINVAL;
245-
const char *argv[4];
244+
int retval = -EINVAL;
246245
#if defined(RTAPI_USPACE)
246+
int m = 0;
247+
const char *argv[4];
247248
argv[m++] = EMC2_BIN_DIR "/rtapi_app";
248249
argv[m++] = "debug";
249250
argv[m++] = level;

0 commit comments

Comments
 (0)