Skip to content

Commit

Permalink
Do not use unsafeFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhowes committed Dec 10, 2023
1 parent 6298acc commit 6005022
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 116 deletions.
230 changes: 115 additions & 115 deletions Package.swift
Expand Up @@ -14,121 +14,121 @@ let package = Package(
targets: [
.target(
name: "DSPHeaders",
exclude: ["README.md"],
cxxSettings: [
.unsafeFlags([
"-pedantic",
"-Wall",
"-Wassign-enum",
"-Wbad-function-cast",
"-Wbind-to-temporary-copy",
"-Wbool-conversion",
"-Wbool-operation",
"-Wc++11-extra-semi",
"-Wcast-align",
"-Wcast-function-type",
"-Wcast-qual",
"-Wchar-subscripts",
"-Wcomma",
"-Wcompletion-handler",
"-Wconditional-uninitialized",
"-Wconsumed",
"-Wconversion",
"-Wcovered-switch-default",
"-Wdeclaration-after-statement",
"-Wdeprecated",
"-Wdeprecated-copy",
"-Wdeprecated-copy-with-user-provided-dtor",
"-Wdeprecated-dynamic-exception-spec",
"-Wdeprecated-implementations",
"-Wdirect-ivar-access",
"-Wdocumentation",
"-Wdocumentation-pedantic",
// "-Wdouble-promotion",
"-Wduplicate-decl-specifier",
"-Wduplicate-enum",
"-Wduplicate-method-arg",
"-Wduplicate-method-match",
"-Weffc++",
"-Wempty-init-stmt",
"-Wempty-translation-unit",
"-Wenum-conversion",
"-Wexplicit-ownership-type",
"-Wfloat-conversion",
"-Wfor-loop-analysis",
"-Wformat-nonliteral",
"-Wformat-type-confusion",
"-Wframe-address",
// "-Wglobal-constructors",
"-Wheader-hygiene",
"-Widiomatic-parentheses",
"-Wimplicit-fallthrough",
"-Wimplicit-retain-self",
"-Wincompatible-function-pointer-types",
"-Wlogical-op-parentheses",
"-Wmethod-signatures",
"-Wmismatched-tags",
"-Wmissing-braces",
"-Wmissing-field-initializers",
"-Wmissing-method-return-type",
"-Wmissing-noreturn",
// "-Wmissing-prototypes",
"-Wmissing-variable-declarations",
"-Wmove",
"-Wno-newline-eof", // resource_bundle_accessor.h is missing newline at end of file
"-Wno-unknown-pragmas",
"-Wnon-virtual-dtor",
"-Wnullable-to-nonnull-conversion",
"-Wobjc-interface-ivars",
"-Wobjc-missing-property-synthesis",
"-Wobjc-property-assign-on-object-type",
"-Wobjc-signed-char-bool-implicit-int-conversion",
"-Wold-style-cast",
"-Wover-aligned",
"-Woverlength-strings",
"-Woverriding-method-mismatch",
// "-Wpadded",
"-Wparentheses",
"-Wpessimizing-move",
"-Wpointer-arith",
"-Wrange-loop-analysis",
"-Wredundant-move",
"-Wreorder",
"-Wself-assign-overloaded",
"-Wself-move",
"-Wsemicolon-before-method-body",
"-Wshadow-all",
"-Wshorten-64-to-32",
"-Wsign-compare",
"-Wsign-conversion",
"-Wsometimes-uninitialized",
"-Wstrict-selector-match",
"-Wstring-concatenation",
"-Wstring-conversion",
"-Wsuggest-destructor-override",
"-Wsuggest-override",
"-Wsuper-class-method-mismatch",
// "-Wswitch-enum",
"-Wundefined-internal-type",
"-Wundefined-reinterpret-cast",
"-Wuninitialized",
"-Wuninitialized-const-reference",
"-Wunneeded-internal-declaration",
"-Wunneeded-member-function",
"-Wunreachable-code-aggressive",
// "-Wunsafe-buffer-usage",
"-Wunused",
"-Wunused-function",
"-Wunused-label",
"-Wunused-parameter",
"-Wunused-private-field",
"-Wunused-value",
"-Wunused-variable",
// "-Wzero-as-null-pointer-constant",
"-Wzero-length-array",
"-x", "objective-c++", // treat source files as Obj-C++ files
], .none)
]
exclude: ["README.md"]
// cxxSettings: [
// .unsafeFlags([
// "-pedantic",
// "-Wall",
// "-Wassign-enum",
// "-Wbad-function-cast",
// "-Wbind-to-temporary-copy",
// "-Wbool-conversion",
// "-Wbool-operation",
// "-Wc++11-extra-semi",
// "-Wcast-align",
// "-Wcast-function-type",
// "-Wcast-qual",
// "-Wchar-subscripts",
// "-Wcomma",
// "-Wcompletion-handler",
// "-Wconditional-uninitialized",
// "-Wconsumed",
// "-Wconversion",
// "-Wcovered-switch-default",
// "-Wdeclaration-after-statement",
// "-Wdeprecated",
// "-Wdeprecated-copy",
// "-Wdeprecated-copy-with-user-provided-dtor",
// "-Wdeprecated-dynamic-exception-spec",
// "-Wdeprecated-implementations",
// "-Wdirect-ivar-access",
// "-Wdocumentation",
// "-Wdocumentation-pedantic",
// // "-Wdouble-promotion",
// "-Wduplicate-decl-specifier",
// "-Wduplicate-enum",
// "-Wduplicate-method-arg",
// "-Wduplicate-method-match",
// "-Weffc++",
// "-Wempty-init-stmt",
// "-Wempty-translation-unit",
// "-Wenum-conversion",
// "-Wexplicit-ownership-type",
// "-Wfloat-conversion",
// "-Wfor-loop-analysis",
// "-Wformat-nonliteral",
// "-Wformat-type-confusion",
// "-Wframe-address",
// // "-Wglobal-constructors",
// "-Wheader-hygiene",
// "-Widiomatic-parentheses",
// "-Wimplicit-fallthrough",
// "-Wimplicit-retain-self",
// "-Wincompatible-function-pointer-types",
// "-Wlogical-op-parentheses",
// "-Wmethod-signatures",
// "-Wmismatched-tags",
// "-Wmissing-braces",
// "-Wmissing-field-initializers",
// "-Wmissing-method-return-type",
// "-Wmissing-noreturn",
// // "-Wmissing-prototypes",
// "-Wmissing-variable-declarations",
// "-Wmove",
// "-Wno-newline-eof", // resource_bundle_accessor.h is missing newline at end of file
// "-Wno-unknown-pragmas",
// "-Wnon-virtual-dtor",
// "-Wnullable-to-nonnull-conversion",
// "-Wobjc-interface-ivars",
// "-Wobjc-missing-property-synthesis",
// "-Wobjc-property-assign-on-object-type",
// "-Wobjc-signed-char-bool-implicit-int-conversion",
// "-Wold-style-cast",
// "-Wover-aligned",
// "-Woverlength-strings",
// "-Woverriding-method-mismatch",
// // "-Wpadded",
// "-Wparentheses",
// "-Wpessimizing-move",
// "-Wpointer-arith",
// "-Wrange-loop-analysis",
// "-Wredundant-move",
// "-Wreorder",
// "-Wself-assign-overloaded",
// "-Wself-move",
// "-Wsemicolon-before-method-body",
// "-Wshadow-all",
// "-Wshorten-64-to-32",
// "-Wsign-compare",
// "-Wsign-conversion",
// "-Wsometimes-uninitialized",
// "-Wstrict-selector-match",
// "-Wstring-concatenation",
// "-Wstring-conversion",
// "-Wsuggest-destructor-override",
// "-Wsuggest-override",
// "-Wsuper-class-method-mismatch",
// // "-Wswitch-enum",
// "-Wundefined-internal-type",
// "-Wundefined-reinterpret-cast",
// "-Wuninitialized",
// "-Wuninitialized-const-reference",
// "-Wunneeded-internal-declaration",
// "-Wunneeded-member-function",
// "-Wunreachable-code-aggressive",
// // "-Wunsafe-buffer-usage",
// "-Wunused",
// "-Wunused-function",
// "-Wunused-label",
// "-Wunused-parameter",
// "-Wunused-private-field",
// "-Wunused-value",
// "-Wunused-variable",
// // "-Wzero-as-null-pointer-constant",
// "-Wzero-length-array",
// "-x", "objective-c++", // treat source files as Obj-C++ files
// ], .none)
// ]
),
.target(
name: "AUv3Support",
Expand Down
2 changes: 1 addition & 1 deletion Sources/DSPHeaders/include/DSPHeaders/PhaseShifter.hpp
Expand Up @@ -96,7 +96,7 @@ class PhaseShifter {
*/
ValueType process(ValueType modulation, ValueType input) noexcept {

// With samplersPerFilterUpdate_ == 1, this replicates the phaser processing described in
// With samplesPerFilterUpdate_ == 1, this replicates the phaser processing described in
// "Designing Audio Effect Plugins in C++" by Will C. Pirkle (2019).
//
if (++filterUpdateCounter_ >= samplesPerFilterUpdate_) {
Expand Down

0 comments on commit 6005022

Please sign in to comment.