/datasets/dos2unix/common.c:38:1: warning: system include langinfo.h not allowed [llvmlibc-restrict-system-libc-headers]
# include <langinfo.h>
^~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:64:5: warning: Call to function 'strncpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
    strncpy(dest,src,dest_size);
    ^~~~~~~
/datasets/dos2unix/common.c:64:5: note: Call to function 'strncpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'strncpy_s' in case of C11
    strncpy(dest,src,dest_size);
    ^~~~~~~
/datasets/dos2unix/common.c:68:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, "Text %s has been truncated from %d to %d characters in %s to prevent a buffer overflow.\n", src, (int)strlen(src), (int)dest_size, "d2u_strncpy()");
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:68:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, "Text %s has been truncated from %d to %d characters in %s to prevent a buffer overflow.\n", src, (int)strlen(src), (int)dest_size, "d2u_strncpy()");
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:74:23: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int d2u_fclose (FILE *fp, const char *filename, CFlag *ipFlag, const char *m, const char *progname)
                      ^
/datasets/dos2unix/common.c:74:64: warning: 2 adjacent parameters of 'd2u_fclose' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int d2u_fclose (FILE *fp, const char *filename, CFlag *ipFlag, const char *m, const char *progname)
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:74:76: note: the first parameter in the range is 'm'
int d2u_fclose (FILE *fp, const char *filename, CFlag *ipFlag, const char *m, const char *progname)
                                                                           ^
/datasets/dos2unix/common.c:74:91: note: the last parameter in the range is 'progname'
int d2u_fclose (FILE *fp, const char *filename, CFlag *ipFlag, const char *m, const char *progname)
                                                                                          ^~~~~~~~
/datasets/dos2unix/common.c:74:76: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
int d2u_fclose (FILE *fp, const char *filename, CFlag *ipFlag, const char *m, const char *progname)
                                                                           ^
/datasets/dos2unix/common.c:79:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:79:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:80:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (m[0] == 'w')
                      ^
                       {
/datasets/dos2unix/common.c:81:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, _("Failed to write to temporary output file %s:"), filename);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:81:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, _("Failed to write to temporary output file %s:"), filename);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:82:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else
          ^
           {
/datasets/dos2unix/common.c:83:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, _("Failed to close input file %s:"), filename);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:83:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, _("Failed to close input file %s:"), filename);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:84:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, " %s\n", strerror(errno));
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:84:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, " %s\n", strerror(errno));
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:84:41: warning: function is not thread safe [concurrency-mt-unsafe]
      D2U_ANSI_FPRINTF(stderr, " %s\n", strerror(errno));
                                        ^
/datasets/dos2unix/common.c:379:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (S_ISLNK(buf.st_mode))
                               ^
                                {
/datasets/dos2unix/common.c:443:7: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
      else
      ^~~~
               return(-1)
/datasets/dos2unix/common.c:448:29: warning: function is not thread safe [concurrency-mt-unsafe]
       const char *errstr = strerror(errno);
                            ^
/datasets/dos2unix/common.c:450:8: warning: the value returned by this function should be used [cert-err33-c]
       D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, path);
       ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:450:8: note: cast the expression to void to silence this warning
       D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, path);
       ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:451:8: warning: the value returned by this function should be used [cert-err33-c]
       D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
       ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:451:8: note: cast the expression to void to silence this warning
       D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
       ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:481:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (S_ISREG(buf.st_mode))
                               ^
                                {
/datasets/dos2unix/common.c:483:7: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
      else
      ^~~~
               return(-1)
/datasets/dos2unix/common.c:483:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else
          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/dos2unix/common.c:488:29: warning: function is not thread safe [concurrency-mt-unsafe]
       const char *errstr = strerror(errno);
                            ^
/datasets/dos2unix/common.c:490:8: warning: the value returned by this function should be used [cert-err33-c]
       D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, path);
       ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:490:8: note: cast the expression to void to silence this warning
       D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, path);
       ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:491:8: warning: the value returned by this function should be used [cert-err33-c]
       D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
       ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:491:8: note: cast the expression to void to silence this warning
       D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
       ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:613:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,"%s", _("\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:613:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,"%s", _("\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:623:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,"%s", _("\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:623:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,"%s", _("\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:640:124: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((strncmp(progname, "dos2unix", sizeof("dos2unix")) == 0) || (strncmp(progname, "mac2unix", sizeof("mac2unix")) == 0))
                                                                                                                           ^
                                                                                                                            {
/datasets/dos2unix/common.c:642:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
  else
  ^~~~
      return 0
/datasets/dos2unix/common.c:642:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/dos2unix/common.c:648:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_("Usage: %s [options] [file ...] [-n infile outfile ...]\n"), progname);
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:648:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_("Usage: %s [options] [file ...] [-n infile outfile ...]\n"), progname);
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:650:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" --allow-chown         allow file ownership change\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:650:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" --allow-chown         allow file ownership change\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:652:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -ascii                convert only line breaks (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:652:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -ascii                convert only line breaks (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:653:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -iso                  conversion between DOS and ISO-8859-1 character set\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:653:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -iso                  conversion between DOS and ISO-8859-1 character set\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:654:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_("   -1252               use Windows code page 1252 (Western European)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:654:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_("   -1252               use Windows code page 1252 (Western European)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:655:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_("   -437                use DOS code page 437 (US) (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:655:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_("   -437                use DOS code page 437 (US) (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:656:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_("   -850                use DOS code page 850 (Western European)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:656:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_("   -850                use DOS code page 850 (Western European)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:657:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_("   -860                use DOS code page 860 (Portuguese)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:657:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_("   -860                use DOS code page 860 (Portuguese)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:658:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_("   -863                use DOS code page 863 (French Canadian)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:658:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_("   -863                use DOS code page 863 (French Canadian)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:659:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_("   -865                use DOS code page 865 (Nordic)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:659:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_("   -865                use DOS code page 865 (Nordic)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:660:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -7                    convert 8 bit characters to 7 bit space\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:660:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -7                    convert 8 bit characters to 7 bit space\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:661:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (is_dos2unix(progname))
                            ^
                             {
/datasets/dos2unix/common.c:662:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_ANSI_FPRINTF(stdout,_(" -b, --keep-bom        keep Byte Order Mark\n"));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:662:5: note: cast the expression to void to silence this warning
    D2U_ANSI_FPRINTF(stdout,_(" -b, --keep-bom        keep Byte Order Mark\n"));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:663:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
       {
/datasets/dos2unix/common.c:664:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_ANSI_FPRINTF(stdout,_(" -b, --keep-bom        keep Byte Order Mark (default)\n"));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:664:5: note: cast the expression to void to silence this warning
    D2U_ANSI_FPRINTF(stdout,_(" -b, --keep-bom        keep Byte Order Mark (default)\n"));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:665:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -c, --convmode        conversion mode\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:665:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -c, --convmode        conversion mode\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:671:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -f, --force           force conversion of binary files\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:671:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -f, --force           force conversion of binary files\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:677:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -h, --help            display this help text\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:677:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -h, --help            display this help text\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:678:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -i, --info[=FLAGS]    display file information\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:678:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -i, --info[=FLAGS]    display file information\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:680:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -k, --keepdate        keep output file date\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:680:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -k, --keepdate        keep output file date\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:681:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -L, --license         display software license\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:681:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -L, --license         display software license\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:682:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -l, --newline         add additional newline\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:682:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -l, --newline         add additional newline\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:683:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -m, --add-bom         add Byte Order Mark (default UTF-8)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:683:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -m, --add-bom         add Byte Order Mark (default UTF-8)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:684:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -n, --newfile         write to new file\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:684:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -n, --newfile         write to new file\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:688:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" --no-allow-chown      don't allow file ownership change (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:688:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" --no-allow-chown      don't allow file ownership change (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:690:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -o, --oldfile         write to old file (default)\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:690:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -o, --oldfile         write to old file (default)\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:692:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -q, --quiet           quiet mode, suppress all warnings\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:692:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -q, --quiet           quiet mode, suppress all warnings\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:693:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (is_dos2unix(progname))
                            ^
                             {
/datasets/dos2unix/common.c:694:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_ANSI_FPRINTF(stdout,_(" -r, --remove-bom      remove Byte Order Mark (default)\n"));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:694:5: note: cast the expression to void to silence this warning
    D2U_ANSI_FPRINTF(stdout,_(" -r, --remove-bom      remove Byte Order Mark (default)\n"));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:695:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
       {
/datasets/dos2unix/common.c:696:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_ANSI_FPRINTF(stdout,_(" -r, --remove-bom      remove Byte Order Mark\n"));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:696:5: note: cast the expression to void to silence this warning
    D2U_ANSI_FPRINTF(stdout,_(" -r, --remove-bom      remove Byte Order Mark\n"));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:697:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -s, --safe            skip binary files (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:697:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -s, --safe            skip binary files (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:699:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -u,  --keep-utf16     keep UTF-16 encoding\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:699:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -u,  --keep-utf16     keep UTF-16 encoding\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:700:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -ul, --assume-utf16le assume that the input format is UTF-16LE\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:700:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -ul, --assume-utf16le assume that the input format is UTF-16LE\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:701:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -ub, --assume-utf16be assume that the input format is UTF-16BE\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:701:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -ub, --assume-utf16be assume that the input format is UTF-16BE\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:703:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -v,  --verbose        verbose operation\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:703:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -v,  --verbose        verbose operation\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:705:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -F, --follow-symlink  follow symbolic links and convert the targets\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:705:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -F, --follow-symlink  follow symbolic links and convert the targets\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:708:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -R, --replace-symlink replace symbolic links with converted files\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:708:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -R, --replace-symlink replace symbolic links with converted files\n\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:710:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -S, --skip-symlink    keep symbolic links and targets unchanged (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:710:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -S, --skip-symlink    keep symbolic links and targets unchanged (default)\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:712:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_(" -V, --version         display version number\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:712:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_(" -V, --version         display version number\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:717:19: warning: 2 adjacent parameters of 'PrintVersion' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void PrintVersion(const char *progname, const char *localedir)
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:717:31: note: the first parameter in the range is 'progname'
void PrintVersion(const char *progname, const char *localedir)
                              ^~~~~~~~
/datasets/dos2unix/common.c:717:53: note: the last parameter in the range is 'localedir'
void PrintVersion(const char *progname, const char *localedir)
                                                    ^~~~~~~~~
/datasets/dos2unix/common.c:719:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,"%s %s (%s)\n", progname, VER_REVISION, VER_DATE);
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:719:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,"%s %s (%s)\n", progname, VER_REVISION, VER_DATE);
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:758:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,"%s", _("With Unicode UTF-16 support.\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:758:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,"%s", _("With Unicode UTF-16 support.\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:770:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,"%s", _("With native language support.\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:770:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,"%s", _("With native language support.\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:775:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,"%s", _("With support to preserve the user and group ownership of files.\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:775:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,"%s", _("With support to preserve the user and group ownership of files.\n"));
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:780:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,"LOCALEDIR: %s\n", localedir);
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:780:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,"LOCALEDIR: %s\n", localedir);
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:782:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,"http://waterlan.home.xs4all.nl/dos2unix.html\n");
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:782:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,"http://waterlan.home.xs4all.nl/dos2unix.html\n");
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:797:23: warning: use 'fopen' mode 'e' to set O_CLOEXEC [android-cloexec-fopen]
  return (fopen(ipFN, R_CNTRL));
                      ^~~~~~~
                      R_CNTRL "e"
./common.h:164:21: note: expanded from macro 'R_CNTRL'
  #define R_CNTRL   "r"
                    ^
/datasets/dos2unix/common.c:814:23: warning: use 'fopen' mode 'e' to set O_CLOEXEC [android-cloexec-fopen]
  return (fopen(opFN, W_CNTRL));
                      ^~~~~~~
                      W_CNTRL "e"
./common.h:165:21: note: expanded from macro 'W_CNTRL'
  #define W_CNTRL   "w"
                    ^
/datasets/dos2unix/common.c:822:24: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
FILE* OpenOutFiled(int fd)
                       ^
/datasets/dos2unix/common.c:965:9: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
  FILE *fp = NULL;  /* file pointer */
        ^
/datasets/dos2unix/common.c:969:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
  int fd = -1;  /* file descriptor */
      ^
/datasets/dos2unix/common.c:974:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!cpy)
           ^
            {
/datasets/dos2unix/common.c:977:9: warning: function is not thread safe [concurrency-mt-unsafe]
  dir = dirname(cpy);
        ^
/datasets/dos2unix/common.c:980:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if (!(fname_str = (char *)malloc(fname_len)))
        ^
/datasets/dos2unix/common.c:980:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:980:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:980:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!(fname_str = (char *)malloc(fname_len)))
                                               ^
                                                {
/datasets/dos2unix/common.c:982:3: warning: the value returned by this function should be used [cert-err33-c]
  sprintf(fname_str, "%s%s", dir, "/d2utmpXXXXXX");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:982:3: note: cast the expression to void to silence this warning
/datasets/dos2unix/common.c:982:3: warning: Call to function 'sprintf' is insecure as it does not provide bounding of the memory buffer or security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
  sprintf(fname_str, "%s%s", dir, "/d2utmpXXXXXX");
  ^~~~~~~
/datasets/dos2unix/common.c:982:3: note: Call to function 'sprintf' is insecure as it does not provide bounding of the memory buffer or security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
  sprintf(fname_str, "%s%s", dir, "/d2utmpXXXXXX");
  ^~~~~~~
/datasets/dos2unix/common.c:995:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ((fd = mkstemp(fname_str)) == -1)
       ^
/datasets/dos2unix/common.c:995:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:995:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:995:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((fd = mkstemp(fname_str)) == -1)
                                      ^
                                       {
/datasets/dos2unix/common.c:998:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ((fp=OpenOutFiled(fd)) == NULL)
       ^
/datasets/dos2unix/common.c:998:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:998:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:998:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((fp=OpenOutFiled(fd)) == NULL)
                                    ^
                                     {
/datasets/dos2unix/common.c:1033:15: warning: variable 'errstr' is not initialized [cppcoreguidelines-init-variables]
  const char *errstr;
              ^
                     = NULL
/datasets/dos2unix/common.c:1039:16: warning: function is not thread safe [concurrency-mt-unsafe]
      errstr = strerror(errno);
               ^
/datasets/dos2unix/common.c:1040:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, lFN);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1040:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, lFN);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1041:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1041:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1051:18: warning: function is not thread safe [concurrency-mt-unsafe]
        errstr = strerror(errno);
                 ^
/datasets/dos2unix/common.c:1052:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, lFN);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1052:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, lFN);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1053:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1053:9: note: cast the expression to void to silence this warning
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1095:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
       {
/datasets/dos2unix/common.c:1106:7: warning: function 'read_bom' has cognitive complexity of 64 (threshold 25) [readability-function-cognitive-complexity]
FILE *read_bom (FILE *f, int *bomtype)
      ^
/datasets/dos2unix/common.c:1118:4: note: +1, including nesting penalty of 0, nesting level increased to 1
   if  (f != NULL) {
   ^
/datasets/dos2unix/common.c:1120:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((bom[0] = fgetc(f)) == EOF) {
      ^
/datasets/dos2unix/common.c:1121:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ferror(f)) {
         ^
/datasets/dos2unix/common.c:1127:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((bom[0] != 0xff) && (bom[0] != 0xfe) && (bom[0] != 0xef) && (bom[0] != 0x84)) {
      ^
/datasets/dos2unix/common.c:1127:68: note: +1
      if ((bom[0] != 0xff) && (bom[0] != 0xfe) && (bom[0] != 0xef) && (bom[0] != 0x84)) {
                                                                   ^
/datasets/dos2unix/common.c:1128:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ungetc(bom[0], f) == EOF) return NULL;
         ^
/datasets/dos2unix/common.c:1132:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((bom[1] = fgetc(f)) == EOF) {
      ^
/datasets/dos2unix/common.c:1133:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ferror(f)) {
         ^
/datasets/dos2unix/common.c:1136:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ungetc(bom[1], f) == EOF) return NULL;
         ^
/datasets/dos2unix/common.c:1137:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ungetc(bom[0], f) == EOF) return NULL;
         ^
/datasets/dos2unix/common.c:1141:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((bom[0] == 0xff) && (bom[1] == 0xfe)) { /* UTF16-LE */
      ^
/datasets/dos2unix/common.c:1141:28: note: +1
      if ((bom[0] == 0xff) && (bom[1] == 0xfe)) { /* UTF16-LE */
                           ^
/datasets/dos2unix/common.c:1145:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((bom[0] == 0xfe) && (bom[1] == 0xff)) { /* UTF16-BE */
      ^
/datasets/dos2unix/common.c:1145:28: note: +1
      if ((bom[0] == 0xfe) && (bom[1] == 0xff)) { /* UTF16-BE */
                           ^
/datasets/dos2unix/common.c:1149:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((bom[2] = fgetc(f)) == EOF) {
      ^
/datasets/dos2unix/common.c:1150:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ferror(f)) {
         ^
/datasets/dos2unix/common.c:1153:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ungetc(bom[2], f) == EOF) return NULL;
         ^
/datasets/dos2unix/common.c:1154:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ungetc(bom[1], f) == EOF) return NULL;
         ^
/datasets/dos2unix/common.c:1155:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ungetc(bom[0], f) == EOF) return NULL;
         ^
/datasets/dos2unix/common.c:1159:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((bom[0] == 0xef) && (bom[1] == 0xbb) && (bom[2]== 0xbf)) { /* UTF-8 */
      ^
/datasets/dos2unix/common.c:1159:48: note: +1
      if ((bom[0] == 0xef) && (bom[1] == 0xbb) && (bom[2]== 0xbf)) { /* UTF-8 */
                                               ^
/datasets/dos2unix/common.c:1163:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((bom[0] == 0x84) && (bom[1] == 0x31) && (bom[2]== 0x95)) {
      ^
/datasets/dos2unix/common.c:1163:48: note: +1
      if ((bom[0] == 0x84) && (bom[1] == 0x31) && (bom[2]== 0x95)) {
                                               ^
/datasets/dos2unix/common.c:1165:12: note: +3, including nesting penalty of 2, nesting level increased to 3
           if (ferror(f)) {
           ^
/datasets/dos2unix/common.c:1168:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (bom[3]== 0x33) { /* GB18030 */
         ^
/datasets/dos2unix/common.c:1172:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (ungetc(bom[3], f) == EOF) return NULL;
         ^
/datasets/dos2unix/common.c:1174:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (ungetc(bom[2], f) == EOF) return NULL;
      ^
/datasets/dos2unix/common.c:1175:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (ungetc(bom[1], f) == EOF) return NULL;
      ^
/datasets/dos2unix/common.c:1176:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (ungetc(bom[0], f) == EOF) return NULL;
      ^
/datasets/dos2unix/common.c:1106:23: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
FILE *read_bom (FILE *f, int *bomtype)
                      ^
/datasets/dos2unix/common.c:1120:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
      if ((bom[0] = fgetc(f)) == EOF) {
           ^
/datasets/dos2unix/common.c:1120:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:1120:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:1127:22: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] != 0xff) && (bom[0] != 0xfe) && (bom[0] != 0xef) && (bom[0] != 0x84)) {
                     ^
/datasets/dos2unix/common.c:1127:42: warning: 0xfe is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] != 0xff) && (bom[0] != 0xfe) && (bom[0] != 0xef) && (bom[0] != 0x84)) {
                                         ^
/datasets/dos2unix/common.c:1127:62: warning: 0xef is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] != 0xff) && (bom[0] != 0xfe) && (bom[0] != 0xef) && (bom[0] != 0x84)) {
                                                             ^
/datasets/dos2unix/common.c:1127:82: warning: 0x84 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] != 0xff) && (bom[0] != 0xfe) && (bom[0] != 0xef) && (bom[0] != 0x84)) {
                                                                                 ^
/datasets/dos2unix/common.c:1128:39: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
         if (ungetc(bom[0], f) == EOF) return NULL;
                                      ^
                                       {
/datasets/dos2unix/common.c:1132:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
      if ((bom[1] = fgetc(f)) == EOF) {
           ^
/datasets/dos2unix/common.c:1132:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:1132:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:1136:39: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
         if (ungetc(bom[1], f) == EOF) return NULL;
                                      ^
                                       {
/datasets/dos2unix/common.c:1137:39: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
         if (ungetc(bom[0], f) == EOF) return NULL;
                                      ^
                                       {
/datasets/dos2unix/common.c:1141:22: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0xff) && (bom[1] == 0xfe)) { /* UTF16-LE */
                     ^
/datasets/dos2unix/common.c:1141:42: warning: 0xfe is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0xff) && (bom[1] == 0xfe)) { /* UTF16-LE */
                                         ^
/datasets/dos2unix/common.c:1145:22: warning: 0xfe is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0xfe) && (bom[1] == 0xff)) { /* UTF16-BE */
                     ^
/datasets/dos2unix/common.c:1145:42: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0xfe) && (bom[1] == 0xff)) { /* UTF16-BE */
                                         ^
/datasets/dos2unix/common.c:1149:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
      if ((bom[2] = fgetc(f)) == EOF) {
           ^
/datasets/dos2unix/common.c:1149:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:1149:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:1153:39: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
         if (ungetc(bom[2], f) == EOF) return NULL;
                                      ^
                                       {
/datasets/dos2unix/common.c:1154:39: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
         if (ungetc(bom[1], f) == EOF) return NULL;
                                      ^
                                       {
/datasets/dos2unix/common.c:1155:39: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
         if (ungetc(bom[0], f) == EOF) return NULL;
                                      ^
                                       {
/datasets/dos2unix/common.c:1159:22: warning: 0xef is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0xef) && (bom[1] == 0xbb) && (bom[2]== 0xbf)) { /* UTF-8 */
                     ^
/datasets/dos2unix/common.c:1159:42: warning: 0xbb is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0xef) && (bom[1] == 0xbb) && (bom[2]== 0xbf)) { /* UTF-8 */
                                         ^
/datasets/dos2unix/common.c:1159:61: warning: 0xbf is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0xef) && (bom[1] == 0xbb) && (bom[2]== 0xbf)) { /* UTF-8 */
                                                            ^
/datasets/dos2unix/common.c:1163:22: warning: 0x84 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0x84) && (bom[1] == 0x31) && (bom[2]== 0x95)) {
                     ^
/datasets/dos2unix/common.c:1163:42: warning: 0x31 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0x84) && (bom[1] == 0x31) && (bom[2]== 0x95)) {
                                         ^
/datasets/dos2unix/common.c:1163:61: warning: 0x95 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((bom[0] == 0x84) && (bom[1] == 0x31) && (bom[2]== 0x95)) {
                                                            ^
/datasets/dos2unix/common.c:1168:23: warning: 0x33 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
         if (bom[3]== 0x33) { /* GB18030 */
                      ^
/datasets/dos2unix/common.c:1172:39: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
         if (ungetc(bom[3], f) == EOF) return NULL;
                                      ^
                                       {
/datasets/dos2unix/common.c:1174:36: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
      if (ungetc(bom[2], f) == EOF) return NULL;
                                   ^
                                    {
/datasets/dos2unix/common.c:1175:36: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
      if (ungetc(bom[1], f) == EOF) return NULL;
                                   ^
                                    {
/datasets/dos2unix/common.c:1176:36: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
      if (ungetc(bom[0], f) == EOF) return NULL;
                                   ^
                                    {
/datasets/dos2unix/common.c:1183:7: warning: function 'write_bom' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity]
FILE *write_bom (FILE *f, CFlag *ipFlag, const char *progname)
      ^
/datasets/dos2unix/common.c:1187:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if ((bomtype == FILE_MBS)&&(ipFlag->locale_target == TARGET_GB18030))
  ^
/datasets/dos2unix/common.c:1187:28: note: +1
  if ((bomtype == FILE_MBS)&&(ipFlag->locale_target == TARGET_GB18030))
                           ^
/datasets/dos2unix/common.c:1190:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (ipFlag->keep_utf16)
  ^
/datasets/dos2unix/common.c:1192:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    switch (bomtype) {
    ^
/datasets/dos2unix/common.c:1194:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (fprintf(f, "%s", "\xFF\xFE") < 0) return NULL;
        ^
/datasets/dos2unix/common.c:1195:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (ipFlag->verbose > 1) {
        ^
/datasets/dos2unix/common.c:1201:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (fprintf(f, "%s", "\xFE\xFF") < 0) return NULL;
        ^
/datasets/dos2unix/common.c:1202:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (ipFlag->verbose > 1) {
        ^
/datasets/dos2unix/common.c:1208:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (fprintf(f, "%s", "\x84\x31\x95\x33") < 0) return NULL;
        ^
/datasets/dos2unix/common.c:1209:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (ipFlag->verbose > 1) {
        ^
/datasets/dos2unix/common.c:1215:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (fprintf(f, "%s", "\xEF\xBB\xBF") < 0) return NULL;
        ^
/datasets/dos2unix/common.c:1216:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (ipFlag->verbose > 1) {
        ^
/datasets/dos2unix/common.c:1222:5: note: +1, nesting level increased to 1
  } else {
    ^
/datasets/dos2unix/common.c:1223:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if ((bomtype == FILE_GB18030) ||
    ^
/datasets/dos2unix/common.c:1223:35: note: +1
    if ((bomtype == FILE_GB18030) ||
                                  ^
/datasets/dos2unix/common.c:1224:64: note: +1
        (((bomtype == FILE_UTF16LE)||(bomtype == FILE_UTF16BE))&&(ipFlag->locale_target == TARGET_GB18030))
                                                               ^
/datasets/dos2unix/common.c:1224:36: note: +1
        (((bomtype == FILE_UTF16LE)||(bomtype == FILE_UTF16BE))&&(ipFlag->locale_target == TARGET_GB18030))
                                   ^
/datasets/dos2unix/common.c:1226:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (fprintf(f, "%s", "\x84\x31\x95\x33") < 0) return NULL; /* GB18030 */
        ^
/datasets/dos2unix/common.c:1227:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (ipFlag->verbose > 1)
        ^
/datasets/dos2unix/common.c:1232:8: note: +1, nesting level increased to 2
     } else {
       ^
/datasets/dos2unix/common.c:1233:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (fprintf(f, "%s", "\xEF\xBB\xBF") < 0) return NULL; /* UTF-8 */
        ^
/datasets/dos2unix/common.c:1234:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (ipFlag->verbose > 1)
        ^
/datasets/dos2unix/common.c:1183:24: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
FILE *write_bom (FILE *f, CFlag *ipFlag, const char *progname)
                       ^
/datasets/dos2unix/common.c:1187:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((bomtype == FILE_MBS)&&(ipFlag->locale_target == TARGET_GB18030))
                                                                       ^
                                                                        {
/datasets/dos2unix/common.c:1194:46: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(f, "%s", "\xFF\xFE") < 0) return NULL;
                                             ^
                                              {
/datasets/dos2unix/common.c:1196:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1196:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1197:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("UTF-16LE"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1197:11: note: cast the expression to void to silence this warning
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("UTF-16LE"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1201:46: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(f, "%s", "\xFE\xFF") < 0) return NULL;
                                             ^
                                              {
/datasets/dos2unix/common.c:1203:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1203:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1204:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("UTF-16BE"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1204:11: note: cast the expression to void to silence this warning
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("UTF-16BE"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1208:54: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(f, "%s", "\x84\x31\x95\x33") < 0) return NULL;
                                                     ^
                                                      {
/datasets/dos2unix/common.c:1210:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1210:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1211:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("GB18030"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1211:11: note: cast the expression to void to silence this warning
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("GB18030"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1215:50: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(f, "%s", "\xEF\xBB\xBF") < 0) return NULL;
                                                 ^
                                                  {
/datasets/dos2unix/common.c:1217:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1217:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1218:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("UTF-8"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1218:11: note: cast the expression to void to silence this warning
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("UTF-8"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1226:54: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(f, "%s", "\x84\x31\x95\x33") < 0) return NULL; /* GB18030 */
                                                     ^
                                                      {
/datasets/dos2unix/common.c:1229:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1229:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1230:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("GB18030"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1230:11: note: cast the expression to void to silence this warning
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("GB18030"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1233:50: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(f, "%s", "\xEF\xBB\xBF") < 0) return NULL; /* UTF-8 */
                                                 ^
                                                  {
/datasets/dos2unix/common.c:1236:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1236:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1237:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("UTF-8"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1237:11: note: cast the expression to void to silence this warning
          D2U_ANSI_FPRINTF(stderr, _("Writing %s BOM.\n"), _("UTF-8"));
          ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1244:36: warning: 2 adjacent parameters of 'print_bom' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void print_bom (const int bomtype, const char *filename, const char *progname)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1244:48: note: the first parameter in the range is 'filename'
void print_bom (const int bomtype, const char *filename, const char *progname)
                                               ^~~~~~~~
/datasets/dos2unix/common.c:1244:70: note: the last parameter in the range is 'progname'
void print_bom (const int bomtype, const char *filename, const char *progname)
                                                                     ^~~~~~~~
/datasets/dos2unix/common.c:1246:19: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
    char informat[64];
                  ^
/datasets/dos2unix/common.c:1281:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1281:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1282:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("Input file %s has %s BOM.\n"), filename, informat);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1282:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("Input file %s has %s BOM.\n"), filename, informat);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1293:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  UTF-16LE");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1293:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  UTF-16LE");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1296:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  UTF-16BE");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1296:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  UTF-16BE");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1299:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  UTF-8   ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1299:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  UTF-8   ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1302:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  GB18030 ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1302:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  GB18030 ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1305:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  no_bom  ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1305:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  no_bom  ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1322:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1322:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1323:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Assuming UTF-16LE encoding.\n") );
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1323:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Assuming UTF-16LE encoding.\n") );
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1326:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1326:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1327:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Assuming UTF-16BE encoding.\n") );
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1327:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Assuming UTF-16BE encoding.\n") );
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1331:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ((InF = read_bom(InF, &ipFlag->bomtype)) == NULL) {
       ^
/datasets/dos2unix/common.c:1331:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:1331:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:1331:8: warning: Although the value stored to 'InF' is used in the enclosing expression, the value is never actually read from 'InF' [clang-analyzer-deadcode.DeadStores]
  if ((InF = read_bom(InF, &ipFlag->bomtype)) == NULL) {
       ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1331:8: note: Although the value stored to 'InF' is used in the enclosing expression, the value is never actually read from 'InF'
  if ((InF = read_bom(InF, &ipFlag->bomtype)) == NULL) {
       ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1337:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((ipFlag->bomtype == FILE_MBS) && (ipFlag->ConvMode == CONVMODE_UTF16LE))
                                                                              ^
                                                                               {
/datasets/dos2unix/common.c:1339:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((ipFlag->bomtype == FILE_MBS) && (ipFlag->ConvMode == CONVMODE_UTF16BE))
                                                                              ^
                                                                               {
/datasets/dos2unix/common.c:1347:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      ipFlag->status |= WCHAR_T_TOO_SMALL ;
      ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1348:26: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
      if (!ipFlag->error) ipFlag->error = 1;
                         ^
                          {
/datasets/dos2unix/common.c:1358:19: warning: 2 adjacent parameters of 'check_unicode' of similar type ('FILE *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int check_unicode(FILE *InF, FILE *TempF,  CFlag *ipFlag, const char *ipInFN, const char *progname)
                  ^~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1358:25: note: the first parameter in the range is 'InF'
int check_unicode(FILE *InF, FILE *TempF,  CFlag *ipFlag, const char *ipInFN, const char *progname)
                        ^~~
/datasets/dos2unix/common.c:1358:36: note: the last parameter in the range is 'TempF'
int check_unicode(FILE *InF, FILE *TempF,  CFlag *ipFlag, const char *ipInFN, const char *progname)
                                   ^~~~~
/datasets/dos2unix/common.c:1364:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1364:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1365:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Assuming UTF-16LE encoding.\n") );
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1365:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Assuming UTF-16LE encoding.\n") );
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1368:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1368:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1369:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Assuming UTF-16BE encoding.\n") );
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1369:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Assuming UTF-16BE encoding.\n") );
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1373:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ((InF = read_bom(InF, &ipFlag->bomtype)) == NULL) {
       ^
/datasets/dos2unix/common.c:1373:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:1373:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:1373:8: warning: Although the value stored to 'InF' is used in the enclosing expression, the value is never actually read from 'InF' [clang-analyzer-deadcode.DeadStores]
  if ((InF = read_bom(InF, &ipFlag->bomtype)) == NULL) {
       ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1373:8: note: Although the value stored to 'InF' is used in the enclosing expression, the value is never actually read from 'InF'
  if ((InF = read_bom(InF, &ipFlag->bomtype)) == NULL) {
       ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1377:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (ipFlag->verbose > 1)
                          ^
                           {
/datasets/dos2unix/common.c:1390:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((ipFlag->bomtype == FILE_MBS) && (ipFlag->ConvMode == CONVMODE_UTF16LE))
                                                                              ^
                                                                               {
/datasets/dos2unix/common.c:1392:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((ipFlag->bomtype == FILE_MBS) && (ipFlag->ConvMode == CONVMODE_UTF16BE))
                                                                              ^
                                                                               {
/datasets/dos2unix/common.c:1400:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      ipFlag->status |= WCHAR_T_TOO_SMALL ;
      ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1401:26: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
      if (!ipFlag->error) ipFlag->error = 1;
                         ^
                          {
/datasets/dos2unix/common.c:1408:14: warning: function is not thread safe [concurrency-mt-unsafe]
  if (strcmp(nl_langinfo(CODESET), "GB18030") == 0)
             ^
/datasets/dos2unix/common.c:1408:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (strcmp(nl_langinfo(CODESET), "GB18030") == 0)
                                                   ^
                                                    {
/datasets/dos2unix/common.c:1413:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((ipFlag->add_bom) || ((ipFlag->keep_bom) && (ipFlag->bomtype > 0)))
                                                                         ^
                                                                          {
/datasets/dos2unix/common.c:1414:52: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
    if (write_bom(TempF, ipFlag, progname) == NULL) return -1;
                                                   ^
                                                    {
/datasets/dos2unix/common.c:1423:5: warning: function 'ConvertNewFile' has cognitive complexity of 119 (threshold 25) [readability-function-cognitive-complexity]
int ConvertNewFile(char *ipInFN, char *ipOutFN, CFlag *ipFlag, const char *progname,
    ^
/datasets/dos2unix/common.c:1451:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (symbolic_link(ipOutFN) && !ipFlag->Follow) {
  ^
/datasets/dos2unix/common.c:1451:30: note: +1
  if (symbolic_link(ipOutFN) && !ipFlag->Follow) {
                             ^
/datasets/dos2unix/common.c:1458:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (regfile(ipInFN, 1, ipFlag, progname)) {
  ^
/datasets/dos2unix/common.c:1465:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (symbolic_link(ipInFN) && regfile_target(ipInFN, ipFlag,progname)) {
  ^
/datasets/dos2unix/common.c:1465:29: note: +1
  if (symbolic_link(ipInFN) && regfile_target(ipInFN, ipFlag,progname)) {
                            ^
/datasets/dos2unix/common.c:1472:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (symbolic_link(ipOutFN) && (ipFlag->Follow == SYMLINK_FOLLOW) && regfile_target(ipOutFN, ipFlag,progname)) {
  ^
/datasets/dos2unix/common.c:1472:68: note: +1
  if (symbolic_link(ipOutFN) && (ipFlag->Follow == SYMLINK_FOLLOW) && regfile_target(ipOutFN, ipFlag,progname)) {
                                                                   ^
/datasets/dos2unix/common.c:1475:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (!ipFlag->error) ipFlag->error = 1;
    ^
/datasets/dos2unix/common.c:1484:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (stat(ipInFN, &StatBuf)) {
  ^
/datasets/dos2unix/common.c:1486:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->verbose) {
    ^
/datasets/dos2unix/common.c:1497:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (InF == NULL) {
  ^
/datasets/dos2unix/common.c:1498:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->verbose) {
    ^
/datasets/dos2unix/common.c:1508:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if((TempF = MakeTempFileFrom(ipOutFN, &TempPath))==NULL) {
  ^
/datasets/dos2unix/common.c:1509:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->verbose) {
    ^
/datasets/dos2unix/common.c:1510:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (errno) {
      ^
/datasets/dos2unix/common.c:1515:9: note: +1, nesting level increased to 3
      } else {
        ^
/datasets/dos2unix/common.c:1517:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (!ipFlag->error) ipFlag->error = 1;
        ^
/datasets/dos2unix/common.c:1530:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (!RetVal)
  ^
/datasets/dos2unix/common.c:1531:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (check_unicode(InF, TempF, ipFlag, ipInFN, progname))
    ^
/datasets/dos2unix/common.c:1536:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if ((ipFlag->bomtype == FILE_UTF16LE) || (ipFlag->bomtype == FILE_UTF16BE)) {
  ^
/datasets/dos2unix/common.c:1536:41: note: +1
  if ((ipFlag->bomtype == FILE_UTF16LE) || (ipFlag->bomtype == FILE_UTF16BE)) {
                                        ^
/datasets/dos2unix/common.c:1537:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if ((!RetVal) && (ConvertW(InF, TempF, ipFlag, progname)))
    ^
/datasets/dos2unix/common.c:1537:19: note: +1
    if ((!RetVal) && (ConvertW(InF, TempF, ipFlag, progname)))
                  ^
/datasets/dos2unix/common.c:1539:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->status & UNICODE_CONVERSION_ERROR) {
    ^
/datasets/dos2unix/common.c:1540:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (!ipFlag->error) ipFlag->error = 1;
      ^
/datasets/dos2unix/common.c:1543:5: note: +1, nesting level increased to 1
  } else {
    ^
/datasets/dos2unix/common.c:1544:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if ((!RetVal) && (Convert(InF, TempF, ipFlag, progname)))
    ^
/datasets/dos2unix/common.c:1544:19: note: +1
    if ((!RetVal) && (Convert(InF, TempF, ipFlag, progname)))
                  ^
/datasets/dos2unix/common.c:1553:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (d2u_fclose(InF, ipInFN, ipFlag, "r", progname) == EOF)
  ^
/datasets/dos2unix/common.c:1557:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (TempF) {
  ^
/datasets/dos2unix/common.c:1558:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (d2u_fclose(TempF, TempPath, ipFlag, "w", progname) == EOF)
    ^
/datasets/dos2unix/common.c:1563:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (!RetVal)
  ^
/datasets/dos2unix/common.c:1565:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->NewFile == 0) { /* old-file mode */
    ^
/datasets/dos2unix/common.c:1567:7: note: +1, nesting level increased to 2
    } else {
      ^
/datasets/dos2unix/common.c:1573:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (RetVal) {
    ^
/datasets/dos2unix/common.c:1574:8: note: +3, including nesting penalty of 2, nesting level increased to 3
       if (ipFlag->verbose) {
       ^
/datasets/dos2unix/common.c:1586:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (!RetVal && (ipFlag->NewFile == 0)) { /* old-file mode */
  ^
/datasets/dos2unix/common.c:1586:15: note: +1
  if (!RetVal && (ipFlag->NewFile == 0)) { /* old-file mode */
              ^
/datasets/dos2unix/common.c:1590:6: note: +2, including nesting penalty of 1, nesting level increased to 2
     if (chown(TempPath, StatBuf.st_uid, StatBuf.st_gid)) {
     ^
/datasets/dos2unix/common.c:1591:9: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (ipFlag->AllowChown) {
        ^
/datasets/dos2unix/common.c:1592:11: note: +4, including nesting penalty of 3, nesting level increased to 4
          if (ipFlag->verbose) {
          ^
/datasets/dos2unix/common.c:1601:11: note: +4, including nesting penalty of 3, nesting level increased to 4
          if (RetVal) {
          ^
/datasets/dos2unix/common.c:1602:14: note: +5, including nesting penalty of 4, nesting level increased to 5
             if (ipFlag->verbose) {
             ^
/datasets/dos2unix/common.c:1611:11: note: +1, nesting level increased to 3
        } else {
          ^
/datasets/dos2unix/common.c:1612:11: note: +4, including nesting penalty of 3, nesting level increased to 4
          if (ipFlag->verbose) {
          ^
/datasets/dos2unix/common.c:1625:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if ((!RetVal) && (ipFlag->KeepDate))
  ^
/datasets/dos2unix/common.c:1625:17: note: +1
  if ((!RetVal) && (ipFlag->KeepDate))
                ^
/datasets/dos2unix/common.c:1630:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (utime(TempPath, &UTimeBuf) == -1) {
    ^
/datasets/dos2unix/common.c:1631:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (ipFlag->verbose) {
      ^
/datasets/dos2unix/common.c:1642:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (RetVal && (TempPath != NULL)) {
  ^
/datasets/dos2unix/common.c:1642:14: note: +1
  if (RetVal && (TempPath != NULL)) {
             ^
/datasets/dos2unix/common.c:1643:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (d2u_unlink(TempPath) && (errno != ENOENT)) {
    ^
/datasets/dos2unix/common.c:1643:30: note: +1
    if (d2u_unlink(TempPath) && (errno != ENOENT)) {
                             ^
/datasets/dos2unix/common.c:1644:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (ipFlag->verbose) {
      ^
/datasets/dos2unix/common.c:1657:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (symbolic_link(ipOutFN) && !RetVal) {
  ^
/datasets/dos2unix/common.c:1657:30: note: +1
  if (symbolic_link(ipOutFN) && !RetVal) {
                             ^
/datasets/dos2unix/common.c:1659:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->Follow == SYMLINK_FOLLOW) {
    ^
/datasets/dos2unix/common.c:1661:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (ResolveSymlinkResult < 0) {
      ^
/datasets/dos2unix/common.c:1662:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (ipFlag->verbose) {
        ^
/datasets/dos2unix/common.c:1673:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (!RetVal) {
  ^
/datasets/dos2unix/common.c:1686:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (d2u_rename(TempPath, TargetFN) != 0) {
    ^
/datasets/dos2unix/common.c:1687:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (ipFlag->verbose) {
      ^
/datasets/dos2unix/common.c:1694:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (ResolveSymlinkResult > 0)
        ^
/datasets/dos2unix/common.c:1702:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ResolveSymlinkResult > 0)
    ^
/datasets/dos2unix/common.c:1433:9: warning: variable 'TempPath' is not initialized [cppcoreguidelines-init-variables]
  char *TempPath;
        ^
                 = NULL
/datasets/dos2unix/common.c:1434:15: warning: variable 'errstr' is not initialized [cppcoreguidelines-init-variables]
  const char *errstr;
              ^
                     = NULL
/datasets/dos2unix/common.c:1443:10: warning: variable 'mask' is not initialized [cppcoreguidelines-init-variables]
  mode_t mask;
         ^
              = 0
/datasets/dos2unix/common.c:1452:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    ipFlag->status |= OUTPUTFILE_SYMLINK ;
    ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1459:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    ipFlag->status |= NO_REGFILE ;
    ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1466:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    ipFlag->status |= INPUT_TARGET_NO_REGFILE ;
    ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1473:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    ipFlag->status |= OUTPUT_TARGET_NO_REGFILE ;
    ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1475:24: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
    if (!ipFlag->error) ipFlag->error = 1;
                       ^
                        {
/datasets/dos2unix/common.c:1488:16: warning: function is not thread safe [concurrency-mt-unsafe]
      errstr = strerror(errno);
               ^
/datasets/dos2unix/common.c:1489:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, ipInFN);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1489:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, ipInFN);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1490:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1490:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1500:16: warning: function is not thread safe [concurrency-mt-unsafe]
      errstr = strerror(errno);
               ^
/datasets/dos2unix/common.c:1501:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, ipInFN);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1501:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, ipInFN);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1502:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1502:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1508:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if((TempF = MakeTempFileFrom(ipOutFN, &TempPath))==NULL) {
      ^
/datasets/dos2unix/common.c:1508:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:1508:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:1512:18: warning: function is not thread safe [concurrency-mt-unsafe]
        errstr = strerror(errno);
                 ^
/datasets/dos2unix/common.c:1513:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1513:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1514:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_ANSI_FPRINTF(stderr, _("Failed to open temporary output file: %s\n"), errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1514:9: note: cast the expression to void to silence this warning
        D2U_ANSI_FPRINTF(stderr, _("Failed to open temporary output file: %s\n"), errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1517:28: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ipFlag->error) ipFlag->error = 1;
                           ^
                            {
/datasets/dos2unix/common.c:1530:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!RetVal)
              ^
               {
/datasets/dos2unix/common.c:1531:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (check_unicode(InF, TempF, ipFlag, ipInFN, progname))
                                                            ^
                                                             {
/datasets/dos2unix/common.c:1537:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if ((!RetVal) && (ConvertW(InF, TempF, ipFlag, progname)))
                                                              ^
                                                               {
/datasets/dos2unix/common.c:1539:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->status & UNICODE_CONVERSION_ERROR) {
        ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1540:26: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
      if (!ipFlag->error) ipFlag->error = 1;
                         ^
                          {
/datasets/dos2unix/common.c:1544:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if ((!RetVal) && (Convert(InF, TempF, ipFlag, progname)))
                                                             ^
                                                              {
/datasets/dos2unix/common.c:1553:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (d2u_fclose(InF, ipInFN, ipFlag, "r", progname) == EOF)
                                                            ^
                                                             {
/datasets/dos2unix/common.c:1558:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (d2u_fclose(TempF, TempPath, ipFlag, "w", progname) == EOF)
                                                                  ^
                                                                   {
/datasets/dos2unix/common.c:1576:19: warning: function is not thread safe [concurrency-mt-unsafe]
         errstr = strerror(errno);
                  ^
/datasets/dos2unix/common.c:1577:10: warning: the value returned by this function should be used [cert-err33-c]
         D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1577:10: note: cast the expression to void to silence this warning
         D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1578:10: warning: the value returned by this function should be used [cert-err33-c]
         D2U_UTF8_FPRINTF(stderr, _("Failed to change the permissions of temporary output file %s:"), TempPath);
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1578:10: note: cast the expression to void to silence this warning
         D2U_UTF8_FPRINTF(stderr, _("Failed to change the permissions of temporary output file %s:"), TempPath);
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1579:10: warning: the value returned by this function should be used [cert-err33-c]
         D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
         ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1579:10: note: cast the expression to void to silence this warning
         D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
         ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1593:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1593:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1594:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, _("The user and/or group ownership of file %s is not preserved.\n"), ipOutFN);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1594:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, _("The user and/or group ownership of file %s is not preserved.\n"), ipOutFN);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1604:25: warning: function is not thread safe [concurrency-mt-unsafe]
               errstr = strerror(errno);
                        ^
/datasets/dos2unix/common.c:1605:16: warning: the value returned by this function should be used [cert-err33-c]
               D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
               ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1605:16: note: cast the expression to void to silence this warning
               D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
               ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1606:16: warning: the value returned by this function should be used [cert-err33-c]
               D2U_UTF8_FPRINTF(stderr, _("Failed to change the permissions of temporary output file %s:"), TempPath);
               ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1606:16: note: cast the expression to void to silence this warning
               D2U_UTF8_FPRINTF(stderr, _("Failed to change the permissions of temporary output file %s:"), TempPath);
               ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1607:16: warning: the value returned by this function should be used [cert-err33-c]
               D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
               ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1607:16: note: cast the expression to void to silence this warning
               D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
               ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1614:22: warning: function is not thread safe [concurrency-mt-unsafe]
            errstr = strerror(errno);
                     ^
/datasets/dos2unix/common.c:1615:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1615:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1616:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, _("Failed to change the owner and group of temporary output file %s:"), TempPath);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1616:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, _("Failed to change the owner and group of temporary output file %s:"), TempPath);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1617:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
            ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1617:13: note: cast the expression to void to silence this warning
            D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
            ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1633:18: warning: function is not thread safe [concurrency-mt-unsafe]
        errstr = strerror(errno);
                 ^
/datasets/dos2unix/common.c:1634:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, TempPath);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1634:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, TempPath);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1635:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1635:9: note: cast the expression to void to silence this warning
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1646:18: warning: function is not thread safe [concurrency-mt-unsafe]
        errstr = strerror(errno);
                 ^
/datasets/dos2unix/common.c:1647:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, TempPath);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1647:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, "%s: %s:", progname, TempPath);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1648:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1648:9: note: cast the expression to void to silence this warning
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1663:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1663:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1664:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, _("problems resolving symbolic link '%s'\n"), ipOutFN);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1664:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, _("problems resolving symbolic link '%s'\n"), ipOutFN);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1665:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, _("          output file remains in '%s'\n"), TempPath);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1665:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, _("          output file remains in '%s'\n"), TempPath);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1689:18: warning: function is not thread safe [concurrency-mt-unsafe]
        errstr = strerror(errno);
                 ^
/datasets/dos2unix/common.c:1690:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1690:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1691:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, _("problems renaming '%s' to '%s':"), TempPath, TargetFN);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1691:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, _("problems renaming '%s' to '%s':"), TempPath, TargetFN);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1692:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1692:9: note: cast the expression to void to silence this warning
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1694:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ResolveSymlinkResult > 0)
                                     ^
                                      {
/datasets/dos2unix/common.c:1695:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, _("          which is the target of symbolic link '%s'\n"), ipOutFN);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1695:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, _("          which is the target of symbolic link '%s'\n"), ipOutFN);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1697:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, _("          output file remains in '%s'\n"), TempPath);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1697:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, _("          output file remains in '%s'\n"), TempPath);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1702:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ResolveSymlinkResult > 0)
                                 ^
                                  {
/datasets/dos2unix/common.c:1740:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (check_unicode(stdin, stdout, ipFlag, "stdin", progname))
                                                                ^
                                                                 {
/datasets/dos2unix/common.c:1746:7: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
    } else {
      ^~~~~~
/datasets/dos2unix/common.c:1756:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (pFlag->status & BINARY_FILE) {
        ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1757:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1757:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1758:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Skipping binary file %s\n"), "stdin");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1758:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Skipping binary file %s\n"), "stdin");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1759:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    } else if (pFlag->status & WRONG_CODEPAGE) {
               ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1760:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1760:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1761:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("code page %d is not supported.\n"), pFlag->ConvMode);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1761:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("code page %d is not supported.\n"), pFlag->ConvMode);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1763:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    } else if (pFlag->status & WCHAR_T_TOO_SMALL) {
               ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1764:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1764:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1765:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, the size of wchar_t is %d bytes.\n"), "stdin", (int)sizeof(wchar_t));
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1765:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, the size of wchar_t is %d bytes.\n"), "stdin", (int)sizeof(wchar_t));
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1766:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    } else if (pFlag->status & UNICODE_CONVERSION_ERROR) {
               ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1767:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1767:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1768:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, an UTF-16 conversion error occurred on line %u.\n"), "stdin", pFlag->line_nr);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1768:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, an UTF-16 conversion error occurred on line %u.\n"), "stdin", pFlag->line_nr);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1782:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (pFlag->bomtype == FILE_UTF16LE)
                                     ^
                                      {
/datasets/dos2unix/common.c:1784:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (pFlag->bomtype == FILE_UTF16BE)
                                     ^
                                      {
/datasets/dos2unix/common.c:1791:27: warning: function is not thread safe [concurrency-mt-unsafe]
    d2u_strncpy(outformat,nl_langinfo(CODESET),lout);
                          ^
/datasets/dos2unix/common.c:1803:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (pFlag->bomtype == FILE_UTF16LE)
                                         ^
                                          {
/datasets/dos2unix/common.c:1805:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (pFlag->bomtype == FILE_UTF16BE)
                                         ^
                                          {
/datasets/dos2unix/common.c:1813:6: warning: function 'print_messages' has cognitive complexity of 86 (threshold 25) [readability-function-cognitive-complexity]
void print_messages(const CFlag *pFlag, const char *infile, const char *outfile, const char *progname, const int conversion_error)
     ^
/datasets/dos2unix/common.c:1836:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (pFlag->status & NO_REGFILE) {
  ^
/datasets/dos2unix/common.c:1839:10: note: +1, nesting level increased to 1
  } else if (pFlag->status & OUTPUTFILE_SYMLINK) {
         ^
/datasets/dos2unix/common.c:1841:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (outfile)
    ^
/datasets/dos2unix/common.c:1843:5: note: +1, nesting level increased to 2
    else
    ^
/datasets/dos2unix/common.c:1845:10: note: +1, nesting level increased to 1
  } else if (pFlag->status & INPUT_TARGET_NO_REGFILE) {
         ^
/datasets/dos2unix/common.c:1848:10: note: +1, nesting level increased to 1
  } else if ((pFlag->status & OUTPUT_TARGET_NO_REGFILE) && outfile) {
         ^
/datasets/dos2unix/common.c:1848:57: note: +1
  } else if ((pFlag->status & OUTPUT_TARGET_NO_REGFILE) && outfile) {
                                                        ^
/datasets/dos2unix/common.c:1851:10: note: +1, nesting level increased to 1
  } else if (pFlag->status & BINARY_FILE) {
         ^
/datasets/dos2unix/common.c:1854:10: note: +1, nesting level increased to 1
  } else if (pFlag->status & WRONG_CODEPAGE) {
         ^
/datasets/dos2unix/common.c:1858:10: note: +1, nesting level increased to 1
  } else if (pFlag->status & WCHAR_T_TOO_SMALL) {
         ^
/datasets/dos2unix/common.c:1861:10: note: +1, nesting level increased to 1
  } else if (pFlag->status & UNICODE_CONVERSION_ERROR) {
         ^
/datasets/dos2unix/common.c:1869:5: note: +1, nesting level increased to 1
  } else {
    ^
/datasets/dos2unix/common.c:1870:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (!conversion_error) {
    ^
/datasets/dos2unix/common.c:1872:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (informat[0] == '\0') {
      ^
/datasets/dos2unix/common.c:1873:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (is_dos2unix(progname)) {
        ^
/datasets/dos2unix/common.c:1874:11: note: +5, including nesting penalty of 4, nesting level increased to 5
          if (outfile)
          ^
/datasets/dos2unix/common.c:1876:11: note: +1, nesting level increased to 5
          else
          ^
/datasets/dos2unix/common.c:1878:11: note: +1, nesting level increased to 4
        } else {
          ^
/datasets/dos2unix/common.c:1879:11: note: +5, including nesting penalty of 4, nesting level increased to 5
          if (pFlag->FromToMode == FROMTO_UNIX2MAC) {
          ^
/datasets/dos2unix/common.c:1880:13: note: +6, including nesting penalty of 5, nesting level increased to 6
            if (outfile)
            ^
/datasets/dos2unix/common.c:1882:13: note: +1, nesting level increased to 6
            else
            ^
/datasets/dos2unix/common.c:1884:13: note: +1, nesting level increased to 5
          } else {
            ^
/datasets/dos2unix/common.c:1885:13: note: +6, including nesting penalty of 5, nesting level increased to 6
            if (outfile)
            ^
/datasets/dos2unix/common.c:1887:13: note: +1, nesting level increased to 6
            else
            ^
/datasets/dos2unix/common.c:1891:9: note: +1, nesting level increased to 3
      } else {
        ^
/datasets/dos2unix/common.c:1892:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (is_dos2unix(progname)) {
        ^
/datasets/dos2unix/common.c:1893:11: note: +5, including nesting penalty of 4, nesting level increased to 5
          if (outfile)
          ^
/datasets/dos2unix/common.c:1901:11: note: +1, nesting level increased to 5
          else
          ^
/datasets/dos2unix/common.c:1908:11: note: +1, nesting level increased to 4
        } else {
          ^
/datasets/dos2unix/common.c:1909:11: note: +5, including nesting penalty of 4, nesting level increased to 5
          if (pFlag->FromToMode == FROMTO_UNIX2MAC) {
          ^
/datasets/dos2unix/common.c:1910:13: note: +6, including nesting penalty of 5, nesting level increased to 6
            if (outfile)
            ^
/datasets/dos2unix/common.c:1912:13: note: +1, nesting level increased to 6
            else
            ^
/datasets/dos2unix/common.c:1914:13: note: +1, nesting level increased to 5
          } else {
            ^
/datasets/dos2unix/common.c:1915:13: note: +6, including nesting penalty of 5, nesting level increased to 6
            if (outfile)
            ^
/datasets/dos2unix/common.c:1917:13: note: +1, nesting level increased to 6
            else
            ^
/datasets/dos2unix/common.c:1922:7: note: +1, nesting level increased to 2
    } else {
      ^
/datasets/dos2unix/common.c:1924:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (outfile)
      ^
/datasets/dos2unix/common.c:1926:7: note: +1, nesting level increased to 3
      else
      ^
/datasets/dos2unix/common.c:1813:61: warning: 2 adjacent parameters of 'print_messages' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void print_messages(const CFlag *pFlag, const char *infile, const char *outfile, const char *progname, const int conversion_error)
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1813:73: note: the first parameter in the range is 'outfile'
void print_messages(const CFlag *pFlag, const char *infile, const char *outfile, const char *progname, const int conversion_error)
                                                                        ^~~~~~~
/datasets/dos2unix/common.c:1813:94: note: the last parameter in the range is 'progname'
void print_messages(const CFlag *pFlag, const char *infile, const char *outfile, const char *progname, const int conversion_error)
                                                                                             ^~~~~~~~
/datasets/dos2unix/common.c:1815:17: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  char informat[32];
                ^
/datasets/dos2unix/common.c:1816:18: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  char outformat[64];
                 ^
/datasets/dos2unix/common.c:1836:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (pFlag->status & NO_REGFILE) {
      ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1837:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1837:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1838:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("Skipping %s, not a regular file.\n"), infile);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1838:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("Skipping %s, not a regular file.\n"), infile);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1839:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if (pFlag->status & OUTPUTFILE_SYMLINK) {
             ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1840:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1840:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1841:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (outfile)
                ^
                 {
/datasets/dos2unix/common.c:1842:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Skipping %s, output file %s is a symbolic link.\n"), infile, outfile);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1842:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Skipping %s, output file %s is a symbolic link.\n"), infile, outfile);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1843:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    else
        ^
         {
/datasets/dos2unix/common.c:1844:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Skipping symbolic link %s.\n"), infile);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1844:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Skipping symbolic link %s.\n"), infile);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1845:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if (pFlag->status & INPUT_TARGET_NO_REGFILE) {
             ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1846:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1846:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1847:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("Skipping symbolic link %s, target is not a regular file.\n"), infile);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1847:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("Skipping symbolic link %s, target is not a regular file.\n"), infile);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1848:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if ((pFlag->status & OUTPUT_TARGET_NO_REGFILE) && outfile) {
              ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1849:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1849:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1850:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("Skipping %s, target of symbolic link %s is not a regular file.\n"), infile, outfile);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1850:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("Skipping %s, target of symbolic link %s is not a regular file.\n"), infile, outfile);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1851:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if (pFlag->status & BINARY_FILE) {
             ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1852:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1852:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1853:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("Skipping binary file %s\n"), infile);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1853:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("Skipping binary file %s\n"), infile);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1854:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if (pFlag->status & WRONG_CODEPAGE) {
             ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1855:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1855:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1856:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("code page %d is not supported.\n"), pFlag->ConvMode);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1856:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("code page %d is not supported.\n"), pFlag->ConvMode);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1858:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if (pFlag->status & WCHAR_T_TOO_SMALL) {
             ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1859:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1859:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1860:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, the size of wchar_t is %d bytes.\n"), infile, (int)sizeof(wchar_t));
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1860:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, the size of wchar_t is %d bytes.\n"), infile, (int)sizeof(wchar_t));
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1861:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if (pFlag->status & UNICODE_CONVERSION_ERROR) {
             ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1862:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1862:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1863:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, an UTF-16 conversion error occurred on line %u.\n"), infile, pFlag->line_nr);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1863:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, an UTF-16 conversion error occurred on line %u.\n"), infile, pFlag->line_nr);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1871:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1871:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1874:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (outfile)
                      ^
                       {
/datasets/dos2unix/common.c:1875:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, _("converting file %s to file %s in Unix format...\n"), infile, outfile);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1875:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, _("converting file %s to file %s in Unix format...\n"), infile, outfile);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1876:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          else
              ^
               {
/datasets/dos2unix/common.c:1877:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, _("converting file %s to Unix format...\n"), infile);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1877:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, _("converting file %s to Unix format...\n"), infile);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1880:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (outfile)
                        ^
                         {
/datasets/dos2unix/common.c:1881:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("converting file %s to file %s in Mac format...\n"), infile, outfile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1881:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("converting file %s to file %s in Mac format...\n"), infile, outfile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1882:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            else
                ^
                 {
/datasets/dos2unix/common.c:1883:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("converting file %s to Mac format...\n"), infile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1883:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("converting file %s to Mac format...\n"), infile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1885:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (outfile)
                        ^
                         {
/datasets/dos2unix/common.c:1886:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("converting file %s to file %s in DOS format...\n"), infile, outfile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1886:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("converting file %s to file %s in DOS format...\n"), infile, outfile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1887:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            else
                ^
                 {
/datasets/dos2unix/common.c:1888:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("converting file %s to DOS format...\n"), infile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1888:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("converting file %s to DOS format...\n"), infile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1893:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (outfile)
                      ^
                       {
/datasets/dos2unix/common.c:1900:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s file %s in Unix format...\n"), informat, infile, outformat, outfile);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1900:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s file %s in Unix format...\n"), informat, infile, outformat, outfile);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1901:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          else
              ^
               {
/datasets/dos2unix/common.c:1907:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s Unix format...\n"), informat, infile, outformat);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1907:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s Unix format...\n"), informat, infile, outformat);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1910:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (outfile)
                        ^
                         {
/datasets/dos2unix/common.c:1911:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s file %s in Mac format...\n"), informat, infile, outformat, outfile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1911:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s file %s in Mac format...\n"), informat, infile, outformat, outfile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1912:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            else
                ^
                 {
/datasets/dos2unix/common.c:1913:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s Mac format...\n"), informat, infile, outformat);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1913:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s Mac format...\n"), informat, infile, outformat);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1915:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (outfile)
                        ^
                         {
/datasets/dos2unix/common.c:1916:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s file %s in DOS format...\n"), informat, infile, outformat, outfile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1916:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s file %s in DOS format...\n"), informat, infile, outformat, outfile);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1917:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            else
                ^
                 {
/datasets/dos2unix/common.c:1918:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s DOS format...\n"), informat, infile, outformat);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1918:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("converting %s file %s to %s DOS format...\n"), informat, infile, outformat);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1923:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1923:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1924:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (outfile)
                  ^
                   {
/datasets/dos2unix/common.c:1925:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, _("problems converting file %s to file %s\n"), infile, outfile);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1925:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, _("problems converting file %s to file %s\n"), infile, outfile);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1926:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else
          ^
           {
/datasets/dos2unix/common.c:1927:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, _("problems converting file %s\n"), infile);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1927:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, _("problems converting file %s\n"), infile);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1932:46: warning: 2 adjacent parameters of 'print_messages_info' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void print_messages_info(const CFlag *pFlag, const char *infile, const char *progname)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1932:58: note: the first parameter in the range is 'infile'
void print_messages_info(const CFlag *pFlag, const char *infile, const char *progname)
                                                         ^~~~~~
/datasets/dos2unix/common.c:1932:78: note: the last parameter in the range is 'progname'
void print_messages_info(const CFlag *pFlag, const char *infile, const char *progname)
                                                                             ^~~~~~~~
/datasets/dos2unix/common.c:1934:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (pFlag->status & NO_REGFILE) {
      ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1936:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1936:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1937:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Skipping %s, not a regular file.\n"), infile);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1937:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Skipping %s, not a regular file.\n"), infile);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1939:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if (pFlag->status & INPUT_TARGET_NO_REGFILE) {
             ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1941:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1941:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1942:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Skipping symbolic link %s, target is not a regular file.\n"), infile);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1942:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Skipping symbolic link %s, target is not a regular file.\n"), infile);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1945:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  } else if (pFlag->status & WCHAR_T_TOO_SMALL) {
             ^~~~~~~~~~~~~
/datasets/dos2unix/common.c:1947:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1947:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1948:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, the size of wchar_t is %d bytes.\n"), infile, (int)sizeof(wchar_t));
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1948:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Skipping UTF-16 file %s, the size of wchar_t is %d bytes.\n"), infile, (int)sizeof(wchar_t));
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1954:6: warning: function 'printInfo' has cognitive complexity of 52 (threshold 25) [readability-function-cognitive-complexity]
void printInfo(CFlag *ipFlag, const char *filename, int bomtype, unsigned int lb_dos, unsigned int lb_unix, unsigned int lb_mac)
     ^
/datasets/dos2unix/common.c:1958:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (ipFlag->file_info & INFO_CONVERT) {
  ^
/datasets/dos2unix/common.c:1959:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if ((ipFlag->FromToMode == FROMTO_DOS2UNIX) && (lb_dos == 0))
    ^
/datasets/dos2unix/common.c:1959:49: note: +1
    if ((ipFlag->FromToMode == FROMTO_DOS2UNIX) && (lb_dos == 0))
                                                ^
/datasets/dos2unix/common.c:1961:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (((ipFlag->FromToMode == FROMTO_UNIX2DOS)||(ipFlag->FromToMode == FROMTO_UNIX2MAC)) && (lb_unix == 0))
    ^
/datasets/dos2unix/common.c:1961:92: note: +1
    if (((ipFlag->FromToMode == FROMTO_UNIX2DOS)||(ipFlag->FromToMode == FROMTO_UNIX2MAC)) && (lb_unix == 0))
                                                                                           ^
/datasets/dos2unix/common.c:1961:49: note: +1
    if (((ipFlag->FromToMode == FROMTO_UNIX2DOS)||(ipFlag->FromToMode == FROMTO_UNIX2MAC)) && (lb_unix == 0))
                                                ^
/datasets/dos2unix/common.c:1963:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if ((ipFlag->FromToMode == FROMTO_MAC2UNIX) && (lb_mac == 0))
    ^
/datasets/dos2unix/common.c:1963:49: note: +1
    if ((ipFlag->FromToMode == FROMTO_MAC2UNIX) && (lb_mac == 0))
                                                ^
/datasets/dos2unix/common.c:1965:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if ((ipFlag->Force == 0) && (ipFlag->status & BINARY_FILE))
    ^
/datasets/dos2unix/common.c:1965:30: note: +1
    if ((ipFlag->Force == 0) && (ipFlag->status & BINARY_FILE))
                             ^
/datasets/dos2unix/common.c:1969:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if ((ipFlag->file_info & INFO_HEADER) && (! header_done)) {
  ^
/datasets/dos2unix/common.c:1969:41: note: +1
  if ((ipFlag->file_info & INFO_HEADER) && (! header_done)) {
                                        ^
/datasets/dos2unix/common.c:1970:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->file_info & INFO_DOS)
    ^
/datasets/dos2unix/common.c:1972:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->file_info & INFO_UNIX)
    ^
/datasets/dos2unix/common.c:1974:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->file_info & INFO_MAC)
    ^
/datasets/dos2unix/common.c:1976:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->file_info & INFO_BOM)
    ^
/datasets/dos2unix/common.c:1978:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->file_info & INFO_TEXT)
    ^
/datasets/dos2unix/common.c:1980:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (*filename != '\0') {
    ^
/datasets/dos2unix/common.c:1981:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (ipFlag->file_info & INFO_DEFAULT)
      ^
/datasets/dos2unix/common.c:1985:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->file_info & INFO_PRINT0)
    ^
/datasets/dos2unix/common.c:1987:5: note: +1, nesting level increased to 2
    else
    ^
/datasets/dos2unix/common.c:1992:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (ipFlag->file_info & INFO_DOS)
  ^
/datasets/dos2unix/common.c:1994:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (ipFlag->file_info & INFO_UNIX)
  ^
/datasets/dos2unix/common.c:1996:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (ipFlag->file_info & INFO_MAC)
  ^
/datasets/dos2unix/common.c:1998:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (ipFlag->file_info & INFO_BOM)
  ^
/datasets/dos2unix/common.c:2000:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (ipFlag->file_info & INFO_TEXT) {
  ^
/datasets/dos2unix/common.c:2001:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->status & BINARY_FILE)
    ^
/datasets/dos2unix/common.c:2003:5: note: +1, nesting level increased to 2
    else
    ^
/datasets/dos2unix/common.c:2006:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (*filename != '\0') {
  ^
/datasets/dos2unix/common.c:2008:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if ((ipFlag->file_info & INFO_NOPATH) && (((ptr=strrchr(filename,'/')) != NULL) || ((ptr=strrchr(filename,'\\')) != NULL)) )
    ^
/datasets/dos2unix/common.c:2008:43: note: +1
    if ((ipFlag->file_info & INFO_NOPATH) && (((ptr=strrchr(filename,'/')) != NULL) || ((ptr=strrchr(filename,'\\')) != NULL)) )
                                          ^
/datasets/dos2unix/common.c:2008:85: note: +1
    if ((ipFlag->file_info & INFO_NOPATH) && (((ptr=strrchr(filename,'/')) != NULL) || ((ptr=strrchr(filename,'\\')) != NULL)) )
                                                                                    ^
/datasets/dos2unix/common.c:2010:5: note: +1, nesting level increased to 2
    else
    ^
/datasets/dos2unix/common.c:2012:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (ipFlag->file_info & INFO_DEFAULT)
    ^
/datasets/dos2unix/common.c:2016:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (ipFlag->file_info & INFO_PRINT0)
  ^
/datasets/dos2unix/common.c:2018:3: note: +1, nesting level increased to 1
  else
  ^
/datasets/dos2unix/common.c:1954:53: warning: 4 adjacent parameters of 'printInfo' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void printInfo(CFlag *ipFlag, const char *filename, int bomtype, unsigned int lb_dos, unsigned int lb_unix, unsigned int lb_mac)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1954:57: note: the first parameter in the range is 'bomtype'
void printInfo(CFlag *ipFlag, const char *filename, int bomtype, unsigned int lb_dos, unsigned int lb_unix, unsigned int lb_mac)
                                                        ^~~~~~~
/datasets/dos2unix/common.c:1954:122: note: the last parameter in the range is 'lb_mac'
void printInfo(CFlag *ipFlag, const char *filename, int bomtype, unsigned int lb_dos, unsigned int lb_unix, unsigned int lb_mac)
                                                                                                                         ^~~~~~
/datasets/dos2unix/common.c:1954:66: note: 'int' and 'unsigned int' may be implicitly converted
void printInfo(CFlag *ipFlag, const char *filename, int bomtype, unsigned int lb_dos, unsigned int lb_unix, unsigned int lb_mac)
                                                                 ^
/datasets/dos2unix/common.c:1958:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (ipFlag->file_info & INFO_CONVERT) {
      ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1959:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if ((ipFlag->FromToMode == FROMTO_DOS2UNIX) && (lb_dos == 0))
                                                                 ^
                                                                  {
/datasets/dos2unix/common.c:1961:110: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (((ipFlag->FromToMode == FROMTO_UNIX2DOS)||(ipFlag->FromToMode == FROMTO_UNIX2MAC)) && (lb_unix == 0))
                                                                                                             ^
                                                                                                              {
/datasets/dos2unix/common.c:1963:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if ((ipFlag->FromToMode == FROMTO_MAC2UNIX) && (lb_mac == 0))
                                                                 ^
                                                                  {
/datasets/dos2unix/common.c:1965:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if ((ipFlag->Force == 0) && (ipFlag->status & BINARY_FILE))
                                 ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1965:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if ((ipFlag->Force == 0) && (ipFlag->status & BINARY_FILE))
                                                               ^
                                                                {
/datasets/dos2unix/common.c:1969:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if ((ipFlag->file_info & INFO_HEADER) && (! header_done)) {
       ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1970:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->file_info & INFO_DOS)
        ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1970:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->file_info & INFO_DOS)
                                     ^
                                      {
/datasets/dos2unix/common.c:1971:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "     DOS");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1971:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "     DOS");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1972:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->file_info & INFO_UNIX)
        ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1972:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->file_info & INFO_UNIX)
                                      ^
                                       {
/datasets/dos2unix/common.c:1973:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "    UNIX");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1973:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "    UNIX");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1974:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->file_info & INFO_MAC)
        ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1974:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->file_info & INFO_MAC)
                                     ^
                                      {
/datasets/dos2unix/common.c:1975:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "     MAC");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1975:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "     MAC");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1976:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->file_info & INFO_BOM)
        ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1976:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->file_info & INFO_BOM)
                                     ^
                                      {
/datasets/dos2unix/common.c:1977:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  BOM     ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1977:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  BOM     ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1978:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->file_info & INFO_TEXT)
        ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1978:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->file_info & INFO_TEXT)
                                      ^
                                       {
/datasets/dos2unix/common.c:1979:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  TXTBIN");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1979:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  TXTBIN");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1981:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      if (ipFlag->file_info & INFO_DEFAULT)
          ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1981:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (ipFlag->file_info & INFO_DEFAULT)
                                           ^
                                            {
/datasets/dos2unix/common.c:1982:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stdout, "  ");
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1982:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stdout, "  ");
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1983:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "FILE");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1983:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "FILE");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1985:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->file_info & INFO_PRINT0)
        ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1985:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->file_info & INFO_PRINT0)
                                        ^
                                         {
/datasets/dos2unix/common.c:1987:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    else
        ^
         {
/datasets/dos2unix/common.c:1988:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "\n");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1988:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "\n");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1992:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (ipFlag->file_info & INFO_DOS)
      ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1992:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (ipFlag->file_info & INFO_DOS)
                                   ^
                                    {
/datasets/dos2unix/common.c:1993:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stdout, "  %6u", lb_dos);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1993:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stdout, "  %6u", lb_dos);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1994:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (ipFlag->file_info & INFO_UNIX)
      ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1994:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (ipFlag->file_info & INFO_UNIX)
                                    ^
                                     {
/datasets/dos2unix/common.c:1995:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stdout, "  %6u", lb_unix);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1995:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stdout, "  %6u", lb_unix);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1996:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (ipFlag->file_info & INFO_MAC)
      ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1996:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (ipFlag->file_info & INFO_MAC)
                                   ^
                                    {
/datasets/dos2unix/common.c:1997:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stdout, "  %6u", lb_mac);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1997:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stdout, "  %6u", lb_mac);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:1998:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (ipFlag->file_info & INFO_BOM)
      ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:1998:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (ipFlag->file_info & INFO_BOM)
                                   ^
                                    {
/datasets/dos2unix/common.c:2000:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (ipFlag->file_info & INFO_TEXT) {
      ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2001:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->status & BINARY_FILE)
        ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2001:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->status & BINARY_FILE)
                                     ^
                                      {
/datasets/dos2unix/common.c:2002:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  binary");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2002:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  binary");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2003:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    else
        ^
         {
/datasets/dos2unix/common.c:2004:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  text  ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2004:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  text  ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2007:17: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
    const char *ptr;
                ^
                    = NULL
/datasets/dos2unix/common.c:2008:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if ((ipFlag->file_info & INFO_NOPATH) && (((ptr=strrchr(filename,'/')) != NULL) || ((ptr=strrchr(filename,'\\')) != NULL)) )
         ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2008:49: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
    if ((ipFlag->file_info & INFO_NOPATH) && (((ptr=strrchr(filename,'/')) != NULL) || ((ptr=strrchr(filename,'\\')) != NULL)) )
                                                ^
/datasets/dos2unix/common.c:2008:49: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:2008:49: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:2008:90: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
    if ((ipFlag->file_info & INFO_NOPATH) && (((ptr=strrchr(filename,'/')) != NULL) || ((ptr=strrchr(filename,'\\')) != NULL)) )
                                                                                         ^
/datasets/dos2unix/common.c:2008:90: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:2008:90: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:2008:129: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if ((ipFlag->file_info & INFO_NOPATH) && (((ptr=strrchr(filename,'/')) != NULL) || ((ptr=strrchr(filename,'\\')) != NULL)) )
                                                                                                                                ^
                                                                                                                                 {
/datasets/dos2unix/common.c:2010:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    else
        ^
         {
/datasets/dos2unix/common.c:2012:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->file_info & INFO_DEFAULT)
        ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2012:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->file_info & INFO_DEFAULT)
                                         ^
                                          {
/datasets/dos2unix/common.c:2013:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stdout, "  ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2013:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stdout, "  ");
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2014:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stdout, "%s",ptr);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2014:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stdout, "%s",ptr);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2016:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
  if (ipFlag->file_info & INFO_PRINT0)
      ^~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2025:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
  wint_t TempChar;
  ^
/datasets/dos2unix/common.c:2016:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (ipFlag->file_info & INFO_PRINT0)
                                      ^
                                       {
/datasets/dos2unix/common.c:2018:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
       {
/datasets/dos2unix/common.c:2019:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stdout, "\n");
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2019:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stdout, "\n");
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2025:10: warning: variable 'TempChar' is not initialized [cppcoreguidelines-init-variables]
  wint_t TempChar;
         ^
                  = 0
/datasets/dos2unix/common.c:2033:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
  while ((TempChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {
  ^
/datasets/dos2unix/common.c:2033:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'TempChar' and may cause performance degradation [altera-id-dependent-backward-branch]
  while ((TempChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {
         ^
/datasets/dos2unix/common.c:2034:22: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
    if ( (TempChar < 32) &&
                     ^
/datasets/dos2unix/common.c:2035:22: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        (TempChar != 0x0a) &&  /* Not an LF */
                     ^
/datasets/dos2unix/common.c:2036:22: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        (TempChar != 0x0d) &&  /* Not a CR */
                     ^
/datasets/dos2unix/common.c:2037:22: warning: 0x09 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        (TempChar != 0x09) &&  /* Not a TAB */
                     ^
/datasets/dos2unix/common.c:2038:22: warning: 0x0c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        (TempChar != 0x0c)) {  /* Not a form feed */
                     ^
/datasets/dos2unix/common.c:2039:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      ipFlag->status |= BINARY_FILE ;
      ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2041:21: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
    if (TempChar != 0x0a) { /* Not an LF */
                    ^
/datasets/dos2unix/common.c:2043:23: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if (TempChar == 0x0d) /* CR */
                      ^
/datasets/dos2unix/common.c:2043:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (TempChar == 0x0d) /* CR */
                           ^
                            {
/datasets/dos2unix/common.c:2047:28: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ( PreviousChar == 0x0d ) { /* CR,LF pair. */
                           ^
/datasets/dos2unix/common.c:2060:28: warning: function is not thread safe [concurrency-mt-unsafe]
      const char *errstr = strerror(errno);
                           ^
/datasets/dos2unix/common.c:2075:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
  int TempChar;
  ^
/datasets/dos2unix/common.c:2061:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2061:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2062:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("can not read from input file %s:"), filename);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2062:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("can not read from input file %s:"), filename);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2063:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2063:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2075:7: warning: variable 'TempChar' is not initialized [cppcoreguidelines-init-variables]
  int TempChar;
      ^
               = 0
/datasets/dos2unix/common.c:2083:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
  while ((TempChar = fgetc(ipInF)) != EOF) {
  ^
/datasets/dos2unix/common.c:2083:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'TempChar' and may cause performance degradation [altera-id-dependent-backward-branch]
  while ((TempChar = fgetc(ipInF)) != EOF) {
         ^
/datasets/dos2unix/common.c:2084:22: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
    if ( (TempChar < 32) &&
                     ^
/datasets/dos2unix/common.c:2089:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      ipFlag->status |= BINARY_FILE ;
      ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2093:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (TempChar == '\x0d') /* CR */
                             ^
                              {
/datasets/dos2unix/common.c:2110:28: warning: function is not thread safe [concurrency-mt-unsafe]
      const char *errstr = strerror(errno);
                           ^
/datasets/dos2unix/common.c:2111:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2111:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2112:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("can not read from input file %s:"), filename);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2112:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("can not read from input file %s:"), filename);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2113:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2113:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2130:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    ipFlag->status |= NO_REGFILE ;
    ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2137:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    ipFlag->status |= INPUT_TARGET_NO_REGFILE ;
    ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2147:28: warning: function is not thread safe [concurrency-mt-unsafe]
      const char *errstr = strerror(errno);
                           ^
/datasets/dos2unix/common.c:2149:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: %s: ", progname, ipInFN);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2149:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: %s: ", progname, ipInFN);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2150:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, "%s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2150:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, "%s\n", errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2173:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (d2u_fclose(InF, ipInFN, ipFlag, "r", progname) == EOF)
                                                            ^
                                                             {
/datasets/dos2unix/common.c:2200:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (check_unicode_info(stdin, ipFlag, progname, &bomtype_orig))
                                                                 ^
                                                                  {
/datasets/dos2unix/common.c:2219:9: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
  char *ptr;
        ^
            = NULL
/datasets/dos2unix/common.c:2225:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    pFlag->file_info |= INFO_DEFAULT;
    ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2229:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
  while (*ptr != '\0') {
  ^
/datasets/dos2unix/common.c:2229:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
  while (*ptr != '\0') {
         ^
/datasets/dos2unix/common.c:2232:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_PRINT0;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2235:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_DOS;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2239:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_UNIX;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2243:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_MAC;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2247:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_BOM;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2251:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_TEXT;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2255:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_CONVERT;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2259:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_HEADER;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2262:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_NOPATH;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2267:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2267:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2268:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr,_("wrong flag '%c' for option -i or --info\n"), *ptr);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2268:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr,_("wrong flag '%c' for option -i or --info\n"), *ptr);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2269:9: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(1);
        ^
/datasets/dos2unix/common.c:2274:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (default_info)
                   ^
                    {
/datasets/dos2unix/common.c:2275:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    pFlag->file_info |= INFO_DEFAULT;
    ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2278:5: warning: function 'parse_options' has cognitive complexity of 148 (threshold 25) [readability-function-cognitive-complexity]
int parse_options(int argc, char *argv[],
    ^
/datasets/dos2unix/common.c:2328:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  while ((++ArgIdx < argc) && (!ShouldExit))
  ^
/datasets/dos2unix/common.c:2328:28: note: +1
  while ((++ArgIdx < argc) && (!ShouldExit))
                           ^
/datasets/dos2unix/common.c:2331:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if ((argv[ArgIdx][0] == '-') && process_options)
    ^
/datasets/dos2unix/common.c:2331:34: note: +1
    if ((argv[ArgIdx][0] == '-') && process_options)
                                 ^
/datasets/dos2unix/common.c:2334:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (strcmp(argv[ArgIdx],"--") == 0)
      ^
/datasets/dos2unix/common.c:2336:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-h") == 0) || (strcmp(argv[ArgIdx],"--help") == 0))
           ^
/datasets/dos2unix/common.c:2336:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-h") == 0) || (strcmp(argv[ArgIdx],"--help") == 0))
                                                ^
/datasets/dos2unix/common.c:2341:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-b") == 0) || (strcmp(argv[ArgIdx],"--keep-bom") == 0))
           ^
/datasets/dos2unix/common.c:2341:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-b") == 0) || (strcmp(argv[ArgIdx],"--keep-bom") == 0))
                                                ^
/datasets/dos2unix/common.c:2343:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-k") == 0) || (strcmp(argv[ArgIdx],"--keepdate") == 0))
           ^
/datasets/dos2unix/common.c:2343:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-k") == 0) || (strcmp(argv[ArgIdx],"--keepdate") == 0))
                                                ^
/datasets/dos2unix/common.c:2345:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-f") == 0) || (strcmp(argv[ArgIdx],"--force") == 0))
           ^
/datasets/dos2unix/common.c:2345:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-f") == 0) || (strcmp(argv[ArgIdx],"--force") == 0))
                                                ^
/datasets/dos2unix/common.c:2348:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"--allow-chown") == 0)
           ^
/datasets/dos2unix/common.c:2350:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"--no-allow-chown") == 0)
           ^
/datasets/dos2unix/common.c:2359:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-s") == 0) || (strcmp(argv[ArgIdx],"--safe") == 0))
           ^
/datasets/dos2unix/common.c:2359:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-s") == 0) || (strcmp(argv[ArgIdx],"--safe") == 0))
                                                ^
/datasets/dos2unix/common.c:2361:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-q") == 0) || (strcmp(argv[ArgIdx],"--quiet") == 0))
           ^
/datasets/dos2unix/common.c:2361:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-q") == 0) || (strcmp(argv[ArgIdx],"--quiet") == 0))
                                                ^
/datasets/dos2unix/common.c:2363:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-v") == 0) || (strcmp(argv[ArgIdx],"--verbose") == 0))
           ^
/datasets/dos2unix/common.c:2363:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-v") == 0) || (strcmp(argv[ArgIdx],"--verbose") == 0))
                                                ^
/datasets/dos2unix/common.c:2365:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-l") == 0) || (strcmp(argv[ArgIdx],"--newline") == 0))
           ^
/datasets/dos2unix/common.c:2365:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-l") == 0) || (strcmp(argv[ArgIdx],"--newline") == 0))
                                                ^
/datasets/dos2unix/common.c:2367:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-m") == 0) || (strcmp(argv[ArgIdx],"--add-bom") == 0))
           ^
/datasets/dos2unix/common.c:2367:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-m") == 0) || (strcmp(argv[ArgIdx],"--add-bom") == 0))
                                                ^
/datasets/dos2unix/common.c:2369:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-r") == 0) || (strcmp(argv[ArgIdx],"--remove-bom") == 0)) {
           ^
/datasets/dos2unix/common.c:2369:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-r") == 0) || (strcmp(argv[ArgIdx],"--remove-bom") == 0)) {
                                                ^
/datasets/dos2unix/common.c:2373:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-S") == 0) || (strcmp(argv[ArgIdx],"--skip-symlink") == 0))
           ^
/datasets/dos2unix/common.c:2373:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-S") == 0) || (strcmp(argv[ArgIdx],"--skip-symlink") == 0))
                                                ^
/datasets/dos2unix/common.c:2375:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-F") == 0) || (strcmp(argv[ArgIdx],"--follow-symlink") == 0))
           ^
/datasets/dos2unix/common.c:2375:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-F") == 0) || (strcmp(argv[ArgIdx],"--follow-symlink") == 0))
                                                ^
/datasets/dos2unix/common.c:2377:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-R") == 0) || (strcmp(argv[ArgIdx],"--replace-symlink") == 0))
           ^
/datasets/dos2unix/common.c:2377:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-R") == 0) || (strcmp(argv[ArgIdx],"--replace-symlink") == 0))
                                                ^
/datasets/dos2unix/common.c:2379:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-V") == 0) || (strcmp(argv[ArgIdx],"--version") == 0)) {
           ^
/datasets/dos2unix/common.c:2379:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-V") == 0) || (strcmp(argv[ArgIdx],"--version") == 0)) {
                                                ^
/datasets/dos2unix/common.c:2383:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-L") == 0) || (strcmp(argv[ArgIdx],"--license") == 0)) {
           ^
/datasets/dos2unix/common.c:2383:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-L") == 0) || (strcmp(argv[ArgIdx],"--license") == 0)) {
                                                ^
/datasets/dos2unix/common.c:2387:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-ascii") == 0) { /* SunOS compatible options */
           ^
/datasets/dos2unix/common.c:2392:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-7") == 0)
           ^
/datasets/dos2unix/common.c:2394:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-iso") == 0) {
           ^
/datasets/dos2unix/common.c:2396:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (pFlag->verbose) {
        ^
/datasets/dos2unix/common.c:2400:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (pFlag->ConvMode < 2)
        ^
/datasets/dos2unix/common.c:2403:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-437") == 0)
           ^
/datasets/dos2unix/common.c:2405:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-850") == 0)
           ^
/datasets/dos2unix/common.c:2407:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-860") == 0)
           ^
/datasets/dos2unix/common.c:2409:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-863") == 0)
           ^
/datasets/dos2unix/common.c:2411:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-865") == 0)
           ^
/datasets/dos2unix/common.c:2413:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"-1252") == 0)
           ^
/datasets/dos2unix/common.c:2416:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-u") == 0) || (strcmp(argv[ArgIdx],"--keep-utf16") == 0))
           ^
/datasets/dos2unix/common.c:2416:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-u") == 0) || (strcmp(argv[ArgIdx],"--keep-utf16") == 0))
                                                ^
/datasets/dos2unix/common.c:2418:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-ul") == 0) || (strcmp(argv[ArgIdx],"--assume-utf16le") == 0))
           ^
/datasets/dos2unix/common.c:2418:50: note: +1
      else if ((strcmp(argv[ArgIdx],"-ul") == 0) || (strcmp(argv[ArgIdx],"--assume-utf16le") == 0))
                                                 ^
/datasets/dos2unix/common.c:2420:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-ub") == 0) || (strcmp(argv[ArgIdx],"--assume-utf16be") == 0))
           ^
/datasets/dos2unix/common.c:2420:50: note: +1
      else if ((strcmp(argv[ArgIdx],"-ub") == 0) || (strcmp(argv[ArgIdx],"--assume-utf16be") == 0))
                                                 ^
/datasets/dos2unix/common.c:2423:12: note: +1, nesting level increased to 3
      else if (strcmp(argv[ArgIdx],"--info") == 0)
           ^
/datasets/dos2unix/common.c:2425:12: note: +1, nesting level increased to 3
      else if (strncmp(argv[ArgIdx],"--info=", (size_t)7) == 0) {
           ^
/datasets/dos2unix/common.c:2427:14: note: +1, nesting level increased to 3
      } else if (strncmp(argv[ArgIdx],"-i", (size_t)2) == 0) {
             ^
/datasets/dos2unix/common.c:2429:14: note: +1, nesting level increased to 3
      } else if ((strcmp(argv[ArgIdx],"-c") == 0) || (strcmp(argv[ArgIdx],"--convmode") == 0)) {
             ^
/datasets/dos2unix/common.c:2429:51: note: +1
      } else if ((strcmp(argv[ArgIdx],"-c") == 0) || (strcmp(argv[ArgIdx],"--convmode") == 0)) {
                                                  ^
/datasets/dos2unix/common.c:2430:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (++ArgIdx < argc) {
        ^
/datasets/dos2unix/common.c:2431:11: note: +5, including nesting penalty of 4, nesting level increased to 5
          if (strcmpi(argv[ArgIdx],"ascii") == 0) { /* Benjamin Lin's legacy options */
          ^
/datasets/dos2unix/common.c:2435:16: note: +1, nesting level increased to 5
          else if (strcmpi(argv[ArgIdx], "7bit") == 0)
               ^
/datasets/dos2unix/common.c:2437:16: note: +1, nesting level increased to 5
          else if (strcmpi(argv[ArgIdx], "iso") == 0) {
               ^
/datasets/dos2unix/common.c:2439:13: note: +6, including nesting penalty of 5, nesting level increased to 6
            if (pFlag->verbose) {
            ^
/datasets/dos2unix/common.c:2443:13: note: +6, including nesting penalty of 5, nesting level increased to 6
            if (pFlag->ConvMode < 2)
            ^
/datasets/dos2unix/common.c:2446:16: note: +1, nesting level increased to 5
          else if (strcmpi(argv[ArgIdx], "mac") == 0) {
               ^
/datasets/dos2unix/common.c:2447:13: note: +6, including nesting penalty of 5, nesting level increased to 6
            if (is_dos2unix(progname))
            ^
/datasets/dos2unix/common.c:2449:13: note: +1, nesting level increased to 6
            else
            ^
/datasets/dos2unix/common.c:2451:13: note: +1, nesting level increased to 5
          } else {
            ^
/datasets/dos2unix/common.c:2458:11: note: +1, nesting level increased to 4
        } else {
          ^
/datasets/dos2unix/common.c:2499:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-o") == 0) || (strcmp(argv[ArgIdx],"--oldfile") == 0)) {
           ^
/datasets/dos2unix/common.c:2499:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-o") == 0) || (strcmp(argv[ArgIdx],"--oldfile") == 0)) {
                                                ^
/datasets/dos2unix/common.c:2501:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (!CanSwitchFileMode) {
        ^
/datasets/dos2unix/common.c:2512:12: note: +1, nesting level increased to 3
      else if ((strcmp(argv[ArgIdx],"-n") == 0) || (strcmp(argv[ArgIdx],"--newfile") == 0)) {
           ^
/datasets/dos2unix/common.c:2512:49: note: +1
      else if ((strcmp(argv[ArgIdx],"-n") == 0) || (strcmp(argv[ArgIdx],"--newfile") == 0)) {
                                                ^
/datasets/dos2unix/common.c:2514:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (!CanSwitchFileMode) {
        ^
/datasets/dos2unix/common.c:2524:7: note: +1, nesting level increased to 3
      else { /* wrong option */
      ^
/datasets/dos2unix/common.c:2530:7: note: +1, nesting level increased to 2
    } else {
      ^
/datasets/dos2unix/common.c:2534:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (pFlag->NewFile) {
      ^
/datasets/dos2unix/common.c:2535:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (CanSwitchFileMode)
        ^
/datasets/dos2unix/common.c:2537:9: note: +1, nesting level increased to 4
        else {
        ^
/datasets/dos2unix/common.c:2543:11: note: +5, including nesting penalty of 4, nesting level increased to 5
          if (pFlag->verbose)
          ^
/datasets/dos2unix/common.c:2547:9: note: +1, nesting level increased to 3
      } else {
        ^
/datasets/dos2unix/common.c:2548:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (pFlag->file_info) {
        ^
/datasets/dos2unix/common.c:2551:11: note: +1, nesting level increased to 4
        } else {
          ^
/datasets/dos2unix/common.c:2557:11: note: +5, including nesting penalty of 4, nesting level increased to 5
          if (pFlag->verbose)
          ^
/datasets/dos2unix/common.c:2565:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if ( (argc > 0) && pFlag->stdio_mode) {
  ^
/datasets/dos2unix/common.c:2565:19: note: +1
  if ( (argc > 0) && pFlag->stdio_mode) {
                  ^
/datasets/dos2unix/common.c:2566:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    if (pFlag->file_info) {
    ^
/datasets/dos2unix/common.c:2569:7: note: +1, nesting level increased to 2
    } else {
      ^
/datasets/dos2unix/common.c:2575:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (pFlag->verbose)
      ^
/datasets/dos2unix/common.c:2581:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (!CanSwitchFileMode) {
  ^
/datasets/dos2unix/common.c:2328:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
  while ((++ArgIdx < argc) && (!ShouldExit))
  ^
/datasets/dos2unix/common.c:2334:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (strcmp(argv[ArgIdx],"--") == 0)
                                         ^
                                          {
/datasets/dos2unix/common.c:2341:93: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-b") == 0) || (strcmp(argv[ArgIdx],"--keep-bom") == 0))
                                                                                            ^
                                                                                             {
/datasets/dos2unix/common.c:2343:93: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-k") == 0) || (strcmp(argv[ArgIdx],"--keepdate") == 0))
                                                                                            ^
                                                                                             {
/datasets/dos2unix/common.c:2345:90: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-f") == 0) || (strcmp(argv[ArgIdx],"--force") == 0))
                                                                                         ^
                                                                                          {
/datasets/dos2unix/common.c:2348:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"--allow-chown") == 0)
                                                         ^
                                                          {
/datasets/dos2unix/common.c:2350:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"--no-allow-chown") == 0)
                                                            ^
                                                             {
/datasets/dos2unix/common.c:2359:89: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-s") == 0) || (strcmp(argv[ArgIdx],"--safe") == 0))
                                                                                        ^
                                                                                         {
/datasets/dos2unix/common.c:2361:90: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-q") == 0) || (strcmp(argv[ArgIdx],"--quiet") == 0))
                                                                                         ^
                                                                                          {
/datasets/dos2unix/common.c:2363:92: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-v") == 0) || (strcmp(argv[ArgIdx],"--verbose") == 0))
                                                                                           ^
                                                                                            {
/datasets/dos2unix/common.c:2365:92: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-l") == 0) || (strcmp(argv[ArgIdx],"--newline") == 0))
                                                                                           ^
                                                                                            {
/datasets/dos2unix/common.c:2367:92: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-m") == 0) || (strcmp(argv[ArgIdx],"--add-bom") == 0))
                                                                                           ^
                                                                                            {
/datasets/dos2unix/common.c:2373:97: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-S") == 0) || (strcmp(argv[ArgIdx],"--skip-symlink") == 0))
                                                                                                ^
                                                                                                 {
/datasets/dos2unix/common.c:2375:99: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-F") == 0) || (strcmp(argv[ArgIdx],"--follow-symlink") == 0))
                                                                                                  ^
                                                                                                   {
/datasets/dos2unix/common.c:2377:100: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-R") == 0) || (strcmp(argv[ArgIdx],"--replace-symlink") == 0))
                                                                                                   ^
                                                                                                    {
/datasets/dos2unix/common.c:2392:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"-7") == 0)
                                              ^
                                               {
/datasets/dos2unix/common.c:2397:12: warning: the value returned by this function should be used [cert-err33-c]
           D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
           ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2397:12: note: cast the expression to void to silence this warning
           D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
           ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2398:12: warning: the value returned by this function should be used [cert-err33-c]
           D2U_UTF8_FPRINTF(stderr,_("active code page: %d\n"), pFlag->ConvMode);
           ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2398:12: note: cast the expression to void to silence this warning
           D2U_UTF8_FPRINTF(stderr,_("active code page: %d\n"), pFlag->ConvMode);
           ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2400:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pFlag->ConvMode < 2)
                                ^
                                 {
/datasets/dos2unix/common.c:2403:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"-437") == 0)
                                                ^
                                                 {
/datasets/dos2unix/common.c:2405:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"-850") == 0)
                                                ^
                                                 {
/datasets/dos2unix/common.c:2407:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"-860") == 0)
                                                ^
                                                 {
/datasets/dos2unix/common.c:2409:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"-863") == 0)
                                                ^
                                                 {
/datasets/dos2unix/common.c:2411:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"-865") == 0)
                                                ^
                                                 {
/datasets/dos2unix/common.c:2413:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"-1252") == 0)
                                                 ^
                                                  {
/datasets/dos2unix/common.c:2416:95: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-u") == 0) || (strcmp(argv[ArgIdx],"--keep-utf16") == 0))
                                                                                              ^
                                                                                               {
/datasets/dos2unix/common.c:2418:100: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-ul") == 0) || (strcmp(argv[ArgIdx],"--assume-utf16le") == 0))
                                                                                                   ^
                                                                                                    {
/datasets/dos2unix/common.c:2420:100: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if ((strcmp(argv[ArgIdx],"-ub") == 0) || (strcmp(argv[ArgIdx],"--assume-utf16be") == 0))
                                                                                                   ^
                                                                                                    {
/datasets/dos2unix/common.c:2423:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else if (strcmp(argv[ArgIdx],"--info") == 0)
                                                  ^
                                                   {
/datasets/dos2unix/common.c:2424:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pFlag->file_info |= INFO_DEFAULT;
        ^~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2425:56: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      else if (strncmp(argv[ArgIdx],"--info=", (size_t)7) == 0) {
                                                       ^
/datasets/dos2unix/common.c:2426:39: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        get_info_options(argv[ArgIdx]+7, pFlag, progname);
                                      ^
/datasets/dos2unix/common.c:2435:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          else if (strcmpi(argv[ArgIdx], "7bit") == 0)
                                                      ^
                                                       {
/datasets/dos2unix/common.c:2440:16: warning: the value returned by this function should be used [cert-err33-c]
               D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
               ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2440:16: note: cast the expression to void to silence this warning
               D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
               ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2441:16: warning: the value returned by this function should be used [cert-err33-c]
               D2U_UTF8_FPRINTF(stderr,_("active code page: %d\n"), pFlag->ConvMode);
               ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2441:16: note: cast the expression to void to silence this warning
               D2U_UTF8_FPRINTF(stderr,_("active code page: %d\n"), pFlag->ConvMode);
               ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2443:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (pFlag->ConvMode < 2)
                                    ^
                                     {
/datasets/dos2unix/common.c:2447:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (is_dos2unix(progname))
                                      ^
                                       {
/datasets/dos2unix/common.c:2449:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            else
                ^
                 {
/datasets/dos2unix/common.c:2452:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2452:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2453:13: warning: the value returned by this function should be used [cert-err33-c]
            D2U_UTF8_FPRINTF(stderr, _("invalid %s conversion mode specified\n"),argv[ArgIdx]);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2453:13: note: cast the expression to void to silence this warning
            D2U_UTF8_FPRINTF(stderr, _("invalid %s conversion mode specified\n"),argv[ArgIdx]);
            ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2460:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2460:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2461:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr,_("option '%s' requires an argument\n"),argv[ArgIdx]);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2461:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr,_("option '%s' requires an argument\n"),argv[ArgIdx]);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2502:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2502:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2503:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2503:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2515:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2515:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2516:11: warning: the value returned by this function should be used [cert-err33-c]
          D2U_UTF8_FPRINTF(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2516:11: note: cast the expression to void to silence this warning
          D2U_UTF8_FPRINTF(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]);
          ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2532:11: warning: variable 'conversion_error' is not initialized [cppcoreguidelines-init-variables]
      int conversion_error;
          ^
                           = 0
/datasets/dos2unix/common.c:2535:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (CanSwitchFileMode)
                              ^
                               {
/datasets/dos2unix/common.c:2543:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (pFlag->verbose)
                             ^
                              {
/datasets/dos2unix/common.c:2549:11: warning: Value stored to 'conversion_error' is never read [clang-analyzer-deadcode.DeadStores]
          conversion_error = GetFileInfo(argv[ArgIdx], pFlag, progname);
          ^                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2549:11: note: Value stored to 'conversion_error' is never read
          conversion_error = GetFileInfo(argv[ArgIdx], pFlag, progname);
          ^                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2557:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (pFlag->verbose)
                             ^
                              {
/datasets/dos2unix/common.c:2575:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (pFlag->verbose)
                         ^
                          {
/datasets/dos2unix/common.c:2582:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2582:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2583:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2583:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, _("target of file %s not specified in new-file mode\n"), argv[ArgIdx-1]);
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2593:28: warning: function is not thread safe [concurrency-mt-unsafe]
      const char *errstr = strerror(errno);
                           ^
/datasets/dos2unix/common.c:2594:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2594:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2595:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, _("can not read from input file: %s\n"), errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2595:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, _("can not read from input file: %s\n"), errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2603:28: warning: function is not thread safe [concurrency-mt-unsafe]
      const char *errstr = strerror(errno);
                           ^
/datasets/dos2unix/common.c:2604:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2604:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2605:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_ANSI_FPRINTF(stderr, _("can not write to output file: %s\n"), errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2605:7: note: cast the expression to void to silence this warning
      D2U_ANSI_FPRINTF(stderr, _("can not write to output file: %s\n"), errstr);
      ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2612:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (!(ipFlag->status & UNICODE_CONVERSION_ERROR)) {
          ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2615:30: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *errstr = strerror(errno);
                             ^
/datasets/dos2unix/common.c:2616:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2616:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2617:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_ANSI_FPRINTF(stderr, _("can not write to output file: %s\n"), errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2617:9: note: cast the expression to void to silence this warning
        D2U_ANSI_FPRINTF(stderr, _("can not write to output file: %s\n"), errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2622:24: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
wint_t d2u_getwc(FILE *f, int bomtype)
                       ^
/datasets/dos2unix/common.c:2624:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
   int c_trail, c_lead;
   ^~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2624:8: warning: variable 'c_trail' is not initialized [cppcoreguidelines-init-variables]
   int c_trail, c_lead;
       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/dos2unix/common.c:2624:17: warning: variable 'c_lead' is not initialized [cppcoreguidelines-init-variables]
   int c_trail, c_lead;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/dos2unix/common.c:2625:11: warning: variable 'wc' is not initialized [cppcoreguidelines-init-variables]
   wint_t wc;
          ^
             = 0
/datasets/dos2unix/common.c:2625:11: warning: variable name 'wc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/dos2unix/common.c:2627:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
   if (((c_lead=fgetc(f)) == EOF)  || ((c_trail=fgetc(f)) == EOF))
         ^
/datasets/dos2unix/common.c:2627:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:2627:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:2627:41: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
   if (((c_lead=fgetc(f)) == EOF)  || ((c_trail=fgetc(f)) == EOF))
                                        ^
/datasets/dos2unix/common.c:2627:41: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/common.c:2627:41: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/common.c:2627:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
   if (((c_lead=fgetc(f)) == EOF)  || ((c_trail=fgetc(f)) == EOF))
                                                                  ^
                                                                   {
/datasets/dos2unix/common.c:2631:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      c_trail <<=8;
      ^~~~~~~
/datasets/dos2unix/common.c:2631:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      c_trail <<=8;
                 ^
/datasets/dos2unix/common.c:2634:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      c_lead <<=8;
      ^~~~~~
/datasets/dos2unix/common.c:2634:17: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      c_lead <<=8;
                ^
/datasets/dos2unix/common.c:2640:27: warning: parameter name 'wc' is too short, expected at least 3 characters [readability-identifier-length]
wint_t d2u_ungetwc(wint_t wc, FILE *f, int bomtype)
                          ^
/datasets/dos2unix/common.c:2640:37: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
wint_t d2u_ungetwc(wint_t wc, FILE *f, int bomtype)
                                    ^
/datasets/dos2unix/common.c:2642:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
   int c_trail, c_lead;
   ^~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2642:8: warning: variable 'c_trail' is not initialized [cppcoreguidelines-init-variables]
   int c_trail, c_lead;
       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/dos2unix/common.c:2642:17: warning: variable 'c_lead' is not initialized [cppcoreguidelines-init-variables]
   int c_trail, c_lead;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/dos2unix/common.c:2645:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      c_trail = (int)(wc & 0xff00);
                      ^    ~~~~~~
/datasets/dos2unix/common.c:2645:28: warning: 0xff00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      c_trail = (int)(wc & 0xff00);
                           ^
/datasets/dos2unix/common.c:2646:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      c_trail >>=8;
      ^~~~~~~
/datasets/dos2unix/common.c:2646:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      c_trail >>=8;
                 ^
/datasets/dos2unix/common.c:2647:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      c_lead  = (int)(wc & 0xff);
                      ^    ~~~~
/datasets/dos2unix/common.c:2647:28: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      c_lead  = (int)(wc & 0xff);
                           ^
/datasets/dos2unix/common.c:2649:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      c_lead = (int)(wc & 0xff00);
                     ^    ~~~~~~
/datasets/dos2unix/common.c:2649:27: warning: 0xff00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      c_lead = (int)(wc & 0xff00);
                          ^
/datasets/dos2unix/common.c:2650:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      c_lead >>=8;
      ^~~~~~
/datasets/dos2unix/common.c:2650:17: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      c_lead >>=8;
                ^
/datasets/dos2unix/common.c:2651:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      c_trail  = (int)(wc & 0xff);
                       ^    ~~~~
/datasets/dos2unix/common.c:2651:29: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      c_trail  = (int)(wc & 0xff);
                            ^
/datasets/dos2unix/common.c:2655:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
   if ((ungetc(c_trail,f) == EOF)  || (ungetc(c_lead,f) == EOF))
                                                                ^
                                                                 {
/datasets/dos2unix/common.c:2661:8: warning: function 'd2u_putwc' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
wint_t d2u_putwc(wint_t wc, FILE *f, CFlag *ipFlag, const char *progname)
       ^
/datasets/dos2unix/common.c:2671:4: note: +1, including nesting penalty of 0, nesting level increased to 1
   if (ipFlag->keep_utf16) {
   ^
/datasets/dos2unix/common.c:2673:6: note: +2, including nesting penalty of 1, nesting level increased to 2
     if (ipFlag->bomtype == FILE_UTF16LE) { /* UTF16 little endian */
     ^
/datasets/dos2unix/common.c:2677:8: note: +1, nesting level increased to 2
     } else {                      /* UTF16 big endian */
       ^
/datasets/dos2unix/common.c:2682:6: note: +2, including nesting penalty of 1, nesting level increased to 2
     if ((fputc(c_lead,f) == EOF)  || (fputc(c_trail,f) == EOF))
     ^
/datasets/dos2unix/common.c:2682:36: note: +1
     if ((fputc(c_lead,f) == EOF)  || (fputc(c_trail,f) == EOF))
                                   ^
/datasets/dos2unix/common.c:2690:4: note: +1, including nesting penalty of 0, nesting level increased to 1
   if ((lead >= 0xd800) && (lead < 0xdc00) && ((wc < 0xdc00) || (wc >= 0xe000))) {
   ^
/datasets/dos2unix/common.c:2690:44: note: +1
   if ((lead >= 0xd800) && (lead < 0xdc00) && ((wc < 0xdc00) || (wc >= 0xe000))) {
                                           ^
/datasets/dos2unix/common.c:2690:62: note: +1
   if ((lead >= 0xd800) && (lead < 0xdc00) && ((wc < 0xdc00) || (wc >= 0xe000))) {
                                                             ^
/datasets/dos2unix/common.c:2697:4: note: +1, including nesting penalty of 0, nesting level increased to 1
   if ((wc >= 0xd800) && (wc < 0xdc00)) {   /* Surrogate lead */
   ^
/datasets/dos2unix/common.c:2697:23: note: +1
   if ((wc >= 0xd800) && (wc < 0xdc00)) {   /* Surrogate lead */
                      ^
/datasets/dos2unix/common.c:2702:4: note: +1, including nesting penalty of 0, nesting level increased to 1
   if ((wc >= 0xdc00) && (wc < 0xe000)) {   /* Surrogate trail */
   ^
/datasets/dos2unix/common.c:2702:23: note: +1
   if ((wc >= 0xdc00) && (wc < 0xe000)) {   /* Surrogate trail */
                      ^
/datasets/dos2unix/common.c:2706:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((lead < 0xd800) || (lead >= 0xdc00)) {
      ^
/datasets/dos2unix/common.c:2706:27: note: +1
      if ((lead < 0xd800) || (lead >= 0xdc00)) {
                          ^
/datasets/dos2unix/common.c:2751:6: note: +1, nesting level increased to 1
   } else {
     ^
/datasets/dos2unix/common.c:2756:4: note: +1, including nesting penalty of 0, nesting level increased to 1
   if (wc == 0x0000) {
   ^
/datasets/dos2unix/common.c:2757:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (fputc(0, f) == EOF)
      ^
/datasets/dos2unix/common.c:2782:4: note: +1, including nesting penalty of 0, nesting level increased to 1
   if ( len == (size_t)(-1) ) {
   ^
/datasets/dos2unix/common.c:2785:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (ipFlag->verbose) {
      ^
/datasets/dos2unix/common.c:2796:6: note: +1, nesting level increased to 1
   } else {
     ^
/datasets/dos2unix/common.c:2798:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      for (i=0; i<len; i++) {
      ^
/datasets/dos2unix/common.c:2799:10: note: +3, including nesting penalty of 2, nesting level increased to 3
         if (fputc(mbs[i], f) == EOF)
         ^
/datasets/dos2unix/common.c:2661:25: warning: parameter name 'wc' is too short, expected at least 3 characters [readability-identifier-length]
wint_t d2u_putwc(wint_t wc, FILE *f, CFlag *ipFlag, const char *progname)
                        ^
/datasets/dos2unix/common.c:2661:35: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
wint_t d2u_putwc(wint_t wc, FILE *f, CFlag *ipFlag, const char *progname)
                                  ^
/datasets/dos2unix/common.c:2663:20: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   static char mbs[8];
                   ^
/datasets/dos2unix/common.c:2666:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
   size_t len;
          ^
              = 0
/datasets/dos2unix/common.c:2672:6: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
     int c_trail, c_lead;
     ^~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2672:10: warning: variable 'c_trail' is not initialized [cppcoreguidelines-init-variables]
     int c_trail, c_lead;
         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/dos2unix/common.c:2672:19: warning: variable 'c_lead' is not initialized [cppcoreguidelines-init-variables]
     int c_trail, c_lead;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/dos2unix/common.c:2674:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c_trail = (int)(wc & 0xff00);
                        ^    ~~~~~~
/datasets/dos2unix/common.c:2674:30: warning: 0xff00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        c_trail = (int)(wc & 0xff00);
                             ^
/datasets/dos2unix/common.c:2675:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c_trail >>=8;
        ^~~~~~~
/datasets/dos2unix/common.c:2675:20: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        c_trail >>=8;
                   ^
/datasets/dos2unix/common.c:2676:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c_lead  = (int)(wc & 0xff);
                        ^    ~~~~
/datasets/dos2unix/common.c:2676:30: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        c_lead  = (int)(wc & 0xff);
                             ^
/datasets/dos2unix/common.c:2678:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c_lead = (int)(wc & 0xff00);
                       ^    ~~~~~~
/datasets/dos2unix/common.c:2678:29: warning: 0xff00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        c_lead = (int)(wc & 0xff00);
                            ^
/datasets/dos2unix/common.c:2679:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c_lead >>=8;
        ^~~~~~
/datasets/dos2unix/common.c:2679:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        c_lead >>=8;
                  ^
/datasets/dos2unix/common.c:2680:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c_trail  = (int)(wc & 0xff);
                         ^    ~~~~
/datasets/dos2unix/common.c:2680:31: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        c_trail  = (int)(wc & 0xff);
                              ^
/datasets/dos2unix/common.c:2682:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
     if ((fputc(c_lead,f) == EOF)  || (fputc(c_trail,f) == EOF))
                                                                ^
                                                                 {
/datasets/dos2unix/common.c:2690:17: warning: 0xd800 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   if ((lead >= 0xd800) && (lead < 0xdc00) && ((wc < 0xdc00) || (wc >= 0xe000))) {
                ^
/datasets/dos2unix/common.c:2690:36: warning: 0xdc00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   if ((lead >= 0xd800) && (lead < 0xdc00) && ((wc < 0xdc00) || (wc >= 0xe000))) {
                                   ^
/datasets/dos2unix/common.c:2690:54: warning: 0xdc00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   if ((lead >= 0xd800) && (lead < 0xdc00) && ((wc < 0xdc00) || (wc >= 0xe000))) {
                                                     ^
/datasets/dos2unix/common.c:2690:72: warning: 0xe000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   if ((lead >= 0xd800) && (lead < 0xdc00) && ((wc < 0xdc00) || (wc >= 0xe000))) {
                                                                       ^
/datasets/dos2unix/common.c:2691:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2691:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2692:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("error: Invalid surrogate pair. Missing low surrogate.\n"));
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2692:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("error: Invalid surrogate pair. Missing low surrogate.\n"));
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2693:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      ipFlag->status |= UNICODE_CONVERSION_ERROR ;
      ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2697:15: warning: 0xd800 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   if ((wc >= 0xd800) && (wc < 0xdc00)) {   /* Surrogate lead */
              ^
/datasets/dos2unix/common.c:2697:32: warning: 0xdc00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   if ((wc >= 0xd800) && (wc < 0xdc00)) {   /* Surrogate lead */
                               ^
/datasets/dos2unix/common.c:2702:15: warning: 0xdc00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   if ((wc >= 0xdc00) && (wc < 0xe000)) {   /* Surrogate trail */
              ^
/datasets/dos2unix/common.c:2702:32: warning: 0xe000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
   if ((wc >= 0xdc00) && (wc < 0xe000)) {   /* Surrogate trail */
                               ^
/datasets/dos2unix/common.c:2706:19: warning: 0xd800 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((lead < 0xd800) || (lead >= 0xdc00)) {
                  ^
/datasets/dos2unix/common.c:2706:39: warning: 0xdc00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      if ((lead < 0xd800) || (lead >= 0xdc00)) {
                                      ^
/datasets/dos2unix/common.c:2707:10: warning: the value returned by this function should be used [cert-err33-c]
         D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2707:10: note: cast the expression to void to silence this warning
         D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2708:10: warning: the value returned by this function should be used [cert-err33-c]
         D2U_UTF8_FPRINTF(stderr, _("error: Invalid surrogate pair. Missing high surrogate.\n"));
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2708:10: note: cast the expression to void to silence this warning
         D2U_UTF8_FPRINTF(stderr, _("error: Invalid surrogate pair. Missing high surrogate.\n"));
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2709:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
         ipFlag->status |= UNICODE_CONVERSION_ERROR ;
         ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2744:17: warning: 0x10000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      wstr[0] = 0x10000;
                ^
/datasets/dos2unix/common.c:2745:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      wstr[0] += (lead & 0x03FF) << 10;
                 ^~~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2745:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      wstr[0] += (lead & 0x03FF) << 10;
                  ^~~~
/datasets/dos2unix/common.c:2745:26: warning: 0x03FF is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      wstr[0] += (lead & 0x03FF) << 10;
                         ^
/datasets/dos2unix/common.c:2745:37: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      wstr[0] += (lead & 0x03FF) << 10;
                                    ^
/datasets/dos2unix/common.c:2746:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      wstr[0] += (trail & 0x03FF);
                  ^~~~~
/datasets/dos2unix/common.c:2746:27: warning: 0x03FF is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
      wstr[0] += (trail & 0x03FF);
                          ^
/datasets/dos2unix/common.c:2757:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (fputc(0, f) == EOF)
                             ^
                              {
/datasets/dos2unix/common.c:2778:10: warning: function is not thread safe [concurrency-mt-unsafe]
   len = wcstombs(mbs, wstr, sizeof(mbs));
         ^
/datasets/dos2unix/common.c:2789:30: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *errstr = strerror(errno);
                             ^
/datasets/dos2unix/common.c:2666:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
   size_t len;
   ^
/datasets/dos2unix/common.c:2790:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_UTF8_FPRINTF(stderr, "%s:", progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2790:9: note: cast the expression to void to silence this warning
        D2U_UTF8_FPRINTF(stderr, "%s:", progname);
        ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2791:9: warning: the value returned by this function should be used [cert-err33-c]
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2791:9: note: cast the expression to void to silence this warning
        D2U_ANSI_FPRINTF(stderr, " %s\n", errstr);
        ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/common.c:2794:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      ipFlag->status |= UNICODE_CONVERSION_ERROR ;
      ^~~~~~~~~~~~~~
/datasets/dos2unix/common.c:2796:6: warning: do not use 'else' after 'return' [readability-else-after-return]
   } else {
     ^
/datasets/dos2unix/common.c:2797:14: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
      size_t i;
             ^
               = 0
/datasets/dos2unix/common.c:2797:14: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/dos2unix/common.c:2798:7: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
      for (i=0; i<len; i++) {
      ^
/datasets/dos2unix/common.c:2798:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
      for (i=0; i<len; i++) {
                ^
/datasets/dos2unix/common.c:2799:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
         if (fputc(mbs[i], f) == EOF)
                                     ^
                                      {
/datasets/dos2unix/dos2unix.c:64:9: warning: declaration uses identifier '__DOS2UNIX_C', which is a reserved identifier [bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp]
#define __DOS2UNIX_C
        ^~~~~~~~~~~~
        DOS2UNIX_C
/datasets/dos2unix/dos2unix.c:73:1: warning: system include langinfo.h not allowed [llvmlibc-restrict-system-libc-headers]
# include <langinfo.h>
^~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:79:3: warning: the value returned by this function should be used [cert-err33-c]
  D2U_ANSI_FPRINTF(stdout,_("\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:79:3: note: cast the expression to void to silence this warning
  D2U_ANSI_FPRINTF(stdout,_("\
  ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:84:28: warning: 2022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
All rights reserved.\n\n"),2022);
                           ^
/datasets/dos2unix/dos2unix.c:89:24: warning: 2 adjacent parameters of 'StripDelimiterW' of similar type ('FILE *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
wint_t StripDelimiterW(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, wint_t CurChar, unsigned int *converted, const char *progname)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:89:30: note: the first parameter in the range is 'ipInF'
wint_t StripDelimiterW(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, wint_t CurChar, unsigned int *converted, const char *progname)
                             ^~~~~
/datasets/dos2unix/dos2unix.c:89:43: note: the last parameter in the range is 'ipOutF'
wint_t StripDelimiterW(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, wint_t CurChar, unsigned int *converted, const char *progname)
                                          ^~~~~~
/datasets/dos2unix/dos2unix.c:91:10: warning: variable 'TempNextChar' is not initialized [cppcoreguidelines-init-variables]
  wint_t TempNextChar;
         ^
                      = 0
/datasets/dos2unix/dos2unix.c:95:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ( (TempNextChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {
        ^
/datasets/dos2unix/dos2unix.c:95:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/dos2unix.c:95:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/dos2unix.c:100:26: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
    if ( TempNextChar != 0x0a ) {
                         ^
/datasets/dos2unix/dos2unix.c:108:23: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (d2u_putwc(0x0a, ipOutF, ipFlag, progname) == WEOF) {
                      ^
/datasets/dos2unix/dos2unix.c:119:21: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
    if ( CurChar == 0x0d ) {  /* EOF: last Mac line delimiter (CR)? */
                    ^
/datasets/dos2unix/dos2unix.c:135:20: warning: 2 adjacent parameters of 'StripDelimiter' of similar type ('FILE *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int StripDelimiter(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, int CurChar, unsigned int *converted, const char *progname)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:135:26: note: the first parameter in the range is 'ipInF'
int StripDelimiter(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, int CurChar, unsigned int *converted, const char *progname)
                         ^~~~~
/datasets/dos2unix/dos2unix.c:135:39: note: the last parameter in the range is 'ipOutF'
int StripDelimiter(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, int CurChar, unsigned int *converted, const char *progname)
                                      ^~~~~~
/datasets/dos2unix/dos2unix.c:137:7: warning: variable 'TempNextChar' is not initialized [cppcoreguidelines-init-variables]
  int TempNextChar;
      ^
                   = 0
/datasets/dos2unix/dos2unix.c:141:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ( (TempNextChar = fgetc(ipInF)) != EOF) {
        ^
/datasets/dos2unix/dos2unix.c:141:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/dos2unix.c:141:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/dos2unix.c:180:5: warning: function 'ConvertDosToUnixW' has cognitive complexity of 103 (threshold 25) [readability-function-cognitive-complexity]
int ConvertDosToUnixW(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, const char *progname)
    ^
/datasets/dos2unix/dos2unix.c:197:5: note: +1, including nesting penalty of 0, nesting level increased to 1
    switch (ipFlag->FromToMode)
    ^
/datasets/dos2unix/dos2unix.c:200:9: note: +2, including nesting penalty of 1, nesting level increased to 2
        while ((TempChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {  /* get character */
        ^
/datasets/dos2unix/dos2unix.c:201:11: note: +3, including nesting penalty of 2, nesting level increased to 3
          if ((ipFlag->Force == 0) &&
          ^
/datasets/dos2unix/dos2unix.c:205:34: note: +1
              (TempChar != 0x09) &&  /* Not a TAB */
                                 ^
/datasets/dos2unix/dos2unix.c:209:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (ipFlag->verbose) {
            ^
/datasets/dos2unix/dos2unix.c:210:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
              ^
/datasets/dos2unix/dos2unix.c:210:40: note: +1
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
                                       ^
/datasets/dos2unix/dos2unix.c:216:11: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (TempChar != 0x0d) {
          ^
/datasets/dos2unix/dos2unix.c:217:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (TempChar == 0x0a) /* Count all DOS and Unix line breaks */
            ^
/datasets/dos2unix/dos2unix.c:219:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (d2u_putwc(TempChar, ipOutF, ipFlag, progname) == WEOF) {
            ^
/datasets/dos2unix/dos2unix.c:224:13: note: +1, nesting level increased to 3
          } else {
            ^
/datasets/dos2unix/dos2unix.c:225:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (StripDelimiterW( ipInF, ipOutF, ipFlag, TempChar, &converted, progname) == WEOF) {
            ^
/datasets/dos2unix/dos2unix.c:231:9: note: +2, including nesting penalty of 1, nesting level increased to 2
        if ((TempChar == WEOF) && ferror(ipInF)) {
        ^
/datasets/dos2unix/dos2unix.c:231:32: note: +1
        if ((TempChar == WEOF) && ferror(ipInF)) {
                               ^
/datasets/dos2unix/dos2unix.c:237:9: note: +2, including nesting penalty of 1, nesting level increased to 2
        while ((TempChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {
        ^
/datasets/dos2unix/dos2unix.c:238:11: note: +3, including nesting penalty of 2, nesting level increased to 3
          if ((ipFlag->Force == 0) &&
          ^
/datasets/dos2unix/dos2unix.c:242:34: note: +1
              (TempChar != 0x09) &&  /* Not a TAB */
                                 ^
/datasets/dos2unix/dos2unix.c:246:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (ipFlag->verbose) {
            ^
/datasets/dos2unix/dos2unix.c:247:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
              ^
/datasets/dos2unix/dos2unix.c:247:40: note: +1
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
                                       ^
/datasets/dos2unix/dos2unix.c:253:11: note: +3, including nesting penalty of 2, nesting level increased to 3
          if ((TempChar != 0x0d)) {
          ^
/datasets/dos2unix/dos2unix.c:254:15: note: +4, including nesting penalty of 3, nesting level increased to 4
              if (TempChar == 0x0a) /* Count all DOS and Unix line breaks */
              ^
/datasets/dos2unix/dos2unix.c:256:15: note: +4, including nesting penalty of 3, nesting level increased to 4
              if(d2u_putwc(TempChar, ipOutF, ipFlag, progname) == WEOF) {
              ^
/datasets/dos2unix/dos2unix.c:262:11: note: +1, nesting level increased to 3
          else{
          ^
/datasets/dos2unix/dos2unix.c:264:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if ( (TempNextChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {
            ^
/datasets/dos2unix/dos2unix.c:265:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if (d2u_ungetwc( TempNextChar, ipInF, ipFlag->bomtype) == WEOF) {  /* put back peek char */
              ^
/datasets/dos2unix/dos2unix.c:271:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if ( TempNextChar == 0x0a ) {
              ^
/datasets/dos2unix/dos2unix.c:272:17: note: +6, including nesting penalty of 5, nesting level increased to 6
                if (d2u_putwc(0x0d, ipOutF, ipFlag, progname) == WEOF) { /* put CR, part of DOS CR-LF */
                ^
/datasets/dos2unix/dos2unix.c:280:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (d2u_putwc(0x0a, ipOutF, ipFlag, progname) == WEOF) { /* MAC line end (CR). Put LF */
            ^
/datasets/dos2unix/dos2unix.c:287:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (ipFlag->NewLine) {  /* add additional LF? */
            ^
/datasets/dos2unix/dos2unix.c:288:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if (d2u_putwc(0x0a, ipOutF, ipFlag, progname) == WEOF) {
              ^
/datasets/dos2unix/dos2unix.c:296:9: note: +2, including nesting penalty of 1, nesting level increased to 2
        if ((TempChar == WEOF) && ferror(ipInF)) {
        ^
/datasets/dos2unix/dos2unix.c:296:32: note: +1
        if ((TempChar == WEOF) && ferror(ipInF)) {
                               ^
/datasets/dos2unix/dos2unix.c:309:5: note: +1, including nesting penalty of 0, nesting level increased to 1
    if (ipFlag->status & UNICODE_CONVERSION_ERROR)
    ^
/datasets/dos2unix/dos2unix.c:311:5: note: +1, including nesting penalty of 0, nesting level increased to 1
    if ((RetVal == 0) && (ipFlag->verbose > 1)) {
    ^
/datasets/dos2unix/dos2unix.c:311:23: note: +1
    if ((RetVal == 0) && (ipFlag->verbose > 1)) {
                      ^
/datasets/dos2unix/dos2unix.c:183:12: warning: variable 'TempChar' is not initialized [cppcoreguidelines-init-variables]
    wint_t TempChar;
           ^
                    = 0
/datasets/dos2unix/dos2unix.c:184:12: warning: variable 'TempNextChar' is not initialized [cppcoreguidelines-init-variables]
    wint_t TempNextChar;
           ^
                        = 0
/datasets/dos2unix/dos2unix.c:183:5: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
    wint_t TempChar;
    ^
/datasets/dos2unix/dos2unix.c:200:9: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((TempChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {  /* get character */
        ^
/datasets/dos2unix/dos2unix.c:200:16: warning: backward branch (while loop) is ID-dependent due to variable reference to 'TempChar' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((TempChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {  /* get character */
               ^
/datasets/dos2unix/dos2unix.c:202:27: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar < 32) &&
                          ^
/datasets/dos2unix/dos2unix.c:203:28: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar != 0x0a) &&  /* Not an LF */
                           ^
/datasets/dos2unix/dos2unix.c:204:28: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar != 0x0d) &&  /* Not a CR */
                           ^
/datasets/dos2unix/dos2unix.c:205:28: warning: 0x09 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar != 0x09) &&  /* Not a TAB */
                           ^
/datasets/dos2unix/dos2unix.c:206:28: warning: 0x0c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar != 0x0c)) {  /* Not a form feed */
                           ^
/datasets/dos2unix/dos2unix.c:208:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            ipFlag->status |= BINARY_FILE ;
            ^~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:210:60: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
                                                           ^
                                                            {
/datasets/dos2unix/dos2unix.c:211:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:211:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:212:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("Binary symbol 0x00%02X found at line %u\n"),TempChar, line_nr);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:212:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("Binary symbol 0x00%02X found at line %u\n"),TempChar, line_nr);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:216:27: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
          if (TempChar != 0x0d) {
                          ^
/datasets/dos2unix/dos2unix.c:217:29: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            if (TempChar == 0x0a) /* Count all DOS and Unix line breaks */
                            ^
/datasets/dos2unix/dos2unix.c:217:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (TempChar == 0x0a) /* Count all DOS and Unix line breaks */
                                 ^
                                  {
/datasets/dos2unix/dos2unix.c:237:9: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((TempChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {
        ^
/datasets/dos2unix/dos2unix.c:237:16: warning: backward branch (while loop) is ID-dependent due to variable reference to 'TempChar' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((TempChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {
               ^
/datasets/dos2unix/dos2unix.c:239:27: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar < 32) &&
                          ^
/datasets/dos2unix/dos2unix.c:240:28: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar != 0x0a) &&  /* Not an LF */
                           ^
/datasets/dos2unix/dos2unix.c:241:28: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar != 0x0d) &&  /* Not a CR */
                           ^
/datasets/dos2unix/dos2unix.c:242:28: warning: 0x09 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar != 0x09) &&  /* Not a TAB */
                           ^
/datasets/dos2unix/dos2unix.c:243:28: warning: 0x0c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar != 0x0c)) {  /* Not a form feed */
                           ^
/datasets/dos2unix/dos2unix.c:245:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            ipFlag->status |= BINARY_FILE ;
            ^~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:247:60: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
                                                           ^
                                                            {
/datasets/dos2unix/dos2unix.c:248:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:248:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:249:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("Binary symbol 0x00%02X found at line %u\n"), TempChar, line_nr);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:249:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("Binary symbol 0x00%02X found at line %u\n"), TempChar, line_nr);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:253:28: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
          if ((TempChar != 0x0d)) {
                           ^
/datasets/dos2unix/dos2unix.c:254:31: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              if (TempChar == 0x0a) /* Count all DOS and Unix line breaks */
                              ^
/datasets/dos2unix/dos2unix.c:254:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              if (TempChar == 0x0a) /* Count all DOS and Unix line breaks */
                                   ^
                                    {
/datasets/dos2unix/dos2unix.c:264:19: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            if ( (TempNextChar = d2u_getwc(ipInF, ipFlag->bomtype)) != WEOF) {
                  ^
/datasets/dos2unix/dos2unix.c:264:19: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/dos2unix.c:264:19: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/dos2unix.c:271:36: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              if ( TempNextChar == 0x0a ) {
                                   ^
/datasets/dos2unix/dos2unix.c:272:31: warning: 0x0d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (d2u_putwc(0x0d, ipOutF, ipFlag, progname) == WEOF) { /* put CR, part of DOS CR-LF */
                              ^
/datasets/dos2unix/dos2unix.c:280:27: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            if (d2u_putwc(0x0a, ipOutF, ipFlag, progname) == WEOF) { /* MAC line end (CR). Put LF */
                          ^
/datasets/dos2unix/dos2unix.c:288:29: warning: 0x0a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              if (d2u_putwc(0x0a, ipOutF, ipFlag, progname) == WEOF) {
                            ^
/datasets/dos2unix/dos2unix.c:309:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    if (ipFlag->status & UNICODE_CONVERSION_ERROR)
        ^~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:309:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->status & UNICODE_CONVERSION_ERROR)
                                                  ^
                                                   {
/datasets/dos2unix/dos2unix.c:312:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:312:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:313:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Converted %u out of %u line breaks.\n"), converted, line_nr -1);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:313:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Converted %u out of %u line breaks.\n"), converted, line_nr -1);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:323:5: warning: function 'ConvertDosToUnix' has cognitive complexity of 106 (threshold 25) [readability-function-cognitive-complexity]
int ConvertDosToUnix(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, const char *progname)
    ^
/datasets/dos2unix/dos2unix.c:334:5: note: +1, including nesting penalty of 0, nesting level increased to 1
    switch (ipFlag->ConvMode) {
    ^
/datasets/dos2unix/dos2unix.c:366:5: note: +1, including nesting penalty of 0, nesting level increased to 1
    if (ipFlag->bomtype > 0)
    ^
/datasets/dos2unix/dos2unix.c:369:5: note: +1, including nesting penalty of 0, nesting level increased to 1
    if ((ipFlag->ConvMode > CONVMODE_7BIT) && (ipFlag->verbose)) { /* not ascii or 7bit */
    ^
/datasets/dos2unix/dos2unix.c:369:44: note: +1
    if ((ipFlag->ConvMode > CONVMODE_7BIT) && (ipFlag->verbose)) { /* not ascii or 7bit */
                                           ^
/datasets/dos2unix/dos2unix.c:381:5: note: +1, including nesting penalty of 0, nesting level increased to 1
    switch (ipFlag->FromToMode) {
    ^
/datasets/dos2unix/dos2unix.c:383:9: note: +2, including nesting penalty of 1, nesting level increased to 2
        while ((TempChar = fgetc(ipInF)) != EOF) {  /* get character */
        ^
/datasets/dos2unix/dos2unix.c:384:11: note: +3, including nesting penalty of 2, nesting level increased to 3
          if ((ipFlag->Force == 0) &&
          ^
/datasets/dos2unix/dos2unix.c:388:36: note: +1
              (TempChar != '\x09') &&  /* Not a TAB */
                                   ^
/datasets/dos2unix/dos2unix.c:392:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (ipFlag->verbose) {
            ^
/datasets/dos2unix/dos2unix.c:393:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
              ^
/datasets/dos2unix/dos2unix.c:393:40: note: +1
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
                                       ^
/datasets/dos2unix/dos2unix.c:399:11: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (TempChar != '\x0d') {
          ^
/datasets/dos2unix/dos2unix.c:400:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (TempChar == '\x0a') /* Count all DOS and Unix line breaks */
            ^
/datasets/dos2unix/dos2unix.c:402:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (fputc(ConvTable[TempChar], ipOutF) == EOF) {
            ^
/datasets/dos2unix/dos2unix.c:407:13: note: +1, nesting level increased to 3
          } else {
            ^
/datasets/dos2unix/dos2unix.c:408:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (StripDelimiter( ipInF, ipOutF, ipFlag, TempChar, &converted, progname) == EOF) {
            ^
/datasets/dos2unix/dos2unix.c:414:9: note: +2, including nesting penalty of 1, nesting level increased to 2
        if ((TempChar == EOF) && ferror(ipInF)) {
        ^
/datasets/dos2unix/dos2unix.c:414:31: note: +1
        if ((TempChar == EOF) && ferror(ipInF)) {
                              ^
/datasets/dos2unix/dos2unix.c:420:9: note: +2, including nesting penalty of 1, nesting level increased to 2
        while ((TempChar = fgetc(ipInF)) != EOF) {
        ^
/datasets/dos2unix/dos2unix.c:421:11: note: +3, including nesting penalty of 2, nesting level increased to 3
          if ((ipFlag->Force == 0) &&
          ^
/datasets/dos2unix/dos2unix.c:425:36: note: +1
              (TempChar != '\x09') &&  /* Not a TAB */
                                   ^
/datasets/dos2unix/dos2unix.c:429:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (ipFlag->verbose) {
            ^
/datasets/dos2unix/dos2unix.c:430:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
              ^
/datasets/dos2unix/dos2unix.c:430:40: note: +1
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
                                       ^
/datasets/dos2unix/dos2unix.c:436:11: note: +3, including nesting penalty of 2, nesting level increased to 3
          if ((TempChar != '\x0d')) {
          ^
/datasets/dos2unix/dos2unix.c:437:15: note: +4, including nesting penalty of 3, nesting level increased to 4
              if (TempChar == '\x0a') /* Count all DOS and Unix line breaks */
              ^
/datasets/dos2unix/dos2unix.c:439:15: note: +4, including nesting penalty of 3, nesting level increased to 4
              if(fputc(ConvTable[TempChar], ipOutF) == EOF) {
              ^
/datasets/dos2unix/dos2unix.c:445:11: note: +1, nesting level increased to 3
          else{
          ^
/datasets/dos2unix/dos2unix.c:447:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if ( (TempNextChar = fgetc(ipInF)) != EOF) {
            ^
/datasets/dos2unix/dos2unix.c:448:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if (ungetc( TempNextChar, ipInF ) == EOF) {  /* put back peek char */
              ^
/datasets/dos2unix/dos2unix.c:454:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if ( TempNextChar == '\x0a' ) {
              ^
/datasets/dos2unix/dos2unix.c:455:17: note: +6, including nesting penalty of 5, nesting level increased to 6
                if (fputc('\x0d', ipOutF) == EOF) { /* put CR, part of DOS CR-LF */
                ^
/datasets/dos2unix/dos2unix.c:463:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (fputc('\x0a', ipOutF) == EOF) { /* MAC line end (CR). Put LF */
            ^
/datasets/dos2unix/dos2unix.c:470:13: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (ipFlag->NewLine) {  /* add additional LF? */
            ^
/datasets/dos2unix/dos2unix.c:471:15: note: +5, including nesting penalty of 4, nesting level increased to 5
              if (fputc('\x0a', ipOutF) == EOF) {
              ^
/datasets/dos2unix/dos2unix.c:479:9: note: +2, including nesting penalty of 1, nesting level increased to 2
        if ((TempChar == EOF) && ferror(ipInF)) {
        ^
/datasets/dos2unix/dos2unix.c:479:31: note: +1
        if ((TempChar == EOF) && ferror(ipInF)) {
                              ^
/datasets/dos2unix/dos2unix.c:492:5: note: +1, including nesting penalty of 0, nesting level increased to 1
    if ((RetVal == 0) && (ipFlag->verbose > 1)) {
    ^
/datasets/dos2unix/dos2unix.c:492:23: note: +1
    if ((RetVal == 0) && (ipFlag->verbose > 1)) {
                      ^
/datasets/dos2unix/dos2unix.c:326:9: warning: variable 'TempChar' is not initialized [cppcoreguidelines-init-variables]
    int TempChar;
        ^
                 = 0
/datasets/dos2unix/dos2unix.c:327:9: warning: variable 'TempNextChar' is not initialized [cppcoreguidelines-init-variables]
    int TempNextChar;
        ^
                     = 0
/datasets/dos2unix/dos2unix.c:328:10: warning: variable 'ConvTable' is not initialized [cppcoreguidelines-init-variables]
    int *ConvTable;
         ^
                   = NULL
/datasets/dos2unix/dos2unix.c:362:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ipFlag->status |= WRONG_CODEPAGE ;
        ^~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:366:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (ipFlag->bomtype > 0)
                            ^
                             {
/datasets/dos2unix/dos2unix.c:370:8: warning: the value returned by this function should be used [cert-err33-c]
       D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
       ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:370:8: note: cast the expression to void to silence this warning
       D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
       ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:371:8: warning: the value returned by this function should be used [cert-err33-c]
       D2U_UTF8_FPRINTF(stderr, _("using code page %d.\n"), ipFlag->ConvMode);
       ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:371:8: note: cast the expression to void to silence this warning
       D2U_UTF8_FPRINTF(stderr, _("using code page %d.\n"), ipFlag->ConvMode);
       ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:326:5: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
    int TempChar;
    ^
/datasets/dos2unix/dos2unix.c:383:9: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((TempChar = fgetc(ipInF)) != EOF) {  /* get character */
        ^
/datasets/dos2unix/dos2unix.c:383:16: warning: backward branch (while loop) is ID-dependent due to variable reference to 'TempChar' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((TempChar = fgetc(ipInF)) != EOF) {  /* get character */
               ^
/datasets/dos2unix/dos2unix.c:385:27: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar < 32) &&
                          ^
/datasets/dos2unix/dos2unix.c:391:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            ipFlag->status |= BINARY_FILE ;
            ^~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:393:60: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
                                                           ^
                                                            {
/datasets/dos2unix/dos2unix.c:394:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:394:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:395:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("Binary symbol 0x%02X found at line %u\n"),TempChar, line_nr);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:395:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("Binary symbol 0x%02X found at line %u\n"),TempChar, line_nr);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:400:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (TempChar == '\x0a') /* Count all DOS and Unix line breaks */
                                   ^
                                    {
/datasets/dos2unix/dos2unix.c:420:9: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((TempChar = fgetc(ipInF)) != EOF) {
        ^
/datasets/dos2unix/dos2unix.c:420:16: warning: backward branch (while loop) is ID-dependent due to variable reference to 'TempChar' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((TempChar = fgetc(ipInF)) != EOF) {
               ^
/datasets/dos2unix/dos2unix.c:422:27: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
              (TempChar < 32) &&
                          ^
/datasets/dos2unix/dos2unix.c:428:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            ipFlag->status |= BINARY_FILE ;
            ^~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:430:60: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
              if ((ipFlag->stdio_mode) && (!ipFlag->error)) ipFlag->error = 1;
                                                           ^
                                                            {
/datasets/dos2unix/dos2unix.c:431:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:431:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:432:15: warning: the value returned by this function should be used [cert-err33-c]
              D2U_UTF8_FPRINTF(stderr, _("Binary symbol 0x%02X found at line %u\n"),TempChar, line_nr);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:432:15: note: cast the expression to void to silence this warning
              D2U_UTF8_FPRINTF(stderr, _("Binary symbol 0x%02X found at line %u\n"),TempChar, line_nr);
              ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:437:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              if (TempChar == '\x0a') /* Count all DOS and Unix line breaks */
                                     ^
                                      {
/datasets/dos2unix/dos2unix.c:447:19: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            if ( (TempNextChar = fgetc(ipInF)) != EOF) {
                  ^
/datasets/dos2unix/dos2unix.c:447:19: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/dos2unix.c:447:19: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/dos2unix.c:493:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:493:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, "%s: ", progname);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:494:7: warning: the value returned by this function should be used [cert-err33-c]
      D2U_UTF8_FPRINTF(stderr, _("Converted %u out of %u line breaks.\n"),converted, line_nr -1);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:494:7: note: cast the expression to void to silence this warning
      D2U_UTF8_FPRINTF(stderr, _("Converted %u out of %u line breaks.\n"),converted, line_nr -1);
      ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:503:17: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  char progname[9];
                ^
/datasets/dos2unix/dos2unix.c:504:10: warning: variable 'pFlag' is not initialized [cppcoreguidelines-init-variables]
  CFlag *pFlag;
         ^
               = NULL
/datasets/dos2unix/dos2unix.c:505:9: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
  char *ptr;
        ^
            = NULL
/datasets/dos2unix/dos2unix.c:506:18: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  char localedir[1024];
                 ^
/datasets/dos2unix/dos2unix.c:507:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
  int ret;
      ^
          = 0
/datasets/dos2unix/dos2unix.c:511:8: warning: variable 'argc_new' is not initialized [cppcoreguidelines-init-variables]
  int  argc_new;
       ^
                = 0
/datasets/dos2unix/dos2unix.c:512:10: warning: variable 'argv_new' is not initialized [cppcoreguidelines-init-variables]
  char **argv_new;
         ^
                  = NULL
/datasets/dos2unix/dos2unix.c:518:12: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  progname[8] = '\0';
           ^
/datasets/dos2unix/dos2unix.c:522:10: warning: function is not thread safe [concurrency-mt-unsafe]
   ptr = getenv("DOS2UNIX_LOCALEDIR");
         ^
/datasets/dos2unix/dos2unix.c:523:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
   if (ptr == NULL)
                   ^
                    {
/datasets/dos2unix/dos2unix.c:526:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (strlen(ptr) < sizeof(localedir))
                                          ^
                                           {
/datasets/dos2unix/dos2unix.c:529:10: warning: the value returned by this function should be used [cert-err33-c]
         D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:529:10: note: cast the expression to void to silence this warning
         D2U_UTF8_FPRINTF(stderr,"%s: ",progname);
         ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:530:10: warning: the value returned by this function should be used [cert-err33-c]
         D2U_ANSI_FPRINTF(stderr, "%s", _("error: Value of environment variable DOS2UNIX_LOCALEDIR is too long.\n"));
         ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:530:10: note: cast the expression to void to silence this warning
         D2U_ANSI_FPRINTF(stderr, "%s", _("error: Value of environment variable DOS2UNIX_LOCALEDIR is too long.\n"));
         ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:545:4: warning: the value returned by this function should be used [cert-err33-c]
   setlocale (LC_ALL, "");
   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/dos2unix/dos2unix.c:545:4: note: cast the expression to void to silence this warning
/datasets/dos2unix/dos2unix.c:545:4: warning: function is not thread safe [concurrency-mt-unsafe]
   setlocale (LC_ALL, "");
   ^
/datasets/dos2unix/dos2unix.c:558:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_UTF8_FPRINTF(stderr, "dos2unix:");
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:558:5: note: cast the expression to void to silence this warning
    D2U_UTF8_FPRINTF(stderr, "dos2unix:");
    ^
./common.h:316:26: note: expanded from macro 'D2U_UTF8_FPRINTF'
#define D2U_UTF8_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:559:5: warning: the value returned by this function should be used [cert-err33-c]
    D2U_ANSI_FPRINTF(stderr, " %s\n", strerror(errno));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:559:5: note: cast the expression to void to silence this warning
    D2U_ANSI_FPRINTF(stderr, " %s\n", strerror(errno));
    ^
./common.h:317:26: note: expanded from macro 'D2U_ANSI_FPRINTF'
#define D2U_ANSI_FPRINTF fprintf
                         ^
/datasets/dos2unix/dos2unix.c:559:39: warning: function is not thread safe [concurrency-mt-unsafe]
    D2U_ANSI_FPRINTF(stderr, " %s\n", strerror(errno));
                                      ^
/datasets/dos2unix/dos2unix.c:565:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ( ((ptr=strrchr(argv[0],'/')) == NULL) && ((ptr=strrchr(argv[0],'\\')) == NULL) )
         ^
/datasets/dos2unix/dos2unix.c:565:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/dos2unix.c:565:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/dos2unix.c:565:50: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ( ((ptr=strrchr(argv[0],'/')) == NULL) && ((ptr=strrchr(argv[0],'\\')) == NULL) )
                                                 ^
/datasets/dos2unix/dos2unix.c:565:50: note: if it should be an assignment, move it out of the 'if' condition
/datasets/dos2unix/dos2unix.c:565:50: note: if it is meant to be an equality check, change '=' to '=='
/datasets/dos2unix/dos2unix.c:565:87: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ( ((ptr=strrchr(argv[0],'/')) == NULL) && ((ptr=strrchr(argv[0],'\\')) == NULL) )
                                                                                      ^
                                                                                       {
/datasets/dos2unix/dos2unix.c:567:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
       {
