Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ctfmerge/ctfmerge.c
          +++ new/usr/src/cmd/ctfmerge/ctfmerge.c
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3   * Common Development and Distribution License ("CDDL"), version 1.0.
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13      - * Copyright (c) 2019, Joyent, Inc.
       13 + * Copyright 2019 Joyent, Inc.
  14   14   */
  15   15  
  16   16  /*
  17   17   * merge CTF containers
  18   18   */
  19   19  
  20   20  #include <stdio.h>
  21   21  #include <libctf.h>
  22   22  #include <sys/stat.h>
  23   23  #include <sys/types.h>
↓ open down ↓ 16 lines elided ↑ open up ↑
  40   40  static char *g_outfile;
  41   41  static uint_t g_nctf;
  42   42  
  43   43  #define CTFMERGE_OK     0
  44   44  #define CTFMERGE_FATAL  1
  45   45  #define CTFMERGE_USAGE  2
  46   46  
  47   47  #define CTFMERGE_DEFAULT_NTHREADS       8
  48   48  #define CTFMERGE_ALTEXEC        "CTFMERGE_ALTEXEC"
  49   49  
  50      -static void
       50 +static void __attribute__((__noreturn__))
  51   51  ctfmerge_fatal(const char *fmt, ...)
  52   52  {
  53   53          va_list ap;
  54   54  
  55   55          (void) fprintf(stderr, "%s: ", g_progname);
  56   56          va_start(ap, fmt);
  57   57          (void) vfprintf(stderr, fmt, ap);
  58   58          va_end(ap);
  59   59  
  60   60          if (g_outfile != NULL)
↓ open down ↓ 429 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX