Skip to content

Commit

Permalink
Remove some -Wimplicit-int and -Wreturn-type clang warnings.
Browse files Browse the repository at this point in the history
It's been a few decades since void was introduced...
  • Loading branch information
d-lamb committed Mar 18, 2015
1 parent f9a9fa5 commit 4f05db5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Basic/MatrixOps/blas.c
Expand Up @@ -6,7 +6,7 @@
* by column vector V of dimension c on the right
* to produce a (column) vector Y output of dimension r.
*/
mvmpy( r, c, A, V, Y )
void mvmpy( r, c, A, V, Y )
int r, c;
double *A, *V, *Y;
{
Expand All @@ -33,7 +33,7 @@ for( i=0; i<r; i++ )
* by a c (rows) by r (columns) matrix B on the right
* to produce an r by r matrix Y.
*/
mmmpy( r, c, A, B, Y )
void mmmpy( r, c, A, B, Y )
int r, c;
double *A, *B, *Y;
{
Expand Down Expand Up @@ -65,7 +65,7 @@ for( i=0; i<r; i++ )
/* Transpose the n by n square matrix A and put the result in T.
* T may occupy the same storage as A.
*/
mtransp( n, A, T )
void mtransp( n, A, T )
int n;
double *A, *T;
{
Expand Down Expand Up @@ -132,7 +132,7 @@ return( e );
/* Unpack symmetric matrix T stored in lower triangular form
* into a symmetric n by n square matrix S.
*/
tritosquare( n, T, S )
void tritosquare( n, T, S )
int n;
double T[], S[];
{
Expand Down
4 changes: 3 additions & 1 deletion Graphics/IIS/pdliisdisp.c
Expand Up @@ -369,8 +369,10 @@ int iis_chan(int frame) {
chan[1]=CHAN1; chan[2]=CHAN2; chan[3]=CHAN3; chan[4]=CHAN4;
if (frame>0 && frame<5)
return chan[frame];
else
else {
iis_error("iis_display: invalid frame number, must be 1-4\n","");
return -1;
}
}

/* Round to nearest int symmetrically about zero */
Expand Down

0 comments on commit 4f05db5

Please sign in to comment.