Skip to content

Fix GCC 12 compiler warnings #10713

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

Merged
merged 7 commits into from
Feb 28, 2023
Merged

Fix GCC 12 compiler warnings #10713

merged 7 commits into from
Feb 28, 2023

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Feb 26, 2023

I finally upgraded to Fedora 37 and GCC got updated to GCC 12.2 which greeted me with some new compiler warnings.

While I was at it I decided to improve BC Math but there is still a lot to do and might make sense to split into a seperate PR.

@nielsdos
Copy link
Member

I checked if there are any accidental semantic changes and I think it's okay in that respect. :)

@@ -673,12 +673,11 @@ static int mysqlnd_zval_array_to_mysqlnd_array(zval *in_array, MYSQLND ***out_ar
/* }}} */

/* {{{ mysqlnd_zval_array_from_mysqlnd_array */
static int mysqlnd_zval_array_from_mysqlnd_array(MYSQLND **in_array, zval *out_array)
static zend_result mysqlnd_zval_array_from_mysqlnd_array(MYSQLND **in_array, zval *out_array)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The result value of mysqlnd_zval_array_from_mysqlnd_array is never read, should we also drop it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, or start using the return value.

@Girgias Girgias merged commit f13d541 into php:master Feb 28, 2023
@Girgias Girgias deleted the gcc12-warning-fixes branch February 28, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants