-
Notifications
You must be signed in to change notification settings - Fork 141
pnet warning messages
Building with 'Xcode with Clang'.
/Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:62:69: warning: '/' within block comment [-Wcomment] 2007.04.12 Bob Dougherty (RFD): changed all comments to C-style ("/") ^
/Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:193:34: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"Copyright (C) Peter Rydes<E4>ter, Sweden, et al. , 1998 - 2003\n"
^~~~
/Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:695:48: warning: incompatible pointer types passing 'int[20]' to parameter of type 'const mwSize *' (aka 'const unsigned long *') [-Wincompatible-pointer-types]
gplhs[gret_args] = mxCreateNumericArray(0,dims,id,mxREAL);
^~~~
/Applications/MATLAB_R2024a.app/extern/include/matrix.h:971:49: note: passing argument to parameter 'dims' here
mxCreateNumericArray(mwSize ndim, const mwSize *dims, mxClassID classid, mxComplexity flag);
^
/Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:697:61: warning: incompatible pointer types passing 'int[20]' to parameter of type 'const mwSize *' (aka 'const unsigned long *') [-Wincompatible-pointer-types]
gplhs[gret_args] = mxCreateNumericArray(return_no_dims,dims,id,mxREAL);
^~~~
/Applications/MATLAB_R2024a.app/extern/include/matrix.h:971:49: note: passing argument to parameter 'dims' here mxCreateNumericArray(mwSize ndim, const mwSize *dims, mxClassID classid, mxComplexity flag); ^ /Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:861:2: warning: add explicit braces to avoid dangling else [-Wdangling-else]
else
^
/Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:883:55: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
readlen,MSG_NOSIGNAL,(struct sockaddr *)&my_addr, &fromlen);
^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/socket.h:732:27: note: passing argument to parameter here
socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom);
^
/Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:994:83: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
if ((new_fd = accept(sock_fd, (struct sockaddr *)&con[con_index].remote_addr,&sin_size)) > -1)
^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/socket.h:720:73: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^
/Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:1260:29: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast]
mexPrintf("WRITE PTR:%x\n",(int)con[con_index].write.ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/wandell/Documents/MATLAB/vistasoft/mrMesh/tcpToolbox/pnet.c:1264:28: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast]
mexPrintf("READ PTR:%x\n",(int)con[con_index].read.ptr);
- Vistasoft
- Getting Started
- mrVista Overview
- Anatomy
- Functional MRI
- mrVista
- Retinotopy tutorial
- Population RF methods also prf Model, prf_tutorial, prf tutorial
- Diffusion weighted MRI
- Visualization
- Tractography
- Tutorials
- Software overview