Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Fix GCC compilation error in memory_debugging.h#1475

Closed
laurynas-biveinis wants to merge 1 commit into
facebook:fb-mysql-8.0.32from
laurynas-biveinis:gcc-memory_debugging-fix
Closed

Fix GCC compilation error in memory_debugging.h#1475
laurynas-biveinis wants to merge 1 commit into
facebook:fb-mysql-8.0.32from
laurynas-biveinis:gcc-memory_debugging-fix

Conversation

@laurynas-biveinis

Copy link
Copy Markdown
Contributor

Replace a multi-line comment with a disabled preprocessor block

This fixes, with GCC:

In file included from include/my_alloc.h:41,
from mysys/array.cc:38:
include/memory_debugging.h:44:1: error: multi-line comment [-Werror=comment]
44 | // #define MEM_DEFINED_IF_ADDRESSABLE(a, len)
| ^

Squash with fdf68f7

Replace a multi-line comment with a disabled preprocessor block

This fixes, with GCC:

In file included from include/my_alloc.h:41,
                 from mysys/array.cc:38:
include/memory_debugging.h:44:1: error: multi-line comment [-Werror=comment]
   44 | // #define MEM_DEFINED_IF_ADDRESSABLE(a, len) \
      | ^

Squash with fdf68f7
@facebook-github-bot

Copy link
Copy Markdown

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

@facebook-github-bot

Copy link
Copy Markdown

This pull request has been merged in 02461d9.

@laurynas-biveinis laurynas-biveinis deleted the gcc-memory_debugging-fix branch August 5, 2024 07:50
sunshine-Chun pushed a commit to sunshine-Chun/mysql-5.6 that referenced this pull request Sep 4, 2024
Summary:
Replace a multi-line comment with a disabled preprocessor block

This fixes, with GCC:

In file included from include/my_alloc.h:41,
                 from mysys/array.cc:38:
include/memory_debugging.h:44:1: error: multi-line comment [-Werror=comment]
   44 | // #define MEM_DEFINED_IF_ADDRESSABLE(a, len) \
      | ^

Squash with fdf68f7

Pull Request resolved: facebook#1475
GitHub Author: Laurynas Biveinis <laurynas.biveinis@gmail.com>

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

Reviewers: chni, #mysql_eng

Reviewed By: chni

Differential Revision: https://phabricator.intern.facebook.com/D60675137
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

2 participants