Skip to content

Commit

Permalink
Fix last remaining warning and enable CMAKE_COMPILE_WARNING_AS_ERROR
Browse files Browse the repository at this point in the history
in Gating CI jobs (Fedora/Ubuntu)
  • Loading branch information
evgenyz committed Mar 18, 2024
1 parent 3abb1e6 commit b052780
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Build
working-directory: ./build
run: |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_PCRE2=True ../
cmake -DCMAKE_COMPILE_WARNING_AS_ERROR=True -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_PCRE2=True ../
make all
- name: Test
Expand All @@ -65,7 +65,7 @@ jobs:
- name: Build
working-directory: ./build
run: |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_PCRE2=True ../
cmake -DCMAKE_COMPILE_WARNING_AS_ERROR=True -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_PCRE2=True ../
make all
- name: Test
working-directory: ./build
Expand Down
4 changes: 2 additions & 2 deletions src/CPE/cpedict_priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ struct cpe_item { // the node <cpe-item>
} export;
};
OSCAP_GETTER(struct cpe_name *, cpe_item, name)
OSCAP_SETTER_GENERIC(cpe_item, const struct cpe_name *, name, cpe_name_free, )
OSCAP_SETTER_GENERIC(cpe_item, struct cpe_name *, name, cpe_name_free, )
OSCAP_GETTER(struct cpe_name *, cpe_item, deprecated_by)
OSCAP_SETTER_GENERIC(cpe_item, const struct cpe_name *, deprecated_by, cpe_name_free, )
OSCAP_SETTER_GENERIC(cpe_item, struct cpe_name *, deprecated_by, cpe_name_free, )
OSCAP_ACCESSOR_STRING(cpe_item, deprecation_date)
OSCAP_GETTER(struct cpe_item_metadata *, cpe_item, metadata)
OSCAP_IGETINS_GEN(cpe_reference, cpe_item, references, reference)
Expand Down
4 changes: 2 additions & 2 deletions src/CPE/public/cpe_dict.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,10 @@ OSCAP_API struct cpe_item_metadata *cpe_item_metadata_new(void);
*/

/// @memberof cpe_item
OSCAP_API bool cpe_item_set_name(struct cpe_item *item, const struct cpe_name *new_name);
OSCAP_API bool cpe_item_set_name(struct cpe_item *item, struct cpe_name *new_name);

/// @memberof cpe_item
OSCAP_API bool cpe_item_set_deprecated_by(struct cpe_item *item, const struct cpe_name *new_deprecated_by);
OSCAP_API bool cpe_item_set_deprecated_by(struct cpe_item *item, struct cpe_name *new_deprecated_by);

/// @memberof cpe_item
OSCAP_API bool cpe_item_set_deprecation_date(struct cpe_item *item, const char *new_deprecation_date);
Expand Down

0 comments on commit b052780

Please sign in to comment.