File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,7 @@ if (LLAMA_ALL_WARNINGS)
432
432
${warning_flags}
433
433
-Wmissing-declarations
434
434
-Wmissing-noreturn
435
+ -Wextra-semi
435
436
)
436
437
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) # clang++ only
437
438
set (cxx_flags ${cxx_flags} -Wmissing-prototypes -Wrange-loop-bind-reference )
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ endif # LLAMA_DISABLE_LOGS
176
176
WARN_FLAGS = -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function
177
177
MK_CFLAGS += $(WARN_FLAGS ) -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes \
178
178
-Werror=implicit-int
179
- MK_CXXFLAGS += $(WARN_FLAGS ) -Wmissing-declarations -Wmissing-noreturn
179
+ MK_CXXFLAGS += $(WARN_FLAGS ) -Wmissing-declarations -Wmissing-noreturn -Wextra-semi
180
180
181
181
# TODO(cebtenzzre): remove this once PR #2632 gets merged
182
182
TTFS_CXXFLAGS = $(CXXFLAGS ) -Wno-missing-declarations
Original file line number Diff line number Diff line change @@ -606,9 +606,9 @@ struct printer {
606
606
virtual ~printer () {}
607
607
608
608
FILE * fout;
609
- virtual void print_header (const cmd_params & params) { (void ) params; };
609
+ virtual void print_header (const cmd_params & params) { (void ) params; }
610
610
virtual void print_test (const test & t) = 0;
611
- virtual void print_footer () { };
611
+ virtual void print_footer () { }
612
612
};
613
613
614
614
struct csv_printer : public printer {
Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ struct hash_map * new_hash_map() {
497
497
result->vals [i] = NULL ;
498
498
}
499
499
return result;
500
- };
500
+ }
501
501
502
502
void free_hash_map (struct hash_map * map) {
503
503
delete map;
@@ -594,7 +594,7 @@ struct ggml_tensor * ggml_recompute_graph_node(
594
594
ggml_format_name (clone, " %s (clone)" , ggml_get_name (node));
595
595
596
596
return clone;
597
- };
597
+ }
598
598
599
599
void ggml_build_backward_gradient_checkpointing (
600
600
struct ggml_context * ctx,
You can’t perform that action at this time.
0 commit comments