examples : fix extra ';' after function definitions (-Wextra-semi)
This commit is contained in:
parent
1191cc3769
commit
90eb6653f3
4 changed files with 6 additions and 5 deletions
|
@ -435,6 +435,7 @@ if (LLAMA_ALL_WARNINGS)
|
||||||
${warning_flags}
|
${warning_flags}
|
||||||
-Wmissing-declarations
|
-Wmissing-declarations
|
||||||
-Wmissing-noreturn
|
-Wmissing-noreturn
|
||||||
|
-Wextra-semi
|
||||||
)
|
)
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") # clang++ only
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") # clang++ only
|
||||||
set(cxx_flags ${cxx_flags} -Wmissing-prototypes)
|
set(cxx_flags ${cxx_flags} -Wmissing-prototypes)
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -176,7 +176,7 @@ endif # LLAMA_DISABLE_LOGS
|
||||||
WARN_FLAGS = -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function
|
WARN_FLAGS = -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function
|
||||||
MK_CFLAGS += $(WARN_FLAGS) -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes \
|
MK_CFLAGS += $(WARN_FLAGS) -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes \
|
||||||
-Werror=implicit-int
|
-Werror=implicit-int
|
||||||
MK_CXXFLAGS += $(WARN_FLAGS) -Wmissing-declarations -Wmissing-noreturn
|
MK_CXXFLAGS += $(WARN_FLAGS) -Wmissing-declarations -Wmissing-noreturn -Wextra-semi
|
||||||
|
|
||||||
# TODO(cebtenzzre): remove this once PR #2632 gets merged
|
# TODO(cebtenzzre): remove this once PR #2632 gets merged
|
||||||
TTFS_CXXFLAGS = $(CXXFLAGS) -Wno-missing-declarations
|
TTFS_CXXFLAGS = $(CXXFLAGS) -Wno-missing-declarations
|
||||||
|
|
|
@ -606,9 +606,9 @@ struct printer {
|
||||||
virtual ~printer() {}
|
virtual ~printer() {}
|
||||||
|
|
||||||
FILE * fout;
|
FILE * fout;
|
||||||
virtual void print_header(const cmd_params & params) { (void) params; };
|
virtual void print_header(const cmd_params & params) { (void) params; }
|
||||||
virtual void print_test(const test & t) = 0;
|
virtual void print_test(const test & t) = 0;
|
||||||
virtual void print_footer() { };
|
virtual void print_footer() { }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct csv_printer : public printer {
|
struct csv_printer : public printer {
|
||||||
|
|
|
@ -497,7 +497,7 @@ struct hash_map * new_hash_map() {
|
||||||
result->vals[i] = NULL;
|
result->vals[i] = NULL;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
};
|
}
|
||||||
|
|
||||||
void free_hash_map(struct hash_map * map) {
|
void free_hash_map(struct hash_map * map) {
|
||||||
delete map;
|
delete map;
|
||||||
|
@ -594,7 +594,7 @@ struct ggml_tensor * ggml_recompute_graph_node(
|
||||||
ggml_format_name(clone, "%s (clone)", ggml_get_name(node));
|
ggml_format_name(clone, "%s (clone)", ggml_get_name(node));
|
||||||
|
|
||||||
return clone;
|
return clone;
|
||||||
};
|
}
|
||||||
|
|
||||||
void ggml_build_backward_gradient_checkpointing(
|
void ggml_build_backward_gradient_checkpointing(
|
||||||
struct ggml_context * ctx,
|
struct ggml_context * ctx,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue