Summary: | DAHLIN-00353: GCC complains | ||
Reporter: | Tzafrir Cohen (tzafrir) | Labels: | |
Date Opened: | 2017-03-27 03:43:06 | Date Closed: | 2019-06-10 07:29:55 |
Priority: | Trivial | Regression? | |
Status: | Closed/Complete | Components: | |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | 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} | ||
Comments: |