Project

General

Profile

Bug #1039

Compiler warnings with clang 11.0

Added by Thomas Lange 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Trivial
Assignee:
-
Category:
-
Target version:
Start date:
December 07, 2020
Due date:
% Done:

100%

Estimated time:
Affects version:

Description

The recently released Clang 11.0 generates the following compiler warnings for audacious-plugins:

hotkey (GTK):

gui.cc:71:5: warning: array designators are a C99 extension [-Wc99-designator]
    [EVENT_PREV_TRACK] = N_("Previous track"),
    ^~~~~~~~~~~~~~~~~~

sid:

In file included from xs_config.cc:24:
./xmms-sid.h:39:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
typedef struct {
              ^
               xs_subtuneinfo_t
./xmms-sid.h:40:22: note: type is not C-compatible due to this default member initializer
    int tuneLength = -1;
                     ^~
./xmms-sid.h:41:3: note: type is given name 'xs_subtuneinfo_t' for linkage purposes by this typedef declaration
} xs_subtuneinfo_t;
  ^

History

#1 Updated by Thomas Lange 10 months ago

  • Target version set to 4.1

#2 Updated by John Lindgren 10 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Also available in: Atom PDF