Hi Folks,
While updateing the new Release of OpenVAS 8 I encountered an error in the
openvas-manager:
The "make" quit with the following error message. Altough I could have changed
the warn_unused_result attribute I decided to change the src.
/opt/openvas/openvas-manager-6.0.7/src/manage_sql.c: In function
'keyword_type_from_string':
/opt/openvas/openvas-manager-6.0.7/src/manage_sql.c:2656:10: error: ignoring
return value of 'strtol', declared with attribute warn_unused_result
[-Werror=unused-result]
The return Value of the function strtol was ignored, so I made a few changes.
If anyone gets this error just edit the openvas-manager-6.0.7/src/manage_sql.c
Line 2649:
static keyword_type_t
keyword_type_from_string (const char* string)
{
gchar *stripped, *stripped_end;
double value;
int end;
+ long int rlegal1234;
+ stripped = g_strstrip (g_strdup (string));
- strtol (stripped, &stripped_end, 10);
+ rlegal1234 = strtol (stripped, &stripped_end, 10);
+ rlegal1234++; // since I don't want the "set but not used" error
if (*stripped_end == '\0')
{
g_free (stripped);
return KEYWORD_TYPE_INTEGER;
}
Merry Christmas and a Happy New Year.
Rene Leipold
--
edv-anwendungsberatung
zühlke & bieker gmbh
martinistrasse 11
45657 Recklinghausen
Germany
Tel: +49-2361-9054321
Fax: +49-2361-9054322
www.zubIT.de
Mail: [email protected]
Handelsregister Recklinghausen HR B 2954
Geschäftsführer: Carsten Bieker, Marc Zühlke
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss