Opened 5 weeks ago

Closed 5 weeks ago

#23575 closed defect (fixed)

Avoid printf warning in scheduler_ev_add

Reported by: teor Owned by: teor
Priority: Medium Milestone: Tor: 0.3.2.x-final
Component: Core Tor/Tor Version: Tor: 0.3.2.1-alpha
Severity: Normal Keywords: macos, os-type-variants, easy
Cc: dgoulet Actual Points: 0.1
Parent ID: Points: 0.1
Reviewer: Sponsor:

Description

  CC       src/common/compat_threads.o
src/or/scheduler.c:511:55: error: format specifies type 'long' but the argument
      has type '__darwin_suseconds_t' (aka 'int') [-Werror,-Wformat]
                       "%ld.%06ld", next_run->tv_sec, next_run->tv_usec);
                            ~~~~~                     ^~~~~~~~~~~~~~~~~
                            %06d
./src/common/torlog.h:230:51: note: expanded from macro 'log_warn'
  log_fn_(LOG_WARN, domain, __FUNCTION__, args, ##__VA_ARGS__)

Child Tickets

Change History (3)

comment:1 Changed 5 weeks ago by teor

Owner: set to teor
Status: newassigned

See my branch bug23575.
Should have compiled on macOS before releasing... where's my MacMini build farm? :-)

comment:2 Changed 5 weeks ago by teor

Keywords: easy added
Status: assignedneeds_review

comment:3 Changed 5 weeks ago by nickm

Resolution: fixed
Status: needs_reviewclosed

merged

Note: See TracTickets for help on using tickets.