1 #ifdef USE_PRAGMA 2 #pragma clang diagnostic push 3 #if USE_PRAGMA == 1 4 #pragma clang diagnostic warning "-Wshorten-64-to-32" 5 #else 6 #pragma clang diagnostic error "-Wshorten-64-to-32" 7 #endif 8 #endif convert(T V)9template <class T> int convert(T V) { return V; } 10 #ifdef USE_PRAGMA 11 #pragma clang diagnostic pop 12 #endif 13