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

gcc-7 -Wint-in-bool-contex fix for rdb_datadic.cc #598

Closed
wants to merge 1 commit into from
Closed

gcc-7 -Wint-in-bool-contex fix for rdb_datadic.cc #598

wants to merge 1 commit into from

Conversation

grooverdan
Copy link
Contributor

The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~

The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
@facebook-github-bot
Copy link

@gunnarku has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@grooverdan
Copy link
Contributor Author

thanks @gunnarku

@grooverdan grooverdan deleted the patch-1 branch April 19, 2017 05:09
IslamAbdelRahman pushed a commit to IslamAbdelRahman/mysql-5.6 that referenced this pull request May 31, 2017
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598
Github Author: Daniel Black <danielgb@au.ibm.com>

Github PR Sync: {sync, type="child", parent="github", parentrepo="facebook/mysql-5.6", parentprnum="598", parentprfbid="1332720093462018"}

Test Plan: Imported from GitHub, without a `Test Plan:` line.

Reviewers: svcscm

Reviewed By: svcscm

Subscribers: svcscm, webscalesql-eng@fb.com

Differential Revision: https://phabricator.intern.facebook.com/D4908735

Signature: t1:4908735:1492555342:d5c6ad91dcf7b372a3704778fd843e60e07f5505
gunnarku pushed a commit to facebook/mysql-8.0 that referenced this pull request Jul 21, 2017
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
gunnarku pushed a commit to facebook/mysql-8.0 that referenced this pull request Jul 25, 2017
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Aug 11, 2017
Upstream commit ID : fb-mysql-5.6.35/8f44a9d8bd14674ae85de206b54073bf4587e248

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Aug 11, 2017
Upstream commit ID : fb-mysql-5.6.35/8f44a9d8bd14674ae85de206b54073bf4587e248

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Aug 11, 2017
Upstream commit ID : fb-mysql-5.6.35/8f44a9d8bd14674ae85de206b54073bf4587e248

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Aug 11, 2017
Upstream commit ID : fb-mysql-5.6.35/8f44a9d8bd14674ae85de206b54073bf4587e248

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Aug 11, 2017
Upstream commit ID : fb-mysql-5.6.35/8f44a9d8bd14674ae85de206b54073bf4587e248

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Aug 15, 2017
Upstream commit ID : fb-mysql-5.6.35/8f44a9d8bd14674ae85de206b54073bf4587e248

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Aug 17, 2017
Upstream commit ID : fb-mysql-5.6.35/8f44a9d8bd14674ae85de206b54073bf4587e248

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: 4ec220a
facebook-github-bot pushed a commit that referenced this pull request Dec 23, 2019
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes #598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: dc20a04
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 12, 2020
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: dc20a04
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Sep 9, 2020
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: dc20a04
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Sep 16, 2020
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: dc20a04
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Oct 5, 2020
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: dc20a04
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Nov 11, 2020
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku

fbshipit-source-id: dc20a04
facebook-github-bot pushed a commit that referenced this pull request Mar 8, 2021
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes #598

Differential Revision: D4908735 (469992d)

Pulled By: gunnarku

fbshipit-source-id: 06ba72c79a0
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 16, 2021
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735 (facebook@469992d)

Pulled By: gunnarku

fbshipit-source-id: 06ba72c79a0
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 17, 2021
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735 (facebook@469992d)

Pulled By: gunnarku

fbshipit-source-id: 06ba72c79a0
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 30, 2021
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735 (facebook@469992d)

Pulled By: gunnarku

fbshipit-source-id: 06ba72c79a0
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 30, 2021
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735 (facebook@469992d)

Pulled By: gunnarku

fbshipit-source-id: 06ba72c79a0
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Sep 1, 2021
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735 (facebook@469992d)

Pulled By: gunnarku

fbshipit-source-id: 06ba72c79a0
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Sep 2, 2021
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735 (facebook@469992d)

Pulled By: gunnarku

fbshipit-source-id: 06ba72c79a0
hermanlee pushed a commit that referenced this pull request Jan 10, 2022
Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes #598

Differential Revision: D4908735

Pulled By: gunnarku
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jan 17, 2022
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 15, 2022
…ona#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 20, 2022
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 23, 2022
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku
laurynas-biveinis pushed a commit to laurynas-biveinis/mysql-5.6 that referenced this pull request Aug 11, 2022
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Mar 28, 2023
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 1, 2023
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 14, 2023
…ebook#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook#598

Differential Revision: D4908735

Pulled By: gunnarku
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 9, 2024
…ona#598)

Summary:
The warning (observed in MariaDB rocksDB at an identical line was:)
warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
     if (real_val_size % Rdb_key_def::PACKED_SIZE * 2) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Closes facebook/mysql-5.6#598

Differential Revision: D4908735

Pulled By: gunnarku
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.

2 participants