fix for compiler warning about strict aliasing rules
This commit is contained in:
parent
06a5a7846a
commit
67319a9e99
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
|||
int test_mode0_read(void)
|
||||
{
|
||||
comedi_trig it;
|
||||
lsampl_t data;
|
||||
sampl_t data;
|
||||
unsigned int chanspec;
|
||||
int save_errno;
|
||||
int ret;
|
||||
|
@ -31,7 +31,7 @@ int test_mode0_read(void)
|
|||
it.mode = 0;
|
||||
it.n_chan = 1;
|
||||
it.chanlist = &chanspec;
|
||||
it.data = (sampl_t *)&data;
|
||||
it.data = &data;
|
||||
it.n = 1;
|
||||
|
||||
chanspec = CR_PACK(0,0,0);
|
||||
|
|
Loading…
Add table
Reference in a new issue