Fix ignored-qualifiers warning
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 30 Dec 2025 09:13:52 +0000 (10:13 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 31 Dec 2025 11:11:25 +0000 (12:11 +0100)
commit7533ef096249a4e9331e5fb7dabb707186075e77
treea6698178d71a983e00dfd52ce6930a4a6ab3c1ea
parent209fd4a2079d66a2d9b43d4b80b1e03b523c71d7
Fix ignored-qualifiers warning

Original warning:
src/timefunc.hxx:418:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]

The function 'get_msec' was declared to return 'const long' but the const on
return by value is meaningless (the return value is a prvalue, not an lvalue).
Changed to 'long get_msec()' and also changed implementation to access
value.tv_nsec directly to avoid calling non-const get_nsec from const method.
src/timefunc.hxx