akallabeth
b9202bd0b1
[clang-tidy] disable cert-dcl50-cpp
...
we do want to use variadic macros in C++ code as we interface with C
2024-09-04 22:20:59 +02:00
akallabeth
e3f94e6622
nodiscard
2024-09-04 22:17:35 +02:00
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
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
akallabeth
6d8d4ddb1a
Merge pull request #10541 from akallabeth/warn-pedantic
...
Warn pedantic
2024-08-31 11:33:24 +02:00
akallabeth
6fb7bfd043
[winpr,unwind] fix _Unwind_GetLanguageSpecificData
...
The function has various return value definitions (void* or uintptr_t)
and no proper API versioning. So cast to the expected type regardless of
actual definition and silence linter for this specific line.
2024-08-31 11:17:54 +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
1dea19ac5f
[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 16:01:11 +02:00
akallabeth
5887f8a558
[warnings] suppress warnings
...
Some warnings can not be solved as they depend on external libraries or
limitations of the C standard.
Suppress these warnings selectively
2024-08-30 15:40:16 +02:00
akallabeth
36fbed25c9
[winpr,include] define warning ignore macros
...
Define new macros to ignore specific compiler warnings:
* WINPR_PRAGMA_DIAG_IGNORED_OVERLENGTH_STRINGS
* WINPR_PRAGMA_DIAG_IGNORED_QUALIFIERS
2024-08-30 15:40:13 +02:00
akallabeth
3674c5c2f7
[common,assistance] eliminate pedantic cast warnings
2024-08-30 15:40:10 +02:00
akallabeth
7c1fd71b7b
[uwac] elminate pedantic warnings from defines
2024-08-30 15:40:08 +02:00
akallabeth
48aaa53a84
[codec,dsp] fix restrict warning
2024-08-30 15:40:06 +02:00