mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1205] [MERGED] [FIX] Clang warning fixes #2002
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1205
Author: @kdrag0n
Created: 1/21/2020
Status: ✅ Merged
Merged: 1/30/2020
Merged by: @cfsmp3
Base:
master← Head:clang-warning-fixes📝 Commits (10+)
3711eedfile_buffer: Fix unitialized variable usage warning3c08d37common_timing: Fix uninitialized variable usage warningc25e7acencoders: Fix handling of multibyte characters in UTF-8 converter20d07c0gxf: Fix tautological comparison warningsf9ebfb4gxf: Fix uninitialized variable usage warningsda8cd33ts_functions: Fix incorrect enumeration type in get_buffer_type0fa6adfutility: Fix tautological comparison warnings63875edocr: Fix floating point -> integer abs() warningeaa98ceencoders: Fix incorrect string types when EIA-608 is in use546f4f0ocr: Fix implicit struct declaration warning📊 Changes
10 files changed (+42 additions, -51 deletions)
View changed files
📝
src/lib_ccx/ccx_common_timing.c(+2 -1)📝
src/lib_ccx/ccx_encoders_common.c(+14 -14)📝
src/lib_ccx/ccx_encoders_helpers.c(+10 -10)📝
src/lib_ccx/ccx_encoders_helpers.h(+1 -1)📝
src/lib_ccx/ccx_gxf.c(+8 -14)📝
src/lib_ccx/file_buffer.h(+1 -1)📝
src/lib_ccx/ocr.c(+2 -1)📝
src/lib_ccx/ocr.h(+1 -0)📝
src/lib_ccx/ts_functions.c(+1 -1)📝
src/lib_ccx/utility.c(+2 -8)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
This fixes all warnings reported by Clang 9.0.1 in the core CCExtractor code, excluding vendored libraries.
These changes combined with #1204 make all of the core code build with zero warnings on the latest stable versions of both GCC and Clang at the time of writing, both with and without OCR enabled.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.