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
Armin Novak
6cebb3e0cd
[winpr] fix sign warnings
2026-02-24 16:23:15 +01:00
Armin Novak
118afc0b95
[allocations] fix growth of preallocated buffers
...
* Replace * 2 with * sizeof(WCHAR) for string usages
* Grow streams and other buffers reasonably, e.g. add 128 elements per
try and check for possible overflows
* Add constant postfix to force them to 64bit
2026-02-17 13:54:34 +01:00
akallabeth
a1d3117aae
[c,printf] fix wlog format string to match arguments
2026-01-16 11:42:51 +01:00
akallabeth
b7dd905aee
[winpr,crt] fix uriUnescapeInPlaceExA call arguments
2026-01-09 09:24:27 +01:00
akallabeth
74648eb3a9
[c,standard] use C99 inline
2025-09-26 11:29:26 +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
Armin Novak
4fadd12047
fix clang-tidy warnings
2025-08-20 11:28:18 +02:00
Armin Novak
e87ef20f55
[winpr,crt] always convert to/from UTF-16LE
2025-08-20 09:15:56 +02:00
lazy5f
706110ef4e
[winpr] Put '\0' when converting empty string to wstr
2025-04-20 18:06:15 +09: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
307bf48870
[warnings] fix integer casting in winpr
...
* use WINPR_ASSERTING_INT_CAST to detect overflows in sign or narrow
integer casts
* replace defines with static variables
2025-01-03 10:08:57 +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
795914e50c
[winpr,assert] always compile in assert helper
2024-12-18 14:12:10 +01:00
akallabeth
964063a369
[winpr,cast] split cast macros to header
...
* Simplify winpr/assert.h to have the least possible includes
* Move some definitions to winpr/platform.h
* Split and move cast macros to winpr/cast.h
* Add new cast macro for integer casts
2024-12-18 14:12:06 +01:00
akallabeth
f63a5a5a1f
[winpr,endian] Use new winpr_Data_Write_* names
2024-12-08 22:55:58 +01:00
akallabeth
6dd1ee3055
[winpr,endianess] replace usage of Data_Read_*
...
Use new and improved winpr_Data_Get_*
2024-12-08 22:55:56 +01:00
akallabeth
faae38120c
[cmake,format] reformat all cmake files
2024-11-27 20:41:48 +01:00
akallabeth
b5f95e0f87
[codespell] fix spelling mistakes
2024-11-21 11:28:06 +01:00
stephanebill
4f2afa8c47
spell check with codespell
2024-11-20 16:53:40 -05:00
akallabeth
0c57fdc300
[winpr,crt] add winpr_asprintf unit test
2024-11-13 21:49:11 +01:00
akallabeth
0b8de6f4b5
[winpr,crt] fix off by one in winpr_vasprintf
2024-11-13 21:04:02 +01:00
akallabeth
db07add07a
[deprecation] replace all usages of sprintf
2024-11-12 16:46:11 +01:00
akallabeth
78acedb40e
[warnigns] fix Wshorten-64-to-32
2024-11-11 10:22:37 +01:00
Martin Fleisz
1520d94d33
Merge pull request #10797 from akallabeth/warn-fixes
...
Warn fixes
2024-11-07 13:50:51 +01:00
akallabeth
d070857c03
[winpr,string] add wcsndup
2024-11-07 11:46:55 +01:00
akallabeth
2b95757a7a
[warnings] fix redundant casts
2024-10-29 15:49:59 +01:00
Armin Novak
527db6783b
[cmake] split tests
...
* Keep BUILD_TESTING, but only run tests compatible with API (for
packaging)
* Add BUILD_TESTING_INTERNAL for all tests including internal function
tests that modify API to be run on our CI
2024-10-24 09:45:44 +02:00
akallabeth
f346b94835
replace SIZE_T with size_t
2024-10-17 12:40:22 +02:00
akallabeth
bd28c2d4bf
[warnings] fix integer narrowing
2024-10-14 10:31:41 +02:00
akallabeth
47c5070805
Merge pull request #10635 from akallabeth/initialize-variables
...
Initialize variables
2024-09-30 16:04:20 +02:00
akallabeth
9d478c2ce7
[winpr,crt] fix redundant casts
2024-09-30 09:32:04 +02:00
akallabeth
f529345d84
[warnings] fix Wcast-qual
2024-09-30 09:31:36 +02:00
akallabeth
26003e59cc
[va_list] initialize with ={0};
2024-09-24 11:06:18 +02:00
akallabeth
cd18dea174
[return checks] fix use of unicode functions
2024-09-16 06:48:26 +02:00
akallabeth
0d5bc92a2b
[warnings] fix apple iOS/macos
2024-09-15 19:47:13 +02:00
akallabeth
adc4f2abf8
[warnings] fix unused variables
2024-09-12 13:29:58 +02:00
akallabeth
384cd284d8
[warnings] use WINPR_CAST_CONST_AWAY
...
on locations that require (ugly) const to non const casts usw
WINPR_CAST_CONST_AWAY to do proper compiler specific casts to avoid
warnings
2024-09-11 23:41:50 +02:00
akallabeth
e756c90569
[warnings] clang-tidy suppress warnings
...
* Suppress NOLINT(bugprone-suspicious-include)
* Suppress __STDC_WANT_LIB_EXT1__ 1 // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
2024-08-30 22:03:47 +02:00
akallabeth
6a3564407e
[warnings] fix clang-tidy issues in winpr
2024-08-29 15:20:39 +02:00
akallabeth
9c9d74e920
[warnings] fix redundant casts
2024-08-29 12:03:09 +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
d71af44bb1
[warnings] disable warnings for generated code
...
* Disable clang-tidy in test build directories
* Disable compiler warnings for test binary directories.
These contain generated code we can not change, so the warnings are just noise
2024-08-28 09:18:30 +02:00
akallabeth
71e78bedd7
[warnings] fixed sign and const
...
* fix various char/BYTE sign warnings
* fix various const warnings
* fix format string size_t
* remove unused CMake variables
2024-04-18 11:05:58 +02:00
akallabeth
f4b7c59915
[cmake] move platform defines to common include
...
* Move platform specific settings to a common CMake include
2024-03-20 09:11:08 +01:00
akallabeth
4b73e7525c
[winpr,crt] fix incompatible WCHAR pointer
2024-03-18 13:27:32 +01:00
akallabeth
d7ebec5a65
[tidy] move loop variable declaration to loop
2024-02-22 12:31:50 +01:00