I have a code:
#ifdef Q_OS_LINUX #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wcomment" #include "header.h" #pragma GCC diagnostic pop #endif
And I want to suppress the GCC warning messages related to header.h and all the headers included in header.h. But I still have "-Wcomment" warnings related to the headers included in header.h. How can i avoid this? Thanks
gcc 4.8.2
edit: The warning I get is as follows:
/ ------ Set the analog output for 8022/8026 --------- / Exp8K WORD CALLBACK AnalogOutHex_8K (DWORD dwBuf [], float fBuf [], warning: "/" in comment [-Wcomment] No other pragmas. -Wall doesn't work.
GCC, , ++, C. ++ ( C ). :
#pragma GCC diagnostic ignored "-Wcomment" /* /* */
++, C.
, , . , . , , ( -isystem).
-isystem
header.h, , #pragma GCC system_header. gcc -isystem.
header.h
#pragma GCC system_header
, , '#warning (. ), , GCC .
cpp. , . , , , . #pragma .
#pragmas , - . , .
Source: https://habr.com/ru/post/1537343/More articles:Strange ng class behavior - angularjsHow to use os.Args in golang properly? - command-lineAnimation animation Android 4.4 blinks when animating a subview - androidHow to improve the performance of this piece of code? - wolfram-mathematicaПонимание MySQL объясняет, `rows`-wise - performanceCocoa pods gives ruby permission to reject an error after I updated it on osx mavericks - cocoaHow to cross a stack in C ++? - c ++How to check if location services are enabled for a specific application in iOS 7? - dictionaryWMI ProcessorType - windowsНедопустимый параметр Robocopy # 3 - cmdAll Articles