freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] 6 commits: Fix minor clang and clang++


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] 6 commits: Fix minor clang and clang++ warnings.
Date: Wed, 08 Feb 2023 21:01:34 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • da9eb9c7
    by Werner Lemberg at 2023-02-08T19:57:22+01:00
    Fix minor clang and clang++ warnings.
    
  • 37bc7c26
    by Werner Lemberg at 2023-02-08T21:09:30+01:00
    Avoid reserved identifiers that are globally defined.
    
    This is mandated by the C99 standard, and clang 15 produces zillions of
    warnings otherwise.
    
    * devel/ftoption.h, include/freetype/config/ftoption.h,
    include/freetype/internal/ftmemory.h, src/autofit/afhints.h,
    src/autofit/afmodule.c, src/autofit/aftypes.h, src/base/ftadvanc.c,
    src/base/ftdbgmem.c, src/base/ftstream.c, src/bdf/bdflib.c,
    src/truetype/ttinterp.c: Replace identifiers of the form `_foo` with `foo_`.
    
  • be724c81
    by Werner Lemberg at 2023-02-08T21:09:32+01:00
    For debugging, avoid implicit conversion from integer to double.
    
    Otherwise we get zillions of clang 15 warnings.
    
    * src/autofit/afcjk.c, src/autofit/afhints.c, src/autofit/aflatin.c,
    src/base/ftobjs.c, src/base/ftoutln.c, src/cff/cffparse.c,
    src/raster/ftraster.c, src/sfnt/pngshim.c, src/truetype/ttgload.c,
    src/truetype/ttgxvar.c, src/truetype/ttobjs.c, src/type1/t1gload.c: Use
    `double` cast in debugging and tracing macros.
    
  • ac5babe8
    by Werner Lemberg at 2023-02-08T21:09:32+01:00
    Fix 'fall-through' warning messages.
    
    Modern compilers get more insistent on that...
    
    * include/freetype/internal/compiler-macros.h (FALL_THROUGH): Define.
    * src/*: Use it instead of `/* fall through */` comments.
    
  • 663486a7
    by Werner Lemberg at 2023-02-08T21:09:32+01:00
    Fix `FT_LOCAL` and `FT_LOCAL_DEF` tags.
    
  • 995ccfac
    by Werner Lemberg at 2023-02-08T21:53:30+01:00
    [autofit] Fix 'multi' compilation.
    
    * src/autofit/ft-hb.c: Decorate with `FT_LOCAL_DEF`.
    Add ANSI boilerplate code for otherwise empty file.
    * src/autofit/ft-hb.h: Include `compiler-macros.h` and `freetype.h`.
    Use `FT_BEGIN_HEADER` and `FT_END_HEADER`.
    Decorate with `FT_LOCAL`.
    
    * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `ft-hb.c`.
    

30 changed files:

The diff was not included because it is too large.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]