Skip to content

Fix GCC 12 compiler warnings#10713

Merged
Girgias merged 7 commits into
php:masterfrom
Girgias:gcc12-warning-fixes
Feb 28, 2023
Merged

Fix GCC 12 compiler warnings#10713
Girgias merged 7 commits into
php:masterfrom
Girgias:gcc12-warning-fixes

Conversation

@Girgias

@Girgias Girgias commented Feb 26, 2023

Copy link
Copy Markdown
Member

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.

@ndossche

Copy link
Copy Markdown
Member

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

Comment thread ext/bcmath/libbcmath/src/bcmath.h

/* {{{ 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
Copy Markdown
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
Copy Markdown
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