1. 09 Jul, 2018 3 commits
    • Ian Campbell's avatar
      Fix two warnings about implicit fallthrough. · 585cb1d4
      Ian Campbell authored
      
      
      In the first case:
      
          pio.c: In function ‘main’:
          pio.c:355:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
              usage(0);
              ^~~~~~~~
          pio.c:356:3: note: here
             case 'm':
             ^~~~
      
      The fallthrough is not intended because `usage()` never returns (it calls
      `exit` unconditionally). Annotate as `noreturn` so the compiler realises this.
      
      In the second case:
      
          fexc.c: In function ‘main’:
          fexc.c:312:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
             filename[1] = argv[optind+1]; /* out */
             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
          fexc.c:313:2: note: here
            case 1:
            ^~~~
      
      The fallthrough appears to be intended (the two argument case is a superset of
      the one argument case). Annotate with a comment which tells the compiler this
      is intended.
      Signed-off-by: default avatarIan Campbell <ijc@hellion.org.uk>
      585cb1d4
    • Andre Przywara's avatar
      pio: add missing return statement · 1082b168
      Andre Przywara authored
      
      
      main() should return 0 if execution was successful.
      Signed-off-by: default avatarAndre Przywara <osp@andrep.de>
      1082b168
    • Andre Przywara's avatar
      pio: fix typo in help message · 7e8be239
      Andre Przywara authored
      
      Signed-off-by: default avatarAndre Przywara <osp@andrep.de>
      7e8be239
  2. 26 Oct, 2016 1 commit
  3. 24 Oct, 2016 1 commit
  4. 04 May, 2016 1 commit
  5. 03 May, 2016 1 commit
  6. 20 Apr, 2016 1 commit
  7. 13 Sep, 2015 1 commit
  8. 29 Jan, 2014 1 commit
  9. 12 Apr, 2013 1 commit
  10. 21 Jan, 2013 1 commit
  11. 29 Sep, 2012 1 commit
  12. 04 Sep, 2012 2 commits
  13. 07 Aug, 2012 1 commit
  14. 31 Jul, 2012 7 commits