~cjwatson/libpipeline/master

Viewing all changes in revision 253.

  • Committer: Colin Watson
  • Date: 2019-08-30 23:26:35 UTC
  • Revision ID: git-v1:3e16e86b050fec3e28aebeeeff48dc8b3b2af5e1
Simplify some GCC attribute handling

We have to be a little careful, as we can't use Gnulib in the public
<pipeline.h> header; but we can rely on it for internal compilation
units.

* lib/pipeline.c (passthrough): Use _GL_UNUSED rather than
PIPELINE_ATTR_UNUSED.
* tests/basic.c (pre_exec): Likewise.
* tests/common.h (MAIN): Likewise.
* tests/inspect.c (pid_helper): Likewise.
* tests/pump.c (tee_source): Likewise.
* lib/pipeline.h (PIPELINE_ATTR_UNUSED): Note that this is unused, but
preserved to avoid breaking (even undocumented) API.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: