diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-05 20:24:13 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-05 20:24:13 +0000 |
commit | 4959fda719dad29f5ab8a3e7e4da59a794609fe5 (patch) | |
tree | c6a78758ee861a19193c5c648d2b94890bb00b67 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 77f20fc8d3563b871bc460f55dd204f34ff6762e (diff) | |
download | llvm-4959fda719dad29f5ab8a3e7e4da59a794609fe5.zip llvm-4959fda719dad29f5ab8a3e7e4da59a794609fe5.tar.gz llvm-4959fda719dad29f5ab8a3e7e4da59a794609fe5.tar.bz2 |
Fix extern warnings produced by ittnotify_static.c
when compiling with gcc or clang numerous warnings concerning the usage
of extern "C" linkage. All the __kmp_itt_sync* variables are declared
like: extern "C" type __kmp_itt_sync... = definition; through various macros.
This note from cppreference.com explains why this is a problem.
// From http://en.cppreference.com/w/cpp/language/language_linkage
extern "C" int x; // a declaration and not a definition
// The above line is equivalent to extern "C" { extern int x; }
extern "C" { int x; } // a declaration and definition
Since the __kmp_itt_* variables are being declared and defined, these variables
should use the bracketed version instead.
llvm-svn: 239184
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions