А вот как такое предупреждение задавить, вопрос ещё тот. Другие
давятся, а такое ничем. Досадно.
#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-W" #pragma GCC diagnostic ignored "-WNSObject-attribute" #pragma GCC diagnostic ignored "-Wabi" #pragma GCC diagnostic ignored "-Wabsolute-value" #pragma GCC diagnostic ignored "-Waddress" #pragma GCC diagnostic ignored "-Waddress-of-packed-member" #pragma GCC diagnostic ignored "-Waggregate-return" #pragma GCC diagnostic ignored "-Wall" #pragma GCC diagnostic ignored "-Walloca" #pragma GCC diagnostic ignored "-Warray-bounds" #pragma GCC diagnostic ignored "-Warray-parameter" #pragma GCC diagnostic ignored "-Wattribute-warning" #pragma GCC diagnostic ignored "-Wattributes" #pragma GCC diagnostic ignored "-Wbad-function-cast" #pragma GCC diagnostic ignored "-Wbool-operation" #pragma GCC diagnostic ignored "-Wbuiltin-macro-redefined" #pragma GCC diagnostic ignored "-Wc++-compat" #pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-function-type" #pragma GCC diagnostic ignored "-Wcast-qual" #pragma GCC diagnostic ignored "-Wchar-subscripts" #pragma GCC diagnostic ignored "-Wcomment" #pragma GCC diagnostic ignored "-Wcomments" #pragma GCC diagnostic ignored "-Wconversion" #pragma GCC diagnostic ignored "-Wcpp" #pragma GCC diagnostic ignored "-Wdangling-else" #pragma GCC diagnostic ignored "-Wdate-time" #pragma GCC diagnostic ignored "-Wdeclaration-after-statement" #pragma GCC diagnostic ignored "-Wdeprecated" #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #pragma GCC diagnostic ignored "-Wdisabled-optimization" #pragma GCC diagnostic ignored "-Wdiv-by-zero" #pragma GCC diagnostic ignored "-Wdouble-promotion" #pragma GCC diagnostic ignored "-Wduplicate-decl-specifier" #pragma GCC diagnostic ignored "-Wempty-body" #pragma GCC diagnostic ignored "-Wendif-labels" #pragma GCC diagnostic ignored "-Wenum-compare" #pragma GCC diagnostic ignored "-Wenum-conversion" #pragma GCC diagnostic ignored "-Wexpansion-to-defined" #pragma GCC diagnostic ignored "-Wextra" #pragma GCC diagnostic ignored "-Wfloat-conversion" #pragma GCC diagnostic ignored "-Wfloat-equal" #pragma GCC diagnostic ignored "-Wformat" #pragma GCC diagnostic ignored "-Wformat-extra-args" #pragma GCC diagnostic ignored "-Wformat-nonliteral" #pragma GCC diagnostic ignored "-Wformat-security" #pragma GCC diagnostic ignored "-Wformat-y2k" #pragma GCC diagnostic ignored "-Wformat-zero-length" #pragma GCC diagnostic ignored "-Wformat=2" #pragma GCC diagnostic ignored "-Wframe-address" #pragma GCC diagnostic ignored "-Wframe-larger-than=" #pragma GCC diagnostic ignored "-Wfree-nonheap-object" #pragma GCC diagnostic ignored "-Wignored-attributes" #pragma GCC diagnostic ignored "-Wignored-qualifiers" #pragma GCC diagnostic ignored "-Wimplicit" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #pragma GCC diagnostic ignored "-Wimplicit-function-declaration" #pragma GCC diagnostic ignored "-Wimplicit-int" #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #pragma GCC diagnostic ignored "-Winit-self" #pragma GCC diagnostic ignored "-Winline" #pragma GCC diagnostic ignored "-Wint-conversion" #pragma GCC diagnostic ignored "-Wint-in-bool-context" #pragma GCC diagnostic ignored "-Wint-to-pointer-cast" #pragma GCC diagnostic ignored "-Winvalid-pch" #pragma GCC diagnostic ignored "-Wlogical-not-parentheses" #pragma GCC diagnostic ignored "-Wlong-long" #pragma GCC diagnostic ignored "-Wmain" #pragma GCC diagnostic ignored "-Wmemset-transposed-args" #pragma GCC diagnostic ignored "-Wmisleading-indentation" #pragma GCC diagnostic ignored "-Wmissing-braces" #pragma GCC diagnostic ignored "-Wmissing-declarations" #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #pragma GCC diagnostic ignored "-Wmissing-format-attribute" #pragma GCC diagnostic ignored "-Wmissing-include-dirs" #pragma GCC diagnostic ignored "-Wmissing-noreturn" #pragma GCC diagnostic ignored "-Wmissing-prototypes" #pragma GCC diagnostic ignored "-Wmultichar" #pragma GCC diagnostic ignored "-Wnarrowing" #pragma GCC diagnostic ignored "-Wnested-externs" #pragma GCC diagnostic ignored "-Wnonnull" #pragma GCC diagnostic ignored "-Wnull-dereference" #pragma GCC diagnostic ignored "-Wodr" #pragma GCC diagnostic ignored "-Wold-style-definition" #pragma GCC diagnostic ignored "-Woverflow" #pragma GCC diagnostic ignored "-Woverlength-strings" #pragma GCC diagnostic ignored "-Woverride-init" #pragma GCC diagnostic ignored "-Wpacked" #pragma GCC diagnostic ignored "-Wpadded" #pragma GCC diagnostic ignored "-Wparentheses" #pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wpointer-arith" #pragma GCC diagnostic ignored "-Wpointer-compare" #pragma GCC diagnostic ignored "-Wpointer-sign" #pragma GCC diagnostic ignored "-Wpointer-to-int-cast" #pragma GCC diagnostic ignored "-Wpragmas" #pragma GCC diagnostic ignored "-Wpre-c++14-compat" #pragma GCC diagnostic ignored "-Wpre-c++14-compat-pedantic" #pragma GCC diagnostic ignored "-Wpre-c++17-compat" #pragma GCC diagnostic ignored "-Wpre-c++17-compat-pedantic" #pragma GCC diagnostic ignored "-Wpre-c++20-compat" #pragma GCC diagnostic ignored "-Wpre-c++20-compat-pedantic" #pragma GCC diagnostic ignored "-Wpre-c++23-compat" #pragma GCC diagnostic ignored "-Wpre-c++23-compat-pedantic" #pragma GCC diagnostic ignored "-Wpre-c++26-compat" #pragma GCC diagnostic ignored "-Wpre-c++26-compat-pedantic" #pragma GCC diagnostic ignored "-Wpre-c++2c-compat" #pragma GCC diagnostic ignored "-Wpre-c++2c-compat-pedantic" #pragma GCC diagnostic ignored "-Wpre-c23-compat" #pragma GCC diagnostic ignored "-Wpre-c23-compat-pedantic" #pragma GCC diagnostic ignored "-Wpre-c2x-compat" #pragma GCC diagnostic ignored "-Wpre-c2x-compat-pedantic" #pragma GCC diagnostic ignored "-Wpre-openmp-51-compat" #pragma GCC diagnostic ignored "-Wpredefined-identifier-outside-function" #pragma GCC diagnostic ignored "-Wprivate-extern" #pragma GCC diagnostic ignored "-Wprivate-header" #pragma GCC diagnostic ignored "-Wprivate-module" #pragma GCC diagnostic ignored "-Wprofile-instr-missing" #pragma GCC diagnostic ignored "-Wprofile-instr-out-of-date" #pragma GCC diagnostic ignored "-Wprofile-instr-unprofiled" #pragma GCC diagnostic ignored "-Wproperty-access-dot-syntax" #pragma GCC diagnostic ignored "-Wproperty-attribute-mismatch" #pragma GCC diagnostic ignored "-Wprotocol" #pragma GCC diagnostic ignored "-Wprotocol-property-synthesis-ambiguity" #pragma GCC diagnostic ignored "-Wpsabi" #pragma GCC diagnostic ignored "-Wqualified-void-return-type" #pragma GCC diagnostic ignored "-Wquoted-include-in-framework-header" #pragma GCC diagnostic ignored "-Wrange-loop-analysis" #pragma GCC diagnostic ignored "-Wrange-loop-bind-reference" #pragma GCC diagnostic ignored "-Wrange-loop-construct" #pragma GCC diagnostic ignored "-Wread-modules-implicitly" #pragma GCC diagnostic ignored "-Wread-only-types" #pragma GCC diagnostic ignored "-Wreadonly-iboutlet-property" #pragma GCC diagnostic ignored "-Wreceiver-expr" #pragma GCC diagnostic ignored "-Wreceiver-forward-class" #pragma GCC diagnostic ignored "-Wredeclared-class-member" #pragma GCC diagnostic ignored "-Wredundant-consteval-if" #pragma GCC diagnostic ignored "-Wredundant-decls" #pragma GCC diagnostic ignored "-Wredundant-move" #pragma GCC diagnostic ignored "-Wredundant-parens" #pragma GCC diagnostic ignored "-Wregister" #pragma GCC diagnostic ignored "-Wreinterpret-base-class" #pragma GCC diagnostic ignored "-Rremark-backend-plugin" #pragma GCC diagnostic ignored "-Wreorder" #pragma GCC diagnostic ignored "-Wreorder-ctor" #pragma GCC diagnostic ignored "-Wreorder-init-list" #pragma GCC diagnostic ignored "-Wrequires-super-attribute" #pragma GCC diagnostic ignored "-Wreserved-id-macro" #pragma GCC diagnostic ignored "-Wreserved-identifier" #pragma GCC diagnostic ignored "-Wreserved-macro-identifier" #pragma GCC diagnostic ignored "-Wreserved-module-identifier" #pragma GCC diagnostic ignored "-Wreserved-user-defined-literal" #pragma GCC diagnostic ignored "-Wrestrict-expansion" #pragma GCC diagnostic ignored "-Wretained-language-linkage" #pragma GCC diagnostic ignored "-Wreturn-local-addr" #pragma GCC diagnostic ignored "-Wreturn-stack-address" #pragma GCC diagnostic ignored "-Wreturn-std-move" #pragma GCC diagnostic ignored "-Wreturn-type" #pragma GCC diagnostic ignored "-Wreturn-type-c-linkage" #pragma GCC diagnostic ignored "-Wrewrite-not-bool" #pragma GCC diagnostic ignored "-Rround-trip-cc1-args" #pragma GCC diagnostic ignored "-Wrtti" #pragma GCC diagnostic ignored "-Rsanitize-address" #pragma GCC diagnostic ignored "-Wsarif-format-unstable" #pragma GCC diagnostic ignored "-Rsearch-path-usage" #pragma GCC diagnostic ignored "-Wsection" #pragma GCC diagnostic ignored "-Wselector" #pragma GCC diagnostic ignored "-Wselector-type-mismatch" #pragma GCC diagnostic ignored "-Wself-assign" #pragma GCC diagnostic ignored "-Wself-assign-field" #pragma GCC diagnostic ignored "-Wself-assign-overloaded" #pragma GCC diagnostic ignored "-Wself-move" #pragma GCC diagnostic ignored "-Wsemicolon-before-method-body" #pragma GCC diagnostic ignored "-Wsentinel" #pragma GCC diagnostic ignored "-Wsequence-point" #pragma GCC diagnostic ignored "-Wserialized-diagnostics" #pragma GCC diagnostic ignored "-Wshadow" #pragma GCC diagnostic ignored "-Wshadow-all" #pragma GCC diagnostic ignored "-Wshadow-field" #pragma GCC diagnostic ignored "-Wshadow-field-in-constructor" #pragma GCC diagnostic ignored "-Wshadow-field-in-constructor-modified" #pragma GCC diagnostic ignored "-Wshadow-ivar" #pragma GCC diagnostic ignored "-Wshadow-uncaptured-local" #pragma GCC diagnostic ignored "-Wshift-count-negative" #pragma GCC diagnostic ignored "-Wshift-count-overflow" #pragma GCC diagnostic ignored "-Wshift-negative-value" #pragma GCC diagnostic ignored "-Wshift-op-parentheses" #pragma GCC diagnostic ignored "-Wshift-overflow" #pragma GCC diagnostic ignored "-Wshift-sign-overflow" #pragma GCC diagnostic ignored "-Wshorten-64-to-32" #pragma GCC diagnostic ignored "-Wsign-compare" #pragma GCC diagnostic ignored "-Wsign-conversion" #pragma GCC diagnostic ignored "-Wsign-promo" #pragma GCC diagnostic ignored "-Wsigned-enum-bitfield" #pragma GCC diagnostic ignored "-Wsigned-unsigned-wchar" #pragma GCC diagnostic ignored "-Wsingle-bit-bitfield-constant-conversion" #pragma GCC diagnostic ignored "-Wsizeof-array-argument" #pragma GCC diagnostic ignored "-Wsizeof-array-decay" #pragma GCC diagnostic ignored "-Wsizeof-array-div" #pragma GCC diagnostic ignored "-Wsizeof-pointer-div" #pragma GCC diagnostic ignored "-Wsizeof-pointer-memaccess" #pragma GCC diagnostic ignored "-Wslash-u-filename" #pragma GCC diagnostic ignored "-Wslh-asm-goto" #pragma GCC diagnostic ignored "-Rsloc-usage" #pragma GCC diagnostic ignored "-Wsometimes-uninitialized" #pragma GCC diagnostic ignored "-Wsource-mgr" #pragma GCC diagnostic ignored "-Wsource-uses-openmp" #pragma GCC diagnostic ignored "-Wspir-compat" #pragma GCC diagnostic ignored "-Wspirv-compat" #pragma GCC diagnostic ignored "-Wstack-exhausted" #pragma GCC diagnostic ignored "-Wstack-protector" #pragma GCC diagnostic ignored "-Wstatic-float-init" #pragma GCC diagnostic ignored "-Wstatic-in-inline" #pragma GCC diagnostic ignored "-Wstatic-inline-explicit-instantiation" #pragma GCC diagnostic ignored "-Wstatic-local-in-inline" #pragma GCC diagnostic ignored "-Wstatic-self-init" #pragma GCC diagnostic ignored "-Wstdlibcxx-not-found" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #pragma GCC diagnostic ignored "-Wstrict-aliasing=0" #pragma GCC diagnostic ignored "-Wstrict-aliasing=1" #pragma GCC diagnostic ignored "-Wstrict-aliasing=2" #pragma GCC diagnostic ignored "-Wstrict-overflow" #pragma GCC diagnostic ignored "-Wstrict-overflow=0" #pragma GCC diagnostic ignored "-Wstrict-overflow=1" #pragma GCC diagnostic ignored "-Wstrict-overflow=2" #pragma GCC diagnostic ignored "-Wstrict-overflow=3" #pragma GCC diagnostic ignored "-Wstrict-overflow=4" #pragma GCC diagnostic ignored "-Wstrict-overflow=5" #pragma GCC diagnostic ignored "-Wstrict-potentially-direct-selector" #pragma GCC diagnostic ignored "-Wstrict-prototypes" #pragma GCC diagnostic ignored "-Wstrict-selector-match" #pragma GCC diagnostic ignored "-Wstring-compare" #pragma GCC diagnostic ignored "-Wstring-concatenation" #pragma GCC diagnostic ignored "-Wstring-conversion" #pragma GCC diagnostic ignored "-Wstring-plus-char" #pragma GCC diagnostic ignored "-Wstring-plus-int" #pragma GCC diagnostic ignored "-Wstrlcpy-strlcat-size" #pragma GCC diagnostic ignored "-Wstrncat-size" #pragma GCC diagnostic ignored "-Wsuggest-destructor-override" #pragma GCC diagnostic ignored "-Wsuggest-override" #pragma GCC diagnostic ignored "-Wsuper-class-method-mismatch" #pragma GCC diagnostic ignored "-Wsuspicious-bzero" #pragma GCC diagnostic ignored "-Wsuspicious-memaccess" #pragma GCC diagnostic ignored "-Wswift-name-attribute" #pragma GCC diagnostic ignored "-Wswitch" #pragma GCC diagnostic ignored "-Wswitch-bool" #pragma GCC diagnostic ignored "-Wswitch-default" #pragma GCC diagnostic ignored "-Wswitch-enum" #pragma GCC diagnostic ignored "-Wsync-alignment" #pragma GCC diagnostic ignored "-Wsync-fetch-and-nand-semantics-changed" #pragma GCC diagnostic ignored "-Wsynth" #pragma GCC diagnostic ignored "-Wtarget-clones-mixed-specifiers" #pragma GCC diagnostic ignored "-Wtautological-bitwise-compare" #pragma GCC diagnostic ignored "-Wtautological-compare" #pragma GCC diagnostic ignored "-Wtautological-constant-compare" #pragma GCC diagnostic ignored "-Wtautological-constant-in-range-compare" #pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare" #pragma GCC diagnostic ignored "-Wtautological-objc-bool-compare" #pragma GCC diagnostic ignored "-Wtautological-overlap-compare" #pragma GCC diagnostic ignored "-Wtautological-pointer-compare" #pragma GCC diagnostic ignored "-Wtautological-type-limit-compare" #pragma GCC diagnostic ignored "-Wtautological-undefined-compare" #pragma GCC diagnostic ignored "-Wtautological-unsigned-char-zero-compare" #pragma GCC diagnostic ignored "-Wtautological-unsigned-enum-zero-compare" #pragma GCC diagnostic ignored "-Wtautological-unsigned-zero-compare" #pragma GCC diagnostic ignored "-Wtautological-value-range-compare" #pragma GCC diagnostic ignored "-Wtcb-enforcement" #pragma GCC diagnostic ignored "-Wtentative-definition-incomplete-type" #pragma GCC diagnostic ignored "-Wthread-safety" #pragma GCC diagnostic ignored "-Wthread-safety-analysis" #pragma GCC diagnostic ignored "-Wthread-safety-attributes" #pragma GCC diagnostic ignored "-Wthread-safety-beta" #pragma GCC diagnostic ignored "-Wthread-safety-negative" #pragma GCC diagnostic ignored "-Wthread-safety-precise" #pragma GCC diagnostic ignored "-Wthread-safety-reference" #pragma GCC diagnostic ignored "-Wthread-safety-verbose" #pragma GCC diagnostic ignored "-Wtrigraphs" #pragma GCC diagnostic ignored "-Wtype-limits" #pragma GCC diagnostic ignored "-Wtype-safety" #pragma GCC diagnostic ignored "-Wtypedef-redefinition" #pragma GCC diagnostic ignored "-Wtypename-missing" #pragma GCC diagnostic ignored "-Wunable-to-open-stats-file" #pragma GCC diagnostic ignored "-Wunaligned-access" #pragma GCC diagnostic ignored "-Wunaligned-qualifier-implicit-cast" #pragma GCC diagnostic ignored "-Wunavailable-declarations" #pragma GCC diagnostic ignored "-Wundeclared-selector" #pragma GCC diagnostic ignored "-Wundef" #pragma GCC diagnostic ignored "-Wundef-prefix" #pragma GCC diagnostic ignored "-Wundefined-bool-conversion" #pragma GCC diagnostic ignored "-Wundefined-func-template" #pragma GCC diagnostic ignored "-Wundefined-inline" #pragma GCC diagnostic ignored "-Wundefined-internal" #pragma GCC diagnostic ignored "-Wundefined-internal-type" #pragma GCC diagnostic ignored "-Wundefined-reinterpret-cast" #pragma GCC diagnostic ignored "-Wundefined-var-template" #pragma GCC diagnostic ignored "-Wunderaligned-exception-object" #pragma GCC diagnostic ignored "-Wunevaluated-expression" #pragma GCC diagnostic ignored "-Wunguarded-availability" #pragma GCC diagnostic ignored "-Wunguarded-availability-new" #pragma GCC diagnostic ignored "-Wunicode" #pragma GCC diagnostic ignored "-Wunicode-homoglyph" #pragma GCC diagnostic ignored "-Wunicode-whitespace" #pragma GCC diagnostic ignored "-Wunicode-zero-width" #pragma GCC diagnostic ignored "-Wuninitialized" #pragma GCC diagnostic ignored "-Wuninitialized-const-reference" #pragma GCC diagnostic ignored "-Wunknown-argument" #pragma GCC diagnostic ignored "-Wunknown-assumption" #pragma GCC diagnostic ignored "-Wunknown-attributes" #pragma GCC diagnostic ignored "-Wunknown-cuda-version" #pragma GCC diagnostic ignored "-Wunknown-directives" #pragma GCC diagnostic ignored "-Wunknown-escape-sequence" #pragma GCC diagnostic ignored "-Wunknown-pragmas" #pragma GCC diagnostic ignored "-Wunknown-sanitizers" #pragma GCC diagnostic ignored "-Wunknown-warning-option" #pragma GCC diagnostic ignored "-Wunnamed-type-template-args" #pragma GCC diagnostic ignored "-Wunneeded-internal-declaration" #pragma GCC diagnostic ignored "-Wunneeded-member-function" #pragma GCC diagnostic ignored "-Wunqualified-std-cast-call" #pragma GCC diagnostic ignored "-Wunreachable-code" #pragma GCC diagnostic ignored "-Wunreachable-code-aggressive" #pragma GCC diagnostic ignored "-Wunreachable-code-break" #pragma GCC diagnostic ignored "-Wunreachable-code-fallthrough" #pragma GCC diagnostic ignored "-Wunreachable-code-generic-assoc" #pragma GCC diagnostic ignored "-Wunreachable-code-loop-increment" #pragma GCC diagnostic ignored "-Wunreachable-code-return" #pragma GCC diagnostic ignored "-Wunsafe-buffer-usage" #pragma GCC diagnostic ignored "-Wunsequenced" #pragma GCC diagnostic ignored "-Wunsupported-abi" #pragma GCC diagnostic ignored "-Wunsupported-abs" #pragma GCC diagnostic ignored "-Wunsupported-availability-guard" #pragma GCC diagnostic ignored "-Wunsupported-cb" #pragma GCC diagnostic ignored "-Wunsupported-dll-base-class-template" #pragma GCC diagnostic ignored "-Wunsupported-floating-point-opt" #pragma GCC diagnostic ignored "-Wunsupported-friend" #pragma GCC diagnostic ignored "-Wunsupported-gpopt" #pragma GCC diagnostic ignored "-Wunsupported-nan" #pragma GCC diagnostic ignored "-Wunsupported-target-opt" #pragma GCC diagnostic ignored "-Wunsupported-visibility" #pragma GCC diagnostic ignored "-Wunusable-partial-specialization" #pragma GCC diagnostic ignored "-Wunused" #pragma GCC diagnostic ignored "-Wunused-argument" #pragma GCC diagnostic ignored "-Wunused-but-set-parameter" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #pragma GCC diagnostic ignored "-Wunused-command-line-argument" #pragma GCC diagnostic ignored "-Wunused-comparison" #pragma GCC diagnostic ignored "-Wunused-const-variable" #pragma GCC diagnostic ignored "-Wunused-exception-parameter" #pragma GCC diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wunused-getter-return-value" #pragma GCC diagnostic ignored "-Wunused-label" #pragma GCC diagnostic ignored "-Wunused-lambda-capture" #pragma GCC diagnostic ignored "-Wunused-local-typedef" #pragma GCC diagnostic ignored "-Wunused-local-typedefs" #pragma GCC diagnostic ignored "-Wunused-macros" #pragma GCC diagnostic ignored "-Wunused-member-function" #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-private-field" #pragma GCC diagnostic ignored "-Wunused-property-ivar" #pragma GCC diagnostic ignored "-Wunused-result" #pragma GCC diagnostic ignored "-Wunused-template" #pragma GCC diagnostic ignored "-Wunused-value" #pragma GCC diagnostic ignored "-Wunused-variable" #pragma GCC diagnostic ignored "-Wunused-volatile-lvalue" #pragma GCC diagnostic ignored "-Wused-but-marked-unused" #pragma GCC diagnostic ignored "-Wuser-defined-literals" #pragma GCC diagnostic ignored "-Wuser-defined-warnings" #pragma GCC diagnostic ignored "-Wvarargs" #pragma GCC diagnostic ignored "-Wvariadic-macros" #pragma GCC diagnostic ignored "-Wvec-elem-size" #pragma GCC diagnostic ignored "-Wvector-conversion" #pragma GCC diagnostic ignored "-Wvector-conversions" #pragma GCC diagnostic ignored "-Wvexing-parse" #pragma GCC diagnostic ignored "-Wvisibility" #pragma GCC diagnostic ignored "-Wvla" #pragma GCC diagnostic ignored "-Wvla-extension" #pragma GCC diagnostic ignored "-Wvoid-pointer-to-enum-cast" #pragma GCC diagnostic ignored "-Wvoid-pointer-to-int-cast" #pragma GCC diagnostic ignored "-Wvoid-ptr-dereference" #pragma GCC diagnostic ignored "-Wvolatile-register-var" #pragma GCC diagnostic ignored "-Wwasm-exception-spec" #pragma GCC diagnostic ignored "-Wweak-template-vtables" #pragma GCC diagnostic ignored "-Wweak-vtables" #pragma GCC diagnostic ignored "-Wwritable-strings" #pragma GCC diagnostic ignored "-Wwrite-strings" #pragma GCC diagnostic ignored "-Wxor-used-as-pow" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wzero-length-array" #include "common_const.cs" #pragma GCC diagnostic pop
Может я что то упустил?
-
- Ты прям классически. С костылями бежишь по граблям :-) - RxTx(17.08.2023 13:14)
- Заело, не мог остановиться. И по граблям, и по костылям, и с
завязанными глазами, куда нам от наших кактусов? maleon(357 знак., 17.08.2023 14:20)
- Кстати, а вот еще такая идея: il-2(768 знак., 17.08.2023 14:35)
- А чем вас этот вариант не устроил? =AlexD=(1237 знак., 17.08.2023 14:31)
- Это должно было бы сработать для С++, для С при помощи
типизированной константы (даже статической) невозможно описать
массив такого размера (ошибка компиляции). При помощи константы
заданной дефайном это можно сделать (так обычно и делается) - maleon(17.08.2023 17:17)
- Какого конкретно размера? Не должно быть отличий С и С++ в этом
месте. В любом случае ты же дефайн для инициализации чего то
используешь. Тех же указателей и массивов. - =AlexD=(17.08.2023 17:24)
- такого maleon(44 знак., 17.08.2023 21:16, ссылка, картинка)
- Можно попробовать поколдовать со структурами и массивами. А там и sizeof может помочь. Но это всё некрасиво, конечно. SciFi(1 знак., 18.08.2023 09:34, ссылка)
- А, теперь понял о чём речь. Да, в Сях const это не константа, а
всего лишь ридонли валюе, увы. Могу лишь предложить создавать
массивы не статически, а через maloc. - =AlexD=(18.08.2023 09:28)
- В версии ГЦЦ 11+, ужэ константа. По крайней мере, у АВР. - mse homjak(18.08.2023 10:14)
- такого maleon(44 знак., 17.08.2023 21:16, ссылка, картинка)
- Какого конкретно размера? Не должно быть отличий С и С++ в этом
месте. В любом случае ты же дефайн для инициализации чего то
используешь. Тех же указателей и массивов. - =AlexD=(17.08.2023 17:24)
- Это должно было бы сработать для С++, для С при помощи
типизированной константы (даже статической) невозможно описать
массив такого размера (ошибка компиляции). При помощи константы
заданной дефайном это можно сделать (так обычно и делается) - maleon(17.08.2023 17:17)
- Заело, не мог остановиться. И по граблям, и по костылям, и с
завязанными глазами, куда нам от наших кактусов? maleon(357 знак., 17.08.2023 14:20)
- Ты прям классически. С костылями бежишь по граблям :-) - RxTx(17.08.2023 13:14)