Skip to content

Commit 0ba7c94

Browse files
committed
Do not use C++ keyword operator as a function parameter name
This fixes SCAP Workbench build. Addressing: [ 37%] Building CXX object CMakeFiles/scap-workbench.dir/scap-workbench_autogen/mocs_compilation.cpp.o In file included from /usr/local/include/openscap/xccdf_policy.h:39, from /home/jcerny/work/git/scap-workbench/include/TailoringDockWidgets.h:31, from /home/jcerny/work/git/scap-workbench/build/scap-workbench_autogen/6YEA5652QU/moc_TailoringDockWidgets.cpp:10, from /home/jcerny/work/git/scap-workbench/build/scap-workbench_autogen/mocs_compilation.cpp:18: /usr/local/include/openscap/oval_definitions.h:1676:117: error: declaration of ‘operator,’ as parameter 1676 | restriction *oval_variable_possible_restriction_new(oval_operator_t operator, const char *hint); | ^ Fixes: #1462
1 parent 07116d5 commit 0ba7c94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OVAL/public/oval_definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@ OSCAP_API void oval_variable_possible_value_iterator_free(struct oval_variable_p
16691669
* @param hint A short description of what the value means or represents.
16701670
* @memberof oval_variable_possible_restriction
16711671
*/
1672-
OSCAP_API struct oval_variable_possible_restriction *oval_variable_possible_restriction_new(oval_operator_t operator, const char *hint);
1672+
OSCAP_API struct oval_variable_possible_restriction *oval_variable_possible_restriction_new(oval_operator_t, const char *);
16731673

16741674

16751675
/**

0 commit comments

Comments
 (0)