logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0001-Prevent-empty-top-level-declarations.patch (642B)


  1. From 1f3cf2b7c4232f82ae37a62bcccccaa1398d834b Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Tue, 2 Jul 2019 23:49:18 -0700
  4. Subject: [PATCH] Prevent empty top-level declarations
  5. ---
  6. common/_elftc.h | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/common/_elftc.h b/common/_elftc.h
  9. index 5c4cf610..8c391fb5 100644
  10. --- a/common/_elftc.h
  11. +++ b/common/_elftc.h
  12. @@ -305,7 +305,7 @@ struct name { \
  13. #if defined(__GNUC__)
  14. #define ELFTC_VCSID(ID) __asm__(".ident\t\"" ID "\"")
  15. #else
  16. -#define ELFTC_VCSID(ID) /**/
  17. +#define ELFTC_VCSID(ID) _Static_assert(1, "")
  18. #endif
  19. #endif
  20. --
  21. 2.31.1