Skip to content

Commit

Permalink
Suppress warnings for matching with 0.0
Browse files Browse the repository at this point in the history
In OTP 26.1, matching with 0.0 will produce a warning. For the
moment, suppress the warning.
  • Loading branch information
bjorng committed Sep 19, 2023
1 parent 9fc1219 commit 1a4debc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e3d/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ TARGET_FILES= $(MODULES:%=$(EBIN)/%.beam)
# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
ERL_COMPILE_FLAGS += -Werror $(TYPE_FLAGS)
ERL_COMPILE_FLAGS += +nowarn_match_float_zero -Werror $(TYPE_FLAGS)

# ----------------------------------------------------
# Targets
Expand Down
2 changes: 1 addition & 1 deletion plugins_src/autouv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ TARGET_FILES= $(MODULES:%=$(EBIN)/%.beam)
# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
ERL_COMPILE_FLAGS += -Werror -pa $(WINGS_INTL) -I $(WINGS_TOP) $(TYPE_FLAGS) +debug_info
ERL_COMPILE_FLAGS += +nowarn_match_float_zero -Werror -pa $(WINGS_INTL) -I $(WINGS_TOP) $(TYPE_FLAGS) +debug_info

# ----------------------------------------------------
# Targets
Expand Down
2 changes: 1 addition & 1 deletion plugins_src/commands/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ TARGET_FILES= $(MODULES:%=$(EBIN)/%.beam)
# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
ERL_COMPILE_FLAGS += -pa $(WINGS_INTL) -Werror -I $(WINGS_TOP) $(TYPE_FLAGS) +debug_info
ERL_COMPILE_FLAGS += -pa $(WINGS_INTL) +nowarn_match_float_zero -Werror -I $(WINGS_TOP) $(TYPE_FLAGS) +debug_info

# ----------------------------------------------------
# Targets
Expand Down
2 changes: 1 addition & 1 deletion plugins_src/import_export/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TARGET_FILES= $(MODULES:%=$(EBIN)/%.beam)
# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
ERL_COMPILE_FLAGS += -Werror -pa $(WINGS_INTL) \
ERL_COMPILE_FLAGS += +nowarn_match_float_zero -Werror -pa $(WINGS_INTL) \
-I $(WINGS_TOP) $(TYPE_FLAGS) +debug_info

# ----------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ APP_TARGET = $(EBIN)/$(APP_FILE)
# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
ERL_COMPILE_FLAGS += -Werror -I ../.. -I../_deps $(TYPE_FLAGS) -pa $(WINGS_INTL)
ERL_COMPILE_FLAGS += +nowarn_match_float_zero -Werror -I ../.. -I../_deps $(TYPE_FLAGS) -pa $(WINGS_INTL)

# ----------------------------------------------------
# Targets
Expand Down

0 comments on commit 1a4debc

Please sign in to comment.