Skip to content

Conversation

@laurynas-biveinis
Copy link
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

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

@facebook-github-bot
Copy link

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 join this conversation on GitHub. Already have an account? Sign in to comment

2 participants