File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7436,6 +7436,7 @@ file.$(OBJEXT): {$(VPATH)}internal/attr/nodiscard.h
74367436file.$(OBJEXT): {$(VPATH)}internal/attr/noexcept.h
74377437file.$(OBJEXT): {$(VPATH)}internal/attr/noinline.h
74387438file.$(OBJEXT): {$(VPATH)}internal/attr/nonnull.h
7439+ file.$(OBJEXT): {$(VPATH)}internal/attr/nonstring.h
74397440file.$(OBJEXT): {$(VPATH)}internal/attr/noreturn.h
74407441file.$(OBJEXT): {$(VPATH)}internal/attr/packed_struct.h
74417442file.$(OBJEXT): {$(VPATH)}internal/attr/pure.h
Original file line number Diff line number Diff line change 1212**********************************************************************/
1313
1414#include "ruby/internal/config.h"
15+ #include "ruby/internal/attr/nonstring.h"
1516
1617#ifdef _WIN32
1718# include "missing/file.h"
@@ -373,7 +374,7 @@ rb_str_normalize_ospath(const char *ptr, long len)
373374 int r = rb_enc_precise_mbclen (p , e , enc );
374375 if (!MBCLEN_CHARFOUND_P (r )) {
375376 /* invalid byte shall not happen but */
376- static const char invalid [3 ] = "\xEF\xBF\xBD" ;
377+ RBIMPL_ATTR_NONSTRING () static const char invalid [3 ] = "\xEF\xBF\xBD" ;
377378 rb_str_append_normalized_ospath (str , p1 , p - p1 );
378379 rb_str_cat (str , invalid , sizeof (invalid ));
379380 p += 1 ;
You can’t perform that action at this time.
0 commit comments