Skip to content

Commit

Permalink
Fix Clang compilation error
Browse files Browse the repository at this point in the history
fixes the error:
dnf5/include/libdnf5-cli/output/provides.hpp:34:13: error: 'static' function 'add_line_into_provides_tab
le' declared in header file should be declared 'static inline' [-Werror,-Wunneeded-internal-declaration]
   34 | static void add_line_into_provides_table(struct libscols_table * table, const char * key, const char * value)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • Loading branch information
inknos committed Dec 6, 2023
1 parent 6f2ab62 commit 249b233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libdnf5-cli/output/provides.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace libdnf5::cli::output {

enum ProvidesMatchedBy : int { NO_MATCH = 0, PROVIDES = 1, FILENAME = 2, BINARY = 3 };

static void add_line_into_provides_table(struct libscols_table * table, const char * key, const char * value) {
static inline void add_line_into_provides_table(struct libscols_table * table, const char * key, const char * value) {
struct libscols_line * ln = scols_table_new_line(table, nullptr);
scols_line_set_data(ln, 0, key);
scols_line_set_data(ln, 1, value);
Expand Down

0 comments on commit 249b233

Please sign in to comment.