https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92182

            Bug ID: 92182
           Summary: No way to silence ''A::TKind' is too small to hold all
                    values of 'enum Kind''
           Product: gcc
           Version: 9.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: david.bolvansky at gmail dot com
  Target Milestone: ---

enum Kind : unsigned {
    Y = 0x0,
    N = 0x1,
    Z = 0x2,
  };


struct A {
    Kind TKind : 2;
};


gcc file.c

warning: 'A::TKind' is too small to hold all values of 'enum Kind'


This warning has no flag so we cannot use -Wno-XXX. Only option to silence this
warning is '-w'.

Reply via email to