(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
analyzer/
uninit-6b.c
       1  /* Reduced from uninit false positive seen on Linux kernel with
       2     net/ethtool/ioctl.c  */
       3  
       4  typedef signed char s8;
       5  typedef unsigned int u32;
       6  typedef __SIZE_TYPE__ size_t;
       7  
       8  void *memset(void *s, int c, size_t n);
       9  
      10  struct ethtool_link_settings {
      11    u32 cmd;
      12    s8 link_mode_masks_nwords;
      13  };
      14  
      15  struct ethtool_link_ksettings {
      16    u32 lanes;
      17    struct ethtool_link_settings base;
      18  };
      19  
      20  struct ethtool_link_settings
      21  ethtool_get_link_ksettings(void) {
      22    struct ethtool_link_ksettings link_ksettings;
      23  
      24    memset(&link_ksettings, 0, sizeof(link_ksettings));
      25    link_ksettings.base.cmd = 0x0000004c;
      26    link_ksettings.base.link_mode_masks_nwords = -3;
      27  
      28    return link_ksettings.base;
      29  }