summaryrefslogtreecommitdiff
path: root/libs/binder/BackendUnifiedServiceManager.cpp
diff options
context:
space:
mode:
author Ryan Prichard <rprichard@google.com> 2024-12-20 14:36:50 -0800
committer Ryan Prichard <rprichard@google.com> 2024-12-20 14:41:28 -0800
commitac23d22291562b984c192a7306d4748a640b85f8 (patch)
treedacf046ad40673e19354e3031c00a2d5634a0c1b /libs/binder/BackendUnifiedServiceManager.cpp
parent99871bfed37c782acf2cb0e8263e3c24124b9485 (diff)
binder: declare main in global NS, w/o extern "C"
The main function should be in the global namespace, not the android namespace. We were using 'extern "C"' to prevent the mangling, but the C++ standard doesn't allow a linkage-specification for main, https://eel.is/c++draft/basic.start.main#3.sentence-5: "The main function shall not be declared with a linkage-specification ([dcl.link])." Clang has started warning on incorrect declarations of main (-Wmain). Bug: http://b/379133546 Test: m binder_thread_stats libbinderdebug_test binderSafeInterfaceTest Change-Id: I1c53ce621391b5577c8c04b21117e9b59fe05136
Diffstat (limited to 'libs/binder/BackendUnifiedServiceManager.cpp')
0 files changed, 0 insertions, 0 deletions