[PATCH] Reword ELAST warning

JF Bastien jfb at chromium.org
Sun Feb 22 11:45:46 PST 2015


Hi danalbert,

GCC emits a pretty amusing warning when there are apostrophes in a #warning:
```warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]```

Reword the warning to avoid this, and be more consistent with other warnings in libc++.

http://reviews.llvm.org/D7818

Files:
  src/config_elast.h

Index: src/config_elast.h
===================================================================
--- src/config_elast.h
+++ src/config_elast.h
@@ -30,7 +30,7 @@
 #define _LIBCPP_ELAST _sys_nerr
 #else
 // Warn here so that the person doing the libcxx port has an easier time:
-#warning This platform's ELAST hasn't been ported yet
+#warning ELAST for this platform not yet implemented
 #endif
 
 #endif // _LIBCPP_CONFIG_ELAST

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7818.20480.patch
Type: text/x-patch
Size: 424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150222/f054ad2e/attachment.bin>


More information about the llvm-commits mailing list