[asterisk-bugs] [JIRA] (DAHLIN-353) GCC complains
Tzafrir Cohen (JIRA)
noreply at issues.asterisk.org
Mon Mar 27 03:44:10 CDT 2017
Tzafrir Cohen created DAHLIN-353:
------------------------------------
Summary: GCC complains
Key: DAHLIN-353
URL: https://issues.asterisk.org/jira/browse/DAHLIN-353
Project: DAHDI-Linux
Issue Type: Bug
Security Level: None
Reporter: Tzafrir Cohen
Assignee: Wendell Thompson
Severity: Trivial
While building dahdi-linux I get the warning quoted below in voicebus/GpakApi.c.
I believe that the problem is that the code is indented with tab size of 4 whereas gcc seems to read it as using a tab size of 8. With a tab size of 8 it looks like having a misleading indentation.
{code}
drivers/dahdi/voicebus/GpakApi.c: In function ‘gpakReadDSPMemoryMap’:
drivers/dahdi/voicebus/GpakApi.c:1560:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (DspStatus != 0)
^~
drivers/dahdi/voicebus/GpakApi.c:1563:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
for (i = 0; i < MemoryLength_Word16; i++)
^~~
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list