File tree Expand file tree Collapse file tree 6 files changed +13
-15
lines changed
reference/async_reference Expand file tree Collapse file tree 6 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ build:windows --host_platform=@ecsact_runtime//bazel/platforms:windows
11
11
build:linux --platforms=@ecsact_runtime//bazel/platforms:linux
12
12
build:linux --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux
13
13
14
+ build:no-warnings --per_file_copt=//.*@-Werror
15
+
16
+ common:linux:ci --config=no-warnings
14
17
common:ci --announce_rc
15
18
common:ci --disk_cache=~/.cache/bazel-disk-cache
16
19
test:ci --test_output=errors
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
3
#define ECSACT_DYLIB_UTIL_FN_PTR_DEFN (fn_name, unused ) \
4
- decltype (:: fn_name)(:: fn_name) = nullptr
4
+ decltype (fn_name)(fn_name) = nullptr
5
5
6
- #define ECSACT_DYLIB_UTIL_FN_PTR_ASSIGN (fn_name ) (:: fn_name) = nullptr
6
+ #define ECSACT_DYLIB_UTIL_FN_PTR_ASSIGN (fn_name ) (fn_name) = nullptr
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ FOR_EACH_ECSACT_SERIALIZE_API_FN(ECSACT_DYLIB_UTIL_FN_PTR_DEFN);
47
47
#define HAS_FN_CHECK (fn_name, target_fn_name ) \
48
48
if (std::strcmp(target_fn_name, #fn_name) == 0 ) return true
49
49
50
- #define ASSIGN_FN_IF (fn_name, target_fn_name, fn_ptr ) \
51
- if (std::strcmp(#fn_name, target_fn_name) == 0 ) { \
52
- :: fn_name = reinterpret_cast <decltype (:: fn_name)>(fn_ptr); \
53
- } \
50
+ #define ASSIGN_FN_IF (fn_name, target_fn_name, fn_ptr ) \
51
+ if (std::strcmp(#fn_name, target_fn_name) == 0 ) { \
52
+ fn_name = reinterpret_cast <decltype (fn_name)>(fn_ptr); \
53
+ } \
54
54
static_assert (true , " macro requires ;" )
55
55
56
56
bool ecsact_dylib_has_fn(const char * fn_name) {
Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ void async_reference::execute_systems() {
124
124
execution_thread = std::thread ([this ] {
125
125
using namespace std ::chrono_literals;
126
126
using clock = std::chrono::high_resolution_clock;
127
- using milliseconds = std::chrono::milliseconds;
128
127
using nanoseconds = std::chrono::nanoseconds;
129
128
using std::chrono::duration_cast;
130
129
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ static ecsact_async_error validate_instructions(
20
20
for (auto & component : components) {
21
21
auto view = std::views::filter (
22
22
components_range,
23
- [&components_range,
24
- &component](types::cpp_execution_component other_component) {
23
+ [&component](types::cpp_execution_component other_component) {
25
24
return component._id == other_component._id ;
26
25
}
27
26
);
@@ -52,8 +51,6 @@ ecsact_async_error validate_merge_instructions(
52
51
auto entities = util::get_cpp_entities (components);
53
52
auto other_entities = util::get_cpp_entities (other_components);
54
53
55
- auto empty_view = std::ranges::empty_view<int >{};
56
-
57
54
auto has_duplicates =
58
55
util::check_entity_merge_duplicates (entities, other_entities);
59
56
@@ -64,8 +61,7 @@ ecsact_async_error validate_merge_instructions(
64
61
for (auto & component : components) {
65
62
auto component_view = std::views::filter (
66
63
other_components,
67
- [&other_components,
68
- &component](types::cpp_execution_component other_component) {
64
+ [&component](types::cpp_execution_component other_component) {
69
65
return component._id == other_component._id ;
70
66
}
71
67
);
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ bool check_entity_duplicates(auto entities_view) {
50
50
return entity_id == other_entity;
51
51
});
52
52
int same_entity_count = 0 ;
53
- for (auto _ : duplicate_view) {
53
+ for ([[maybe_unused]] auto _ : duplicate_view) {
54
54
same_entity_count++;
55
55
if (same_entity_count > 1 ) {
56
56
return true ;
@@ -71,7 +71,7 @@ bool check_entity_merge_duplicates(
71
71
});
72
72
73
73
int same_entity_count = 0 ;
74
- for (auto _ : duplicate_view) {
74
+ for ([[maybe_unused]] auto _ : duplicate_view) {
75
75
same_entity_count++;
76
76
if (same_entity_count > 0 ) {
77
77
return true ;
You can’t perform that action at this time.
0 commit comments