Skip to content

fix: no warning xlsformatlib - #544

Draft
Aiiaiiio wants to merge 15 commits into
mainfrom
fix/no-warning-xlsformatlib
Draft

Aiiaiiio wants to merge 15 commits into
mainfrom
fix/no-warning-xlsformatlib

Conversation

@Aiiaiiio

@Aiiaiiio Aiiaiiio commented Dec 4, 2026

Copy link
Copy Markdown
Member

XlsFormatLib now builds with 0 warnings and 0 notes (GCC 16, -Wall -Wextra). Many of the warnings were real bugs.

Bug fixes (behaviour changes)

  • RevItab: switched on the class constant instead of the read byte, so tabid/sheet name were never read and later revision data was parsed at the wrong offset.
  • ExtProp: TextColor/FontScheme/Indent enum values were off by one (MS-XLS 2.5.108). Also:
    • load now honours cb, so the next ExtProp is no longer misread.
    • FontScheme is read as 2 bytes.
    • DXF fonts no longer take the cell fill colour.
    • DXF pattern fgColor now uses ForeColor (was GradientColor).
  • Missing breaks in Font.cpp, PtgExtraArray.cpp and ChartSheetSubstream.cpp.
  • FeatHdr: if (cbHdrData = 0) → ==.
  • PtgArea3d/PtgRef3d: the sentinel compare -1 == itabFirst on an unsigned value → 0xFFFF.
  • Dimensions:
    • An empty sheet no longer produces a wrapped range.
    • The xlsx→xls export now writes rwMac/colMac as last + 1.
  • CFRecord:
    • The RollRdPtrBack guard can now actually fire.
    • Bare throw; (which calls std::terminate) replaced by real exceptions.
    • The bool stream operators are now = delete.
  • CFStream: erase(++it) → it = erase(it) (dormant).
  • Uninitialized locals read from short records are now zero-initialized at each site.

Cleanups

  • GETBIT/SETBIT & co. are defined once, in DesktopEditor/common/BitMacros.h.
  • utf8cpp moved from a vendored copy into the 3rdparty pipeline.
  • MathParaWrapper's constructor is now out of line, which fixes deletion of incomplete COMath/COMathPara types in every library.
  • Removed dead Font colour branches, unused boost/bind.hpp includes and redundant "not implemented" #pragma messages.

🤖 Generated with Claude Code

Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
…in GetFileCharacterPositions

Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
…-bounds warning goes away

Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
…nical warning cleanup

Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
…ss type

Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
… delete bool stream operators

Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
…t colour branches

Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
…F font/fill colour lookups

Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
Signed-off-by: Tamás Bari <adaorcpp@gmail.com>
Signed-off-by: Tamás Bari <adaorcpp@gmail.com>

This branch was previously deployed

1 inactive deployment
build-cache — b7acfe53 Deployed Dec 4, 2026 by Aiiaiiio via publish / publish #1757
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant