# HG changeset patch
# User Jim Fehlig <jfehlig(a)novell.com>
# Date 1209749547 21600
# Node ID 79873958006140bbcd14122f9c7e1e80c00d9eef
# Parent 08a108e61a64c5277b6e5460dde968d09c86bd53
[CU]Provide a return type in eo_parse_error
With no return type specified for eo_parse_error, libcmpiutil package fails
to build in SuSE build service, e.g.
ERROR: Program returns random data in a function. Please fix.
Problematic file(s) and their linenumbers:
eo_util_lexer.l: 129
This patch modifies the definition to include a void return type.
Signed-off-by: Jim Fehlig <jfehlig(a)novell.com>
diff -r 08a108e61a64 -r 798739580061 eo_util_lexer.l
--- a/eo_util_lexer.l Fri May 02 11:10:51 2008 -0600
+++ b/eo_util_lexer.l Fri May 02 11:32:27 2008 -0600
@@ -121,7 +121,7 @@ FALSE {
/* USER SUBROUTINE SECTION */
/* Everything below is copied verbatim to the end of the lex generated C code. */
-eo_parse_error(char *errmsg)
+void eo_parse_error(char *errmsg)
{
fprintf(stderr, "error line %d: %s in '%s'\n",
eolineno, errmsg, eo_parse_text);
Show replies by date