Blob Blame History Raw
diff --git a/Makefile b/Makefile
index ad0001a3b988d..79576b982dacd 100644
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,9 @@ WARNINGS = \
   -Wsuggest-override \
   -Wunused-macros \
   -Wzero-as-null-pointer-constant \
-  -Wno-unknown-warning-option
+  -Wno-unknown-warning-option \
+  -Wno-dangling-reference \
+  -Wno-c++20-compat
 # Uncomment below to disable warnings
 #WARNINGS = -w
 DEBUGSYMS = -g
diff --git a/src/faction_camp.cpp b/src/faction_camp.cpp
index c952552d5f35f..9a2e12c4b2c33 100644
--- a/src/faction_camp.cpp
+++ b/src/faction_camp.cpp
@@ -2575,8 +2575,8 @@ static int salt_water_pipe_segment_of( const recipe &making );
 int salt_water_pipe_segment_of( const recipe &making )
 {
     int segment_number = -1;
-    const auto &requires = making.blueprint_requires();
-    for( auto const &element : requires ) {
+    const auto &requirements = making.blueprint_requires();
+    for( auto const &element : requirements ) {
         if( element.first.substr( 0, salt_water_pipe_string_base.length() ) == salt_water_pipe_string_base
             &&
             element.first.substr( element.first.length() - salt_water_pipe_string_suffix.length(),