Skip to content

The Windows build generates a huge number of MSVC compiler warnings #7253

@afarber

Description

@afarber

The Windows build (15_conan-windows-release-node.txt, can not be attached to the issue due to its size) generates 174,381 MSVC compiler warnings across 37 unique warning types, compared to the Linux build (6_conan-linux-release.txt, does not contain compiler warnings).

This massive warning output (223,072 lines vs 3,867) makes it difficult to spot real issues and indicates missing MSVC-specific warning configuration.

Current Warning Types and Frequencies

Top 10 Most Frequent Warnings (95.4% of total):

  1. C4711: 123,158 (70.6%) - Function selected for automatic inline expansion
  2. C4710: 32,974 (18.9%) - Function not inlined
  3. C4365: 2,964 (1.7%) - Signed/unsigned mismatch
  4. C4514: 2,923 (1.7%) - Unreferenced inline function removed
  5. C4820: 2,643 (1.5%) - Padding added to struct/class
  6. C4626: 1,846 (1.1%) - Assignment operator implicitly deleted
  7. C4267: 1,631 (0.9%) - Conversion with possible loss of data
  8. C4244: 1,232 (0.7%) - Data conversion with possible loss
  9. C5027: 1,190 (0.7%) - Move assignment operator implicitly deleted
  10. C4625: 1,005 (0.6%) - Copy constructor implicitly deleted

Complete Warning Inventory (37 types):

C4711: 123158  C4710:  32974  C4365:   2964  C4514:   2923  C4820:   2643                                                                                              
C4626:   1846  C4267:   1631  C4244:   1232  C5027:   1190  C4625:   1005                                                                                              
C5219:    524  C5045:    454  C5026:    317  C4242:    303  C4458:    272                                                                                              
C4623:    177  C4061:    131  C4245:    121  C5246:     73  C4686:     66                                                                                              
C5266:     63  C4800:     63  C4389:     58  C4868:     36  C4457:     34                                                                                              
C4146:     33  C4371:     27  C4127:     20  C4456:     12  C4355:      7                                                                                              
C4996:      6  C4668:      6  C4100:      6  C5039:      2  C4777:      2                                                                                              
C5264:      1  C4101:      1   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions