浏览代码

Remove bogus link_warning. It is meaningless and stupid. While the
previous committed patch was well-meaning, the #warning it replaced
was simply a reminder I accidently left in when implementing strcoll/wcscoll.
Besides, strcmp is completely locale invariant.

Manuel Novoa III 22 年之前
父节点
当前提交
7e6f8ff99f
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      libc/string/wstring.c

+ 0 - 2
libc/string/wstring.c

@@ -637,10 +637,8 @@ int Wmemcmp(const Wvoid *s1, const Wvoid *s2, size_t n)
 
 #ifdef __LOCALE_C_ONLY
 #ifdef L_wcscmp
-link_warning(wcscmp,"the 'wcscmp' function supports only C|POSIX locales")
 weak_alias(wcscmp,wcscoll);
 #else  /* L_wcscmp */
-link_warning(strcmp,"the 'strcmp' function supports only C|POSIX locales")
 weak_alias(strcmp,strcoll);
 #endif /* L_wcscmp */
 #endif /* __LOCALE_C_ONLY */