Skip to content

Commit 294c7de

Browse files
Merge pull request #674 from JohannAnhofer/master
Fix warnings if YYJSON_MSC_VER doesn't exist
2 parents 31e0847 + 5b673c7 commit 294c7de

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

include/jsoncons/config/compiler_support.hpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -391,30 +391,6 @@
391391
# endif
392392
#endif
393393

394-
/** noinline for compiler */
395-
#ifndef JSONCONS_NOINLINE
396-
# if YYJSON_MSC_VER >= 1400
397-
# define JSONCONS_NOINLINE __declspec(noinline)
398-
# elif JSONCONS_HAS_ATTRIBUTE(noinline) || YYJSON_GCC_VER >= 4
399-
# define JSONCONS_NOINLINE __attribute__((noinline))
400-
# else
401-
# define JSONCONS_NOINLINE
402-
# endif
403-
#endif
404-
405-
/** align for compiler */
406-
#ifndef JSONCONS_ALIGN
407-
# if YYJSON_MSC_VER >= 1300
408-
# define JSONCONS_ALIGN(x) __declspec(align(x))
409-
# elif JSONCONS_HAS_ATTRIBUTE(aligned) || defined(__GNUC__)
410-
# define JSONCONS_ALIGN(x) __attribute__((aligned(x)))
411-
# elif YYJSON_CPP_VER >= 201103L
412-
# define JSONCONS_ALIGN(x) alignas(x)
413-
# else
414-
# define JSONCONS_ALIGN(x)
415-
# endif
416-
#endif
417-
418394
// Follows boost config/detail/suffix.hpp
419395
#if defined(JSONCONS_HAS_INT128) && defined(__cplusplus)
420396
namespace jsoncons{

0 commit comments

Comments
 (0)