[ovs-git] [openvswitch/ovs] 463ec4: stopwatch: Fix some minor coding style issues.

GitHub noreply at github.com
Fri Apr 6 19:57:56 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 463ec4065b61efced7cddc24ce644bf47664583d
      https://github.com/openvswitch/ovs/commit/463ec4065b61efced7cddc24ce644bf47664583d
  Author: Justin Pettit <jpettit at ovn.org>
  Date:   2018-04-06 (Fri, 06 Apr 2018)

  Changed paths:
    M lib/stopwatch.c
    M lib/stopwatch.h

  Log Message:
  -----------
  stopwatch: Fix some minor coding style issues.

Signed-off-by: Justin Pettit <jpettit at ovn.org>
Acked-by: Mark Michelson <mmichels at redhat.com>


  Commit: 098ab9f14553161cec6146bec918513cea9a1933
      https://github.com/openvswitch/ovs/commit/098ab9f14553161cec6146bec918513cea9a1933
  Author: Justin Pettit <jpettit at ovn.org>
  Date:   2018-04-06 (Fri, 06 Apr 2018)

  Changed paths:
    M lib/stopwatch.c

  Log Message:
  -----------
  stopwatch: Explicitly ignore write() return value.

In some environments, builds would fail with the following error:

    lib/stopwatch.c: In function ‘stopwatch_exit’:
    lib/stopwatch.c:448:5: error: ignoring return value of ‘write’, declared
    with attribute warn_unused_result [-Werror=unused-result]
  write(stopwatch_pipe[1], &pkt, sizeof pkt);

This patch explicitly ignores the return value of write().

Signed-off-by: Justin Pettit <jpettit at ovn.org>
Acked-by: Mark Michelson <mmichels at redhat.com>


Compare: https://github.com/openvswitch/ovs/compare/a5b3e2a6f219...098ab9f14553


More information about the git mailing list