Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix triple quote warning #570

Merged
merged 1 commit into from
Dec 30, 2023
Merged

Fix triple quote warning #570

merged 1 commit into from
Dec 30, 2023

Conversation

harrisi
Copy link
Contributor

@harrisi harrisi commented Dec 26, 2023

Without the change, I got this warning (and thus build error):

erlc +nowarn_match_float_zero -Werror -pa ../../intl_tools -I ../../..  +debug_info -o../../plugins/import_export wpc_yafaray.erl
compile: warnings being treated as errors
wpc_yafaray.erl:4011:41: adjacent string literals without intervening white space
In OTP-27.0 this will be a triple-quoted string or an error.
Rewrite them as one string, or insert white space
between the strings.
% 4011|     uniprintln(F, "  <material1 sval=\"""w_""\~ts\"/>~n"
%     |                                         ^

wpc_yafaray.erl:4011:45: adjacent string literals without intervening white space
In OTP-27.0 this will be a triple-quoted string or an error.
Rewrite them as one string, or insert white space
between the strings.
% 4011|     uniprintln(F, "  <material1 sval=\"""w_""\~ts\"/>~n"
%     |                                             ^

wpc_yafaray.erl:4012:47: adjacent string literals without intervening white space
In OTP-27.0 this will be a triple-quoted string or an error.
Rewrite them as one string, or insert white space
between the strings.
% 4012|                   "        <material2 sval=\"""w_""\~ts\"/>~n"
%     |                                               ^

wpc_yafaray.erl:4012:51: adjacent string literals without intervening white space
In OTP-27.0 this will be a triple-quoted string or an error.
Rewrite them as one string, or insert white space
between the strings.
% 4012|                   "        <material2 sval=\"""w_""\~ts\"/>~n"
%     |                                                   ^

make[5]: *** [../../plugins/import_export/wpc_yafaray.beam] Error 1
make[4]: *** [opt] Error 2
make[3]: *** [subdirs] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [plugins_src] Error 2
make: *** [opt] Error 2

More here: https://www.erlang.org/docs/26/general_info/upcoming_incompatibilities#triple-quoted-strings

@dgud dgud self-assigned this Dec 30, 2023
@dgud dgud merged commit fe24fac into dgud:master Dec 30, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants