Skip to content

Commit

Permalink
pw_chrono: Remove unnecessary parentheses
Browse files Browse the repository at this point in the history
The parentheses around pw_chrono_SystemClock_Duration sometimes
trigger -Wc99-extensions warnings since the statement is interpreted as
a compound literal.

Change-Id: I0b1d8a4a6e32fc549054ba96c09e7df067ff171c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/96180
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
  • Loading branch information
255 authored and CQ Bot Account committed May 27, 2022
1 parent 09949ee commit bc08f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pw_chrono/public/pw_chrono/internal/system_clock_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#pragma once

#define _PW_SYSTEM_CLOCK_DURATION(num_ticks) \
((pw_chrono_SystemClock_Duration){.ticks = (num_ticks)})
(pw_chrono_SystemClock_Duration{.ticks = (num_ticks)})

// clang-format off

Expand Down

0 comments on commit bc08f73

Please sign in to comment.