[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 8f33228a1ae07a8ff9fe1
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: n0nb <n0...@us...> - 2025-09-07 23:44:50
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 8f33228a1ae07a8ff9fe10603f99dbbb076b25d2 (commit) via ed39ebb5eed395521dcd50ebde4725a5fb334d57 (commit) from 9f4e4d38467fb50e00e79a38fe1fd34f00dbc19d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 8f33228a1ae07a8ff9fe10603f99dbbb076b25d2 Merge: 9f4e4d384 ed39ebb5e Author: Nate Bargmann <n0...@n0...> Date: Sun Sep 7 18:10:15 2025 -0500 Merge GitHub PR #1893 commit ed39ebb5eed395521dcd50ebde4725a5fb334d57 Author: Christoph Berg <my...@de...> Date: Sun Sep 7 17:41:52 2025 +0200 lib/precise_time.c: Remove dead code The last branch of `#if _POSIX_TIMERS` was missing a declaration of "showme". Since that variable is not used anywhere, just drop it. diff --git a/lib/precise_time.c b/lib/precise_time.c index 677c516b5..5cc2c4d49 100644 --- a/lib/precise_time.c +++ b/lib/precise_time.c @@ -53,15 +53,8 @@ double monotonic_seconds() #include <time.h> -static int showme = 0; - double monotonic_seconds() { - if (showme) - { - showme = 0; - } - struct timespec time; // Note: Make sure to link with -lrt to define clock_gettime. @@ -170,11 +163,6 @@ static void __attribute__((constructor)) init_rdtsc_per_sec() double monotonic_seconds() { - if (showme) - { - showme = false; - } - return (double) rdtsc() / (double) rdtsc_per_sec; } ----------------------------------------------------------------------- Summary of changes: lib/precise_time.c | 12 ------------ 1 file changed, 12 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |