[parrot/parrot] 60cfac: [GH #836] Improve parsing pmc2c UNUSED arguments

GitHub noreply at github.com
Tue Sep 18 17:30:25 UTC 2012


  Branch: refs/heads/rurban/pmc2c-unused-gh836
  Home:   https://github.com/parrot/parrot
  Commit: 60cfaca0ca97ec9a47893eb8037015e428ce56f6
      https://github.com/parrot/parrot/commit/60cfaca0ca97ec9a47893eb8037015e428ce56f6
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

  Changed paths:
    M lib/Parrot/Pmc2c/Method.pm

  Log Message:
  -----------
  [GH #836] Improve parsing pmc2c UNUSED arguments

UNUSED(arg) amcros are now detected in pmc bodies and change the argument declaration
to SHIM().
Empty bodies with return 1; are now detected and the two args are SHIMed.
UNUSED(interp) cause a new warning to be replaced by UNUSED(INTERP).


  Commit: 6afb068a5c723e27e323c59a7b87007a8109dc43
      https://github.com/parrot/parrot/commit/6afb068a5c723e27e323c59a7b87007a8109dc43
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

  Changed paths:
    M config/auto/warnings.pm

  Log Message:
  -----------
  warnings: Improve clang support

clang requires warnings overrides for -Wno-parentheses-equality
and adds -Wno-unused-result to src/ops/core_ops.c.
(used in 29582199aef9ea9462 [GH #828] Optimize print_n/i and say_n/i)


  Commit: a95f757e247a3099d3c8a2ff5d6c7a1f234b3200
      https://github.com/parrot/parrot/commit/a95f757e247a3099d3c8a2ff5d6c7a1f234b3200
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

  Changed paths:
    M config/gen/makefiles/root.in

  Log Message:
  -----------
  Add ccwarn::src/ops/core_ops.c SUFFIX OVERRIDE for using (void)Parrot_io_write_b

Added with 29582199aef9ea94622b4202aee129521bc


  Commit: ef4b571b684f1c9d6148dc9fa2a31112f1c45060
      https://github.com/parrot/parrot/commit/ef4b571b684f1c9d6148dc9fa2a31112f1c45060
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

  Changed paths:
    M src/ops/core.ops
    M src/ops/core_ops.c
    M src/pmc/key.pmc

  Log Message:
  -----------
  Add more UNUSED() declarations to key.pmc and core.ops


Compare: https://github.com/parrot/parrot/compare/60cfaca0ca97^...ef4b571b684f


More information about the parrot-commits mailing list