Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmysql.c fails to compile #68

Open
cwfoo opened this issue Nov 12, 2021 · 0 comments
Open

mmysql.c fails to compile #68

cwfoo opened this issue Nov 12, 2021 · 0 comments

Comments

@cwfoo
Copy link

cwfoo commented Nov 12, 2021

Compiling mmysql.c using mmysql's Makefile fails with this error:

mmysql.c: In function ‘dbresult_finalize’:
mmysql.c:79:28: error: lvalue required as left operand of assignment
     DBresult_val(dbresval) = NULL;
                            ^
mmysql.c:81:33: error: lvalue required as left operand of assignment
     DBresultindex_val(dbresval) = NULL;
                                 ^

This is the function in question:

void dbresult_finalize(value dbresval)
{
MYSQL_RES* dbres = DBresult_val(dbresval);
MYSQL_ROW_OFFSET* index = DBresultindex_val(dbresval);
if (dbres != NULL) {
mysql_free_result(dbres);
DBresult_val(dbresval) = NULL;
stat_free((char*)index);
DBresultindex_val(dbresval) = NULL;
}
}

mosml version: 2.10.1
libmysqlclient version: 5.7.21
Compiler: gcc 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
OS: Ubuntu 18.04.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant