Quantcast

[Csnd-dev] now builds but...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Csnd-dev] now builds but...

jpff
...with new warnings

/home/jpff/csound6/Top/csound.c: In function ‘csoundReset’:
/home/jpff/csound6/Top/csound.c:3179:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
      pthread_spin_init(&csound->spoutlock, PTHREAD_PROCESS_PRIVATE);
      ^
In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Top/csound.c:36:
/usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
            ^
/home/jpff/csound6/Top/csound.c:3180:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
      pthread_spin_init(&csound->spinlock, PTHREAD_PROCESS_PRIVATE);
      ^
In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Top/csound.c:36:
/usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
            ^
/home/jpff/csound6/Top/csound.c:3181:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
      pthread_spin_init(&csound->memlock, PTHREAD_PROCESS_PRIVATE);
      ^
In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Top/csound.c:36:
/usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
            ^
/home/jpff/csound6/Top/csound.c:3182:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
      pthread_spin_init(&csound->spinlock1, PTHREAD_PROCESS_PRIVATE);
      ^
In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Top/csound.c:36:
/usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
/home/jpff/csound6/Top/csound.c: In function ‘csoundReset’:
/home/jpff/csound6/Top/csound.c:3179:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
      pthread_spin_init(&csound->spoutlock, PTHREAD_PROCESS_PRIVATE);
      ^
In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Top/csound.c:36:
/usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
            ^
/home/jpff/csound6/Top/csound.c:3180:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
      pthread_spin_init(&csound->spinlock, PTHREAD_PROCESS_PRIVATE);
      ^
In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Top/csound.c:36:
/usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
            ^
/home/jpff/csound6/Top/csound.c:3181:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
      pthread_spin_init(&csound->memlock, PTHREAD_PROCESS_PRIVATE);
      ^
In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Top/csound.c:36:
/usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
            ^
/home/jpff/csound6/Top/csound.c:3182:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
      pthread_spin_init(&csound->spinlock1, PTHREAD_PROCESS_PRIVATE);
      ^
In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Top/csound.c:36:
/usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
            ^
            ^
