Skip to content

Conversation

@foxtran
Copy link
Member

@foxtran foxtran commented Feb 21, 2025

This patch fixes warning which occurs during compilation of clang with GCC:

C++ style comments are not allowed in ISO C90

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Feb 21, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 21, 2025

@llvm/pr-subscribers-clang

Author: None (foxtran)

Changes

This patch fixes warning which occurs during compilation of clang with GCC:

C++ style comments are not allowed in ISO C90

Full diff: https://github.com/llvm/llvm-project/pull/128189.diff

1 Files Affected:

  • (modified) clang/tools/c-index-test/c-index-test.c (+1-1)
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 0e7de8b98ea07..2fdb1b2548ff6 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -1223,7 +1223,7 @@ static CXString createCXString(const char *CS) {
 static CXString duplicateCXString(const char *CS) {
   CXString Str;
   Str.data = strdup(CS);
-  Str.private_flags = 1; // CXS_Malloc
+  Str.private_flags = 1; /* CXS_Malloc */
   return Str;
 }
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants