akallabeth
64a0d87c98
fix missing prototype
2024-09-04 22:15:38 +02:00
akallabeth
798421e883
fix missing static for functions
2024-09-04 22:12:32 +02:00
akallabeth
9ae37b094f
fix implicit widening of multiplication result
2024-09-04 22:01:09 +02:00
akallabeth
8b92e17e60
modernize includes
2024-09-04 22:00:12 +02:00
akallabeth
b980bf2e14
[winpr,clipboard] use endian safe bitmap read/write
2024-09-04 21:56:44 +02:00
akallabeth
6a1c3b4545
[function pointer] use macro for GetProcAddress
...
Cast all results of GetProcAddress with WINPR_FUNC_PTR_CAST
2024-09-04 21:31:48 +02:00
akallabeth
889ae65a1f
[warnings] add WINPR_CAST_CONST_PTR_AWAY
...
simple macro casting a const pointer to a non const one.
2024-09-04 20:55:17 +02:00
akallabeth
245afb706c
[function pointers] unify casts with macro
2024-09-04 20:06:45 +02:00
akallabeth
1a9766e190
[warnings] fix function pointer casts
2024-09-04 20:06:43 +02:00
akallabeth
9776cc109e
[crypto,tls] simplify function pointer cast
2024-09-04 20:06:40 +02:00
akallabeth
a82821b756
[winpr,stream] fix return value
...
signed int functions should not return unsigned values
2024-09-04 13:17:50 +02:00
akallabeth
d959121b2f
[winpr,stream] add returning stream read/peek
...
To make use easier add Stream functions that return the value read
instead of taking it as argument.
2024-09-04 13:17:43 +02:00
akallabeth
9c6126c470
[winpr,comm] build generic serial-port support
...
* Disable linux specific code if build on *BSD
* Build stub to just return NULL for unsupported platforms
2024-09-04 12:50:49 +02:00
akallabeth
e37dffaca4
[crypto,tls] disable linter warning
...
the argument is #ifdefed, so some configurations produce a warning
2024-09-04 12:50:46 +02:00
akallabeth
0eb0cff367
[winpr,utils] fix integer size warnings
2024-09-04 12:50:43 +02:00
akallabeth
5aff241096
Merge pull request #10554 from akallabeth/tidy-silence
...
Tidy silence
2024-09-04 10:35:22 +02:00
akallabeth
9df86daf28
[winpr,comm] add missing includes
2024-09-04 10:14:07 +02:00
akallabeth
5e123735fa
[warnings] fixed sign-compare
2024-09-04 10:14:05 +02:00
akallabeth
3eb905cfb1
Merge pull request #10553 from akallabeth/tables-fn-fix
...
[channels] fix function pointer casts
2024-09-04 10:13:02 +02:00
akallabeth
b6e72c7674
Merge pull request #10551 from akallabeth/arch-fixes
...
Arch fixes
2024-09-04 09:56:35 +02:00
akallabeth
2fc791fe9b
[client,X11] fix shadowed variable
2024-09-04 09:45:00 +02:00
akallabeth
3e933203e2
[crypto,tls] fix bad-function-cast
...
do silence the compiler warning and add a comment why we do that.
2024-09-04 09:41:53 +02:00
akallabeth
ff62730419
[channels] fix function pointer casts
...
* Cast freerdp_load_channel_addin_entry return with a union (removes the
incompatible function pointer cast warnings)
* Typedef function pointers in tables.h
2024-09-04 09:12:41 +02:00
akallabeth
c851dfcb7f
Merge pull request #10546 from akallabeth/sign-compare-fix
...
Sign compare fix
2024-09-04 09:11:50 +02:00
akallabeth
ebbfe598dc
[winpr,utils] unify bitmap reading
...
* clipboard synthesizer needs to read the bitmap header, use the function
from utils/image
* check bitmap header in utils/image and abort if wrong
2024-09-04 09:07:18 +02:00
akallabeth
c5f346488f
[crypto,tls] revert const argument
...
with some build options this needs to be writeable.
2024-09-04 09:03:21 +02:00
akallabeth
16d6c3b795
[clang-tidy] disable modernize-return-braced-init-list
...
this check does not work well with older C++ standards
2024-09-03 17:41:02 +02:00
akallabeth
9a027833b9
[warnings] fix misplaced widening cast
2024-09-03 17:40:55 +02:00
akallabeth
fe6d861a5c
[channels] fix VCAPITYPE for all channel entry points
2024-09-03 17:26:58 +02:00
akallabeth
491c884c7a
[cmake] remove casts from tables.c
2024-09-03 15:15:08 +02:00
akallabeth
b77d6e8550
[channels] fix function pointer casts
...
* Cast freerdp_load_channel_addin_entry return with a union (removes the
incompatible function pointer cast warnings)
* Typedef function pointers in tables.h
2024-09-03 15:13:58 +02:00
akallabeth
f3d84d4557
[warnings] use ARRAYSIZE macro
2024-09-03 15:10:58 +02:00
akallabeth
baa70d1ab6
[warnings] fix compare integers of different signs
2024-09-03 15:10:46 +02:00
akallabeth
cbeded839d
Merge pull request #10545 from akallabeth/warn-cleanups
...
Warn cleanups
2024-09-03 13:22:40 +02:00
akallabeth
a89aefa8d4
[winpr,smartcard] disable linter warnings
...
* silenced readability-non-const-parameter warnings that can not be
changeddue to API requirements
2024-09-03 13:07:16 +02:00
akallabeth
734d4ce43e
[rdtk] fix integer cast warnings
2024-09-03 12:56:21 +02:00
akallabeth
ca5a8e0625
[ci,clang-tidy] disable cppcoreguidelines-macro-to-enum
2024-09-03 12:56:13 +02:00
akallabeth
42b078a59d
[emu,scard] smartcard emulation cleanup
...
* Fix readability-non-const-parameter (disable lint, API requires these
to be non const)
* Return an appropriate error for functions returning
SCARD_E_UNSUPPORTED_FEATURE if there is a parameter wrong
* Remove unused functions
2024-09-03 12:24:55 +02:00
akallabeth
5a4a1a40ad
fix declaration and implementation parameter names
2024-09-03 12:24:53 +02:00
akallabeth
f7fd817d1c
[warnings] fix redundant casting
2024-09-03 12:24:51 +02:00
akallabeth
72ae7fb54f
[nolint] add cert-dcl37-c,cert-dcl51-cpp
2024-09-03 12:24:48 +02:00
akallabeth
852e0c1450
[common,assistance] fix shadowed variable
2024-09-03 12:17:33 +02:00
akallabeth
cbae4155fb
[client,SDL] delete unused copy & move constructors
2024-09-03 12:17:20 +02:00
akallabeth
96bdd58226
Merge pull request #10544 from akallabeth/double-fixes
...
Double fixes
2024-09-03 08:55:13 +02:00
Armin Novak
fe4cb6de65
[warnings] fix float/double warnings
2024-09-02 16:20:20 +02:00
Armin Novak
7c537d681f
[winpr,file] mark winpr_fopen with WINPR_ATTR_MALLOC
...
enable allocator/deallocator checks for FILE* created by this function
2024-09-02 14:39:53 +02:00
akallabeth
654e107ade
Merge pull request #10543 from akallabeth/wfixes
...
[codec,dsp] fix ffmpeg warnings
2024-09-02 14:30:22 +02:00
Armin Novak
4b62174c4f
[winpr,platform] fix unknown-warning-option
2024-09-02 14:13:10 +02:00
Armin Novak
11a9c010f9
[winpr] wtypes NOLINT
...
Silence linter for basic type definitions that use reserved identifiers
2024-09-02 13:56:07 +02:00
Armin Novak
5791b2a5aa
[codec,dsp] fix ffmpeg warnings
2024-09-02 13:39:12 +02:00