142 Commits

Author SHA1 Message Date
Armin Novak
ea77d2d922 [nodiscard] fix all InitOnceExecuteOnce usages 2026-02-27 15:52:28 +01:00
Armin Novak
822257bf7c [c23,winpr] replace NULL with nullptr 2026-02-26 21:16:48 +01:00
Armin Novak
48267edf2f [winpr] add WINPR_C_ARRAY_INIT
since C23 allows c++ style initializing replace direct use with this
macro
2026-02-25 19:23:08 +01:00
akallabeth
0dedeeb75b Update timezone definitions 2025-10-13 10:22:53 +00:00
akallabeth
296686e03f [winpr,timezone] udpate dotnet version for tzextract 2025-10-13 12:20:42 +02:00
Armin Novak
6cfdf9e43e [json] use WINPR_JSON_GetObjectItemCaseSensitive
Prefer usage of case sensitive functions that are faster.
2025-09-23 12:38:23 +02:00
Armin Novak
113b73512c [CMake,winpr] add pkg-config dependencies
Depending on CMake variables add cmake required.private options
2025-09-11 07:17:33 +02:00
akallabeth
65f18983ed [warnings] Fix format string errors
* Fix casts of format string arguments (%p requires void*)
* Fix format string to match type of arguments
2025-08-13 15:09:48 +02:00
akallabeth
c3e507a82e [winpr,wlog] Replace WLog_PrintMessage calls
Prefer WLog_PrintTextMessage to have proper format string checks in
place.
2025-08-13 15:08:01 +02:00
Mark Nauwelaerts
bb3871741b [winpr,timezone] ensure thread-safe initialization 2025-07-31 19:03:30 +02:00
akallabeth
022871969c [winpr,timezone] use new JSON config reader 2025-05-26 19:36:40 +02:00
akallabeth
1ba91069ce [cmake,winpr] set policy CMP0177 2025-05-13 09:21:57 +02:00
akallabeth
9cd3ffa843 Update timezone definitions 2025-04-11 05:06:20 +00:00
Armin Novak
e4df43a37a [freerdp] fix argument consistency, casts 2025-03-19 19:32:09 +01:00
Armin Novak
b14f9e8965 [winpr] refactor complex expressions
* avoid unnecessary casts
2025-03-19 19:00:09 +01:00
akallabeth
a520f845a3 [warnings] fix -Wunused-macro
comment or delete macros that were not used.
2025-02-26 22:12:18 +01:00
akallabeth
76c2944d99 [winpr,warnings] fix -Wunused-parameter 2025-02-13 15:53:51 +01:00
akallabeth
ea2022b76b [clang,tidy] fix warnings 2025-01-15 09:32:52 +01:00
akallabeth
87e6ceca98 Merge pull request #11083 from akallabeth/tz-bias-reset
[winpr,timezone] unify reset of Daylight/StandardBias
2025-01-14 22:52:26 +01:00
akallabeth
52708ad86d [winpr,timezone] unify reset of Daylight/StandardBias 2025-01-14 21:58:27 +01:00
akallabeth
df158b7e5c [winpr,timezone] fix dst bias 2025-01-14 19:57:54 +01:00
akallabeth
eac37a7c65 [winpr,timezone] restore TZ after decoding current time 2025-01-14 18:09:56 +01:00
akallabeth
5a45a8cad4 [winpr,timezone] unify TZ override and restore 2025-01-14 09:13:44 +01:00
akallabeth
d331f8eb3f [winpr,timezone] reset timezone with tzset
when iterating over timezones and reset to original call tzset again to
reflect that new old timezone setting
2024-12-20 11:18:46 +01:00
akallabeth
a8b05717bf [cmake] set SYSTEM for external includes
* add winpr_system_includ_directory_add macro for WinPR related external
  include directories
* set target property SYSTEM for SDL related targets
2024-12-18 20:41:59 +01:00
akallabeth
344841714c Merge pull request #10844 from akallabeth/cmake-mulitconfig
Cmake multiconfig
2024-12-07 17:43:05 +01:00
akallabeth
83f2f21ad3 [warnigns] fix lots of bugprone warnings
* update-settings-tests: properly cast types in getter/setter
* wtypes: fix PHANDLE definition
* wStream: fix INT64 write function warnings
* Simplify HANDLE copy in channels, just assign after proper cast
2024-12-06 09:15:48 +01:00
akallabeth
ba8fd2ada5 [cmake] force configuration options
limit multiconfiguration options to supported types
2024-12-05 09:36:23 +01:00
akallabeth
faae38120c [cmake,format] reformat all cmake files 2024-11-27 20:41:48 +01:00
Martin Fleisz
1520d94d33 Merge pull request #10797 from akallabeth/warn-fixes
Warn fixes
2024-11-07 13:50:51 +01:00
akallabeth
4ec28e1f82 [warnings] fix -Wimplicit-int-conversion 2024-10-31 11:42:29 +01:00
akallabeth
aa954d9be9 [warnings] fix various compiler warnings 2024-10-29 15:49:43 +01:00
akallabeth
a3aa01214c [resource root] unify locations
unify resource locations in case WITH_BINARY_VERSIONING is set.
2024-10-25 11:40:40 +02:00
akallabeth
7ea8774728 Update timezone definitions 2024-10-12 07:08:14 +00:00
akallabeth
d56fac7582 [ci,timezone] remove clang-format off
we do format the files now properly before creating the automated pull,
the workaround is no longer required
2024-10-12 09:04:39 +02:00
akallabeth
969e212570 [winpr,timezone] skip newline in generated timezonemap 2024-10-12 08:51:00 +02:00
akallabeth
2cbb5685b4 [winpr,timezone] deactivate clang-format for generated files 2024-10-11 09:16:37 +02:00
akallabeth
6c8c67b385 Merge pull request #10677 from akallabeth/int-narrow
Int narrow
2024-10-03 21:17:56 +02:00
akallabeth
4a0f996d42 [winpr,timezone] fix integer narrow 2024-10-03 18:58:37 +02:00
akallabeth
574742bae8 [warnings] annotate readability-non-const-parameter 2024-10-01 13:05:19 +02:00
akallabeth
26003e59cc [va_list] initialize with ={0}; 2024-09-24 11:06:18 +02:00
akallabeth
586f40631f [warnings] fix shorten-64-to-32 2024-09-17 16:13:48 +02:00
akallabeth
cd18dea174 [return checks] fix use of unicode functions 2024-09-16 06:48:26 +02:00
akallabeth
71080e61b0 [warnings] fix a bunch of them
* fix uninitialized variable warnings
 * modivy ndr_context_* functions to utilize WINPR_ATTR_MALLOC
 * build_krbtgt use winpr_asprintf
 * add proper Stream_Write_UINT64_BE
2024-09-14 08:24:28 +02:00
akallabeth
66153045be [winpr,timezone] Include TimeZoneNameMap as header
* Update tzextract to generate header
* Update TimeZoneNameMapUtils to include header
2024-09-11 23:41:58 +02:00
akallabeth
398efacb10 Update timezone definitions 2024-09-11 05:06:45 +00:00
akallabeth
5e123735fa [warnings] fixed sign-compare 2024-09-04 10:14:05 +02:00
akallabeth
1d33095500 [warnings] fix cert-err33-c
Fix unused return values, cast to void if on purpose
2024-08-29 10:19:27 +02:00
Armin Novak
b2e15b5f75 [winpr,timezone] disable clang-format for WindowsZones 2024-08-12 10:49:10 +02:00
akallabeth
70e9f4c5ea Create timezone-update.yml 2024-07-23 14:26:23 +02:00