Steffen Olszewski
315d5ae498
Fix compilation on GCC 4.6
...
The compiler flag `-fcf-protection` is only available since GCC 8.1.
Closes #892
2023-11-21 19:57:37 +01:00
Sébastien Gallou
5ccad57d78
Try to fix cross-compile for Raspberry Pi with GCC version < 8.1
2023-11-08 15:26:31 +01:00
Alex Kong
5d552e9625
new fix
2023-10-29 11:27:06 +08:00
Steffen Olszewski
0b73f01703
Prevent unintended removal of local CMake variables
...
Without quotes list expansion happens inside the set-call, if the list is empty,
this actually unsets the variable. This is not intended and could lead to
unwanted side effects. List expansion is not required there, quoting the
variable results in setting the variable to empty for empty lists.
2023-10-20 19:13:54 +02:00
Alex Kong
ad6a6906bc
comment out fcf-protection
2023-10-14 17:14:15 +08:00
Alex Kong
dec7490f79
comment out fcf-protection
2023-10-14 17:13:12 +08:00
mamsds
3d0081ab34
comment out fcf-protection
2023-10-14 17:08:41 +08:00
Ferry Huberts
46fd1a6078
Fix Clang compiler warnings (-Wno-float-equal)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
cc929ed690
Fix Clang compiler warnings (-Wunused-lambda-capture)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
e54fad7fa4
Fix Clang compiler warnings (-Wunused-exception-parameter)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
ccfc3f8422
Fix Clang compiler warnings (-Wsign-conversion)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
330f64dd95
Fix Clang compiler warnings (-Winconsistent-missing-destructor-override)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
a93fa88897
Fix Clang compiler warnings (-Wshadow)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
244a86118d
Fix Clang compiler warning (-Wconditional-uninitialized)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
82beea0071
Fix Clang compiler warnings (-Wnewline-eof)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
aa02f4bb3f
Fix Clang compiler warnings (-Wextra-semi-stmt)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
7c0ef28449
Fix Clang compiler warnings (-Wextra-semi)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
97452f0c91
Add Clang compiler flags
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00
Ferry Huberts
1f9ad05fa5
Fix compiler warnings in compilation units (-Wsign-conversion)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-27 10:46:52 +02:00
Leonid Stryzhevskyi
104c4eb011
Merge pull request #828 from fhuberts/fix-Wsign-compare
...
Fix compiler warnings (-Wsign-compare)
2023-08-24 00:34:40 +03:00
Leonid Stryzhevskyi
72807d83ee
Merge pull request #826 from fhuberts/fix-Wlogical-op
...
Fix compiler warnings (-Wlogical-op)
2023-08-19 10:22:56 +03:00
Leonid Stryzhevskyi
2248156afa
Merge pull request #825 from fhuberts/fix-Wsuggest-attribute=noreturn
...
Fix compiler warnings (-Wsuggest-attribute=noreturn)
2023-08-19 10:20:37 +03:00
Leonid Stryzhevskyi
ae908b82ee
Merge pull request #827 from fhuberts/fix-Wsuggest-attribute=cold
...
Enable compiler warnings (-Wsuggest-attribute=cold)
2023-08-19 03:27:37 +03:00
Leonid Stryzhevskyi
217515591e
Merge pull request #824 from fhuberts/fix-Wshadow
...
Fix compiler warnings (-Wshadow)
2023-08-19 03:15:28 +03:00
Ferry Huberts
fabcc79ee1
Fix compiler warnings (-Wsign-compare)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-17 08:49:58 +02:00
Ferry Huberts
0bdc3b6aaa
Enable compiler warnings (-Wsuggest-attribute=cold)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-17 08:46:51 +02:00
Ferry Huberts
f6f2d27b85
Fix compiler warnings (-Wlogical-op)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-17 08:46:15 +02:00
Ferry Huberts
4652ad8682
Fix compiler warnings (-Wsuggest-attribute=noreturn)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-17 08:45:52 +02:00
Ferry Huberts
91a7b3ef9c
Fix compiler warnings (-Wshadow)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-17 08:45:19 +02:00
Ferry Huberts
4b82a5cadd
Fix compiler warnings (-Wdouble-promotion)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-17 08:44:35 +02:00
Leonid Stryzhevskyi
78f2232012
Merge pull request #822 from fhuberts/fix-Wdangling-reference
...
Fix compiler warnings (-Wdangling-reference)
2023-08-17 01:57:59 +03:00
Leonid Stryzhevskyi
75fc72b02c
Merge pull request #821 from fhuberts/fix-Wconversion
...
Fix compiler warnings (-Wconversion)
2023-08-17 01:56:31 +03:00
Leonid Stryzhevskyi
61f394ad4f
Merge pull request #820 from fhuberts/fix-Warith-conversion
...
Enable compiler warnings (-Warith-conversion)
2023-08-17 01:54:41 +03:00
Leonid Stryzhevskyi
ddd05b6ef5
Merge pull request #819 from fhuberts/fix-Wsuggest-attribute=format
...
Fix compiler warnings (-Wsuggest-attribute=format)
2023-08-17 01:53:28 +03:00
Ferry Huberts
9f97e4ae61
Fix compiler warnings (-Wdangling-reference)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 20:44:41 +02:00
Ferry Huberts
129dfeb782
Forgot to remove the flag -Wno-suggest-attribute=format
...
No impact on the build.
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 20:25:24 +02:00
Ferry Huberts
85ee98509a
Fix compiler warnings (-Wconversion)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 14:02:42 +02:00
Ferry Huberts
7b3c54426c
Enable compiler warnings (-Warith-conversion)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 14:00:42 +02:00
Ferry Huberts
6dfe302829
Fix compiler warnings (-Wsuggest-attribute=format)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 13:56:27 +02:00
Ferry Huberts
f116a9619a
Fix compiler warnings (-Wuseless-cast)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 13:48:14 +02:00
Ferry Huberts
2b4f8f023b
These are C++ compiler flags
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-15 15:14:30 +02:00
Ferry Huberts
2a6c8e2692
Only test compiler flags when needed
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-15 13:52:23 +02:00
Ferry Huberts
0d2985cacd
Add some comments
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-14 23:10:08 +02:00
Ferry Huberts
6553029e2f
Only apply the compiler flags for GNU
...
That's what they are originally tuned for.
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-14 23:10:08 +02:00
Ferry Huberts
16392c700b
Convert all 'add_compiler_flags' to 'add_cxx_compiler_flags'
...
This codebase only contains C++ code.
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-14 23:10:08 +02:00
Ferry Huberts
c0f0b46ed8
Remove a superfluous line
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-14 23:10:08 +02:00
Leonid Stryzhevskyi
52b0d0b613
Merge pull request #805 from fhuberts/fix-Wold-style-cast
...
Fix compiler warnings (-Wold-style-cast)
2023-08-12 04:00:45 +03:00
Ferry Huberts
967a6906a4
Fix compiler warnings (-Wctor-dtor-privacy)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-07 18:03:01 +02:00
Leonid Stryzhevskyi
ec227380e4
Merge pull request #808 from fhuberts/fix-Wmissing-field-initializers
...
Fix compiler warnings (-Wmissing-field-initializers)
2023-08-07 17:36:42 +03:00
Ferry Huberts
c81189a775
Fix compiler warnings (-Wmissing-field-initializers)
...
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-07 11:15:39 +02:00