......
/home/jpff/csound6/OOps/diskin2.c: In function ‘diskin2_init_array’:
/home/jpff/csound6/OOps/diskin2.c:1727:16: warning: unused variable ‘thread’ [-Wunused-variable]
         void **thread = csound->QueryGlobalVariable(csound,
                ^
/usr/bin/cmake -E cmake_progress_report /home/jpff/csound6/CMakeFiles

.......
/home/jpff/csound6/Opcodes/pvlock.c: In function ‘sinit3’:
/home/jpff/csound6/Opcodes/pvlock.c:590:16: warning: assignment from incompatible pointer type [enabled by default]
   p->indata[1] = ((char*)p->fdata.auxp) + size/2;
                ^
........
/home/jpff/csound6/Opcodes/ftconv.c: In function ‘ftconv_init’:
/home/jpff/csound6/Opcodes/ftconv.c:152:13: warning: unused variable ‘FFTscale’ [-Wunused-variable]
     MYFLT   FFTscale;
             ^
........
/home/jpff/csound6/Opcodes/socksend.c: In function ‘osc_send2’:
/home/jpff/csound6/Opcodes/socksend.c:577:2: warning: passing argument 1 of ‘strlen’ from incompatible pointer type [enabled by default]
  size = strlen(s)+1;
  ^
In file included from /home/jpff/csound6/./include/sysdep.h:172:0,
                 from /home/jpff/csound6/./include/csoundCore.h:31,
                 from /home/jpff/csound6/Opcodes/socksend.c:24:
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘struct STRINGDAT *’
 extern size_t strlen (const char *__s)
               ^
/home/jpff/csound6/Opcodes/pvsbasic.c: In function ‘pvsfwriteset_’:
/home/jpff/csound6/Opcodes/pvsbasic.c:253:2: warning: passing argument 1 of ‘csoundCreateThread’ from incompatible pointer type [enabled by default]
  p->thread = csoundCreateThread (pvs_io_thread, (void*)p);
  ^
In file included from /home/jpff/csound6/./include/csound_type_system.h:31:0,
                 from /home/jpff/csound6/./include/csoundCore.h:40,
                 from /home/jpff/csound6/Opcodes/pvs_ops.h:26,
                 from /home/jpff/csound6/Opcodes/pvsbasic.c:28:
/home/jpff/csound6/./include/csound.h:1962:18: note: expected ‘uintptr_t (*)(void *)’ but argument is of type ‘void * (*)(void *)’
     PUBLIC void *csoundCreateThread(uintptr_t (*threadRoutine)(void *),
                  ^
.......
/home/jpff/csound6/Opcodes/mp3in.c: In function ‘sinit3_’:
/home/jpff/csound6/Opcodes/mp3in.c:511:19: warning: assignment from incompatible pointer type [enabled by default]
     p->indataL[1] = ((char*)p->fdata[0].auxp) + size/2;
                   ^
/home/jpff/csound6/Opcodes/mp3in.c:515:19: warning: assignment from incompatible pointer type [enabled by default]
     p->indataR[1] = ((char*)p->fdata[1].auxp) + size/2;
                   ^
......
/home/jpff/csound6/tests/c/csound_message_buffer_test.c: In function ‘test_create_buffer’:
/home/jpff/csound6/tests/c/csound_message_buffer_test.c:23:5: warning: passing argument 3 of ‘csoundCompile’ from incompatible pointer type [enabled by default]
     int result = csoundCompile(csound, argc, argv);
     ^
In file included from /home/jpff/csound6/tests/c/csound_message_buffer_test.c:4:0:
/home/jpff/csound6/./include/csound.h:769:16: note: expected ‘const char **’ but argument is of type ‘char **’
     PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv);
                ^
/home/jpff/csound6/tests/c/csound_message_buffer_test.c:23:9: warning: unused variable ‘result’ [-Wunused-variable]
     int result = csoundCompile(csound, argc, argv);
         ^
/home/jpff/csound6/tests/c/csound_message_buffer_test.c: In function ‘test_buffer_run’:
/home/jpff/csound6/tests/c/csound_message_buffer_test.c:45:9: warning: unused variable ‘result’ [-Wunused-variable]
     int result = csoundCompileOrc(csound, "instr 1\n"
         ^
.....
and others been there for a while

==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] now builds but...

Steven Yi
I can't speak to the pre-existing issues, but the pthread-related ones
are just casting issues (I thought they were all resolved, looks like
some were missed.)  I'll take a look at those.

On Mon, Apr 3, 2017 at 7:04 AM, jpff <[hidden email]> wrote:

> ...with new warnings
>
> /home/jpff/csound6/Top/csound.c: In function ‘csoundReset’:
> /home/jpff/csound6/Top/csound.c:3179:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
>       pthread_spin_init(&csound->spoutlock, PTHREAD_PROCESS_PRIVATE);
>       ^
> In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Top/csound.c:36:
> /usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
>  extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
>             ^
> /home/jpff/csound6/Top/csound.c:3180:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
>       pthread_spin_init(&csound->spinlock, PTHREAD_PROCESS_PRIVATE);
>       ^
> In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Top/csound.c:36:
> /usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
>  extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
>             ^
> /home/jpff/csound6/Top/csound.c:3181:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
>       pthread_spin_init(&csound->memlock, PTHREAD_PROCESS_PRIVATE);
>       ^
> In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Top/csound.c:36:
> /usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
>  extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
>             ^
> /home/jpff/csound6/Top/csound.c:3182:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
>       pthread_spin_init(&csound->spinlock1, PTHREAD_PROCESS_PRIVATE);
>       ^
> In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Top/csound.c:36:
> /usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
>  extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
> /home/jpff/csound6/Top/csound.c: In function ‘csoundReset’:
> /home/jpff/csound6/Top/csound.c:3179:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
>       pthread_spin_init(&csound->spoutlock, PTHREAD_PROCESS_PRIVATE);
>       ^
> In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Top/csound.c:36:
> /usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
>  extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
>             ^
> /home/jpff/csound6/Top/csound.c:3180:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
>       pthread_spin_init(&csound->spinlock, PTHREAD_PROCESS_PRIVATE);
>       ^
> In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Top/csound.c:36:
> /usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
>  extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
>             ^
> /home/jpff/csound6/Top/csound.c:3181:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
>       pthread_spin_init(&csound->memlock, PTHREAD_PROCESS_PRIVATE);
>       ^
> In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Top/csound.c:36:
> /usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
>  extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
>             ^
> /home/jpff/csound6/Top/csound.c:3182:6: warning: passing argument 1 of ‘pthread_spin_init’ from incompatible pointer type [enabled by default]
>       pthread_spin_init(&csound->spinlock1, PTHREAD_PROCESS_PRIVATE);
>       ^
> In file included from /home/jpff/csound6/./include/sysdep.h:98:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Top/csound.c:36:
> /usr/include/pthread.h:1055:12: note: expected ‘volatile pthread_spinlock_t *’ but argument is of type ‘void **’
>  extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
>             ^
>             ^
> ......
> /home/jpff/csound6/OOps/diskin2.c: In function ‘diskin2_init_array’:
> /home/jpff/csound6/OOps/diskin2.c:1727:16: warning: unused variable ‘thread’ [-Wunused-variable]
>          void **thread = csound->QueryGlobalVariable(csound,
>                 ^
> /usr/bin/cmake -E cmake_progress_report /home/jpff/csound6/CMakeFiles
>
> .......
> /home/jpff/csound6/Opcodes/pvlock.c: In function ‘sinit3’:
> /home/jpff/csound6/Opcodes/pvlock.c:590:16: warning: assignment from incompatible pointer type [enabled by default]
>    p->indata[1] = ((char*)p->fdata.auxp) + size/2;
>                 ^
> ........
> /home/jpff/csound6/Opcodes/ftconv.c: In function ‘ftconv_init’:
> /home/jpff/csound6/Opcodes/ftconv.c:152:13: warning: unused variable ‘FFTscale’ [-Wunused-variable]
>      MYFLT   FFTscale;
>              ^
> ........
> /home/jpff/csound6/Opcodes/socksend.c: In function ‘osc_send2’:
> /home/jpff/csound6/Opcodes/socksend.c:577:2: warning: passing argument 1 of ‘strlen’ from incompatible pointer type [enabled by default]
>   size = strlen(s)+1;
>   ^
> In file included from /home/jpff/csound6/./include/sysdep.h:172:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:31,
>                  from /home/jpff/csound6/Opcodes/socksend.c:24:
> /usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘struct STRINGDAT *’
>  extern size_t strlen (const char *__s)
>                ^
> /home/jpff/csound6/Opcodes/pvsbasic.c: In function ‘pvsfwriteset_’:
> /home/jpff/csound6/Opcodes/pvsbasic.c:253:2: warning: passing argument 1 of ‘csoundCreateThread’ from incompatible pointer type [enabled by default]
>   p->thread = csoundCreateThread (pvs_io_thread, (void*)p);
>   ^
> In file included from /home/jpff/csound6/./include/csound_type_system.h:31:0,
>                  from /home/jpff/csound6/./include/csoundCore.h:40,
>                  from /home/jpff/csound6/Opcodes/pvs_ops.h:26,
>                  from /home/jpff/csound6/Opcodes/pvsbasic.c:28:
> /home/jpff/csound6/./include/csound.h:1962:18: note: expected ‘uintptr_t (*)(void *)’ but argument is of type ‘void * (*)(void *)’
>      PUBLIC void *csoundCreateThread(uintptr_t (*threadRoutine)(void *),
>                   ^
> .......
> /home/jpff/csound6/Opcodes/mp3in.c: In function ‘sinit3_’:
> /home/jpff/csound6/Opcodes/mp3in.c:511:19: warning: assignment from incompatible pointer type [enabled by default]
>      p->indataL[1] = ((char*)p->fdata[0].auxp) + size/2;
>                    ^
> /home/jpff/csound6/Opcodes/mp3in.c:515:19: warning: assignment from incompatible pointer type [enabled by default]
>      p->indataR[1] = ((char*)p->fdata[1].auxp) + size/2;
>                    ^
> ......
> /home/jpff/csound6/tests/c/csound_message_buffer_test.c: In function ‘test_create_buffer’:
> /home/jpff/csound6/tests/c/csound_message_buffer_test.c:23:5: warning: passing argument 3 of ‘csoundCompile’ from incompatible pointer type [enabled by default]
>      int result = csoundCompile(csound, argc, argv);
>      ^
> In file included from /home/jpff/csound6/tests/c/csound_message_buffer_test.c:4:0:
> /home/jpff/csound6/./include/csound.h:769:16: note: expected ‘const char **’ but argument is of type ‘char **’
>      PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv);
>                 ^
> /home/jpff/csound6/tests/c/csound_message_buffer_test.c:23:9: warning: unused variable ‘result’ [-Wunused-variable]
>      int result = csoundCompile(csound, argc, argv);
>          ^
> /home/jpff/csound6/tests/c/csound_message_buffer_test.c: In function ‘test_buffer_run’:
> /home/jpff/csound6/tests/c/csound_message_buffer_test.c:45:9: warning: unused variable ‘result’ [-Wunused-variable]
>      int result = csoundCompileOrc(csound, "instr 1\n"
>          ^
> .....
> and others been there for a while
>
> ==John ffitch
Loading...