Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
A
aribb25
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • VideoLAN
  • aribb25
  • Merge Requests
  • !1

Closed
Opened Jun 03, 2020 by Steve Lhomme@robUx4
  • Report abuse
Report abuse

fix compilation with gcc 10

  • Overview 1
  • Commits 1
  • Changes 1

Here is the compilation error:

686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I./src   -I/builds/robUx4/vlc/contrib/i686-w64-mingw32/include  -Wall -Werror  -I/builds/robUx4/vlc/contrib/i686-w64-mingw32/include -g -O0 -c -o src/b25-td.o `test -f 'src/td.c' || echo './'`src/td.c
src/td.c: In function 'test_arib_std_b25':
src/td.c:376:50: error: format '%d' expects argument of type 'int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Werror=format=]
  376 |    fprintf(stderr, "  undecrypted TS packet: %I64d\n", pgrm.undecrypted_packet_count);
      |                                              ~~~~^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                  |         |
      |                                                  int       int64_t {aka long long int}
      |                                              %I64lld
src/td.c:377:50: error: format '%d' expects argument of type 'int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Werror=format=]
  377 |    fprintf(stderr, "  total TS packet:       %I64d\n", pgrm.total_packet_count);
      |                                              ~~~~^     ~~~~~~~~~~~~~~~~~~~~~~~
      |                                                  |         |
      |                                                  int       int64_t {aka long long int}
      |                                              %I64lld
cc1: all warnings being treated as errors
Makefile:630: recipe for target 'src/b25-td.o' failed
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: videolan/aribb25!1
Source branch: gcc10-fix