Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Work around a bug in vscode
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 30 Apr 2021 21:20:46 +0000 (23:20 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 4 May 2021 17:30:02 +0000 (19:30 +0200)
include/xbt/base.h

index 88deb0f..d764f5e 100644 (file)
 #define XBT_ATTRIB_DEPRECATED_v332(mesg)                                                                               \
   XBT_ATTRIB_DEPRECATED(mesg " (this compatibility wrapper will be dropped after v3.31)")
 
+/* Work around https://github.com/microsoft/vscode-cpptools/issues/4503 */
+#ifdef __INTELLISENSE__
+#pragma diag_suppress 1094
+#endif
+
 #if !defined(__APPLE__)
 #  define XBT_ATTRIB_CONSTRUCTOR(prio) __attribute__((__constructor__(prio)))
 #  define XBT_ATTRIB_DESTRUCTOR(prio) __attribute__((__destructor__(prio)))