yse / easy_profiler

Lightweight profiler library for c++
MIT License
2.15k stars 184 forks source link

-std=gnu++11 c++ flags leaks into users's c and C++ compiler flags #126

Closed mean-ui-thread closed 5 years ago

mean-ui-thread commented 6 years ago

It generates this warning on linux gcc when compiling a c file from a mixed C and C++ project:

cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C

This public/leaking flag can also potentially interfere with C++14 and C++17 users

yse commented 5 years ago

I think it's relating to #71