Commits

BarryFSmith committed a3afe2d

badly formatted /*I "include" I*/, unused variables fixed that compile with MATLAB

  • Participants
  • Parent commits fb7586e

Comments (0)

Files changed (3)

File src/mat/impls/aij/seq/matlab/aijmatlab.c

 
   PetscFunctionBegin;
   mat  = mxCreateSparse(B->cmap->n,B->rmap->n,aij->nz,mxREAL);
-  ierr = PetscMemcpy(mxGetPr(mat),aij->a,aij->nz*sizeof(PetscScalar));
+  ierr = PetscMemcpy(mxGetPr(mat),aij->a,aij->nz*sizeof(PetscScalar));CHKERRQ(ierr);
   /* MATLAB stores by column, not row so we pass in the transpose of the matrix */
   jj = mxGetIr(mat);
   for (i=0; i<aij->nz; i++) jj[i] = aij->j[i];

File src/sys/classes/matlabengine/matlab.c

 
 #include <engine.h>   /* Matlab include file */
 #include <petscsys.h>
-#include <petscmatlab.h>               /*I   "petscmatlab.h"  */
+#include <petscmatlab.h>               /*I   "petscmatlab.h"  I*/
 #include <petsc-private/petscimpl.h>
 
 struct  _p_PetscMatlabEngine {

File src/sys/classes/viewer/impls/socket/matlab/sopen.c

 
   {
   int optval = 1; /* Turn on the option */
-  ierr = setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char*)&optval,sizeof(optval));
+  (void) setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char*)&optval,sizeof(optval));
   }
 
   while (bind(s,(struct sockaddr*)&sa,sizeof(sa)) < 0) {