Browse Source

code cleanup: fix -Wmisleading-indentation

master
Yury Popov 2 years ago
parent
commit
aaae4e8daa
3 changed files with 4 additions and 4 deletions
  1. 1
    0
      src/libespeak-ng/CMakeLists.txt
  2. 3
    3
      src/libespeak-ng/synthesize.c
  3. 0
    1
      src/libespeak-ng/voices.c

+ 1
- 0
src/libespeak-ng/CMakeLists.txt View File

@@ -54,6 +54,7 @@ if (NOT MSVC)
"-Wmissing-prototypes"
"-Wint-conversion"
"-Wimplicit"
"-Wmisleading-indentation"
)
endif()
target_compile_definitions(espeak-ng PRIVATE "LIBESPEAK_NG_EXPORT=1")

+ 3
- 3
src/libespeak-ng/synthesize.c View File

@@ -1190,9 +1190,9 @@ int Generate(PHONEME_LIST *phoneme_list, int *n_ph, bool resume)
if (WcmdqFree() <= free_min)
return 1; // wait

PHONEME_LIST *prev;
PHONEME_LIST *next;
PHONEME_LIST *next2;
PHONEME_LIST *prev;
PHONEME_LIST *next;
PHONEME_LIST *next2;

prev = &phoneme_list[ix-1];
next = &phoneme_list[ix+1];

+ 0
- 1
src/libespeak-ng/voices.c View File

@@ -1423,7 +1423,6 @@ static int AddToVoicesList(const char *fname, int len_path_voices, int is_langua

if (voice_data != NULL)
voices_list[n_voices_list++] = voice_data;
return 0;
}
return 0;
}

Loading…
Cancel
Save