mindtct: Fix compilation warnings
nbis/mindtct/morph.c:152:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] nbis/mindtct/morph.c:176:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] nbis/mindtct/morph.c:200:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] nbis/mindtct/morph.c:222:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] https://bugs.freedesktop.org/show_bug.cgi?id=105429
This commit is contained in:
parent
7ff667f58d
commit
54deaa1b24
1 changed files with 4 additions and 4 deletions
|
@ -151,7 +151,7 @@ char get_south8_2(char *ptr, const int row, const int iw, const int ih,
|
||||||
{
|
{
|
||||||
if (row >= ih-1) /* catch case where image is undefined southwards */
|
if (row >= ih-1) /* catch case where image is undefined southwards */
|
||||||
return failcode; /* use plane geometry and return code. */
|
return failcode; /* use plane geometry and return code. */
|
||||||
|
else
|
||||||
return *(ptr+iw);
|
return *(ptr+iw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ char get_north8_2(char *ptr, const int row, const int iw,
|
||||||
{
|
{
|
||||||
if (row < 1) /* catch case where image is undefined northwards */
|
if (row < 1) /* catch case where image is undefined northwards */
|
||||||
return failcode; /* use plane geometry and return code. */
|
return failcode; /* use plane geometry and return code. */
|
||||||
|
else
|
||||||
return *(ptr-iw);
|
return *(ptr-iw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ char get_east8_2(char *ptr, const int col, const int iw,
|
||||||
{
|
{
|
||||||
if (col >= iw-1) /* catch case where image is undefined eastwards */
|
if (col >= iw-1) /* catch case where image is undefined eastwards */
|
||||||
return failcode; /* use plane geometry and return code. */
|
return failcode; /* use plane geometry and return code. */
|
||||||
|
else
|
||||||
return *(ptr+ 1);
|
return *(ptr+ 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,6 +221,6 @@ char get_west8_2(char *ptr, const int col, const int failcode)
|
||||||
{
|
{
|
||||||
if (col < 1) /* catch case where image is undefined westwards */
|
if (col < 1) /* catch case where image is undefined westwards */
|
||||||
return failcode; /* use plane geometry and return code. */
|
return failcode; /* use plane geometry and return code. */
|
||||||
|
else
|
||||||
return *(ptr- 1);
|
return *(ptr- 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue