mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Fix -Werror=literal-suffix
When trying to build gjs with --werror, I get the following error: In file included from /nix/store/snc19nr462570ssx03v455p164vyz15s-sysprof-3.36.0-dev/include/sysprof-3/sysprof-capture-condition.h:59, from /nix/store/snc19nr462570ssx03v455p164vyz15s-sysprof-3.36.0-dev/include/sysprof-3/sysprof-capture.h:66, from ../gjs/profiler.cpp:53: /nix/store/snc19nr462570ssx03v455p164vyz15s-sysprof-3.36.0-dev/include/sysprof-3/sysprof-capture-types.h:76:40: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix] 76 | #define SYSPROF_CAPTURE_ADDRESS_FORMAT "0x%016"G_GINT64_MODIFIER"x" | ^ cc1plus: all warnings being treated as errors
This commit is contained in:
@ -73,7 +73,7 @@ G_BEGIN_DECLS
|
||||
# define SYSPROF_ALIGNED_END(_N) __attribute__((aligned ((_N))))
|
||||
#endif
|
||||
|
||||
#define SYSPROF_CAPTURE_ADDRESS_FORMAT "0x%016"G_GINT64_MODIFIER"x"
|
||||
#define SYSPROF_CAPTURE_ADDRESS_FORMAT "0x%016" G_GINT64_MODIFIER "x"
|
||||
|
||||
#if GLIB_SIZEOF_VOID_P == 8
|
||||
# define SYSPROF_CAPTURE_JITMAP_MARK G_GUINT64_CONSTANT(0xE000000000000000)
|
||||
|
||||
Reference in New Issue
Block a user