Skip to content
Snippets Groups Projects
  1. Nov 18, 2021
    • Andre Maroneze's avatar
      [Libc] avoid spurious uninitialized warnings from the compiler · a3eb75e3
      Andre Maroneze authored
      Clang 13 emits warnings related to uninitialized variables:
      
      variable 'r' is used uninitialized whenever 'if'
      condition is false [-Wsometimes-uninitialized]
      
      This is due to the fact that the assert(0) macro, when using Frama-C's libc,
      is expanded to __FC_assert. Since it is not known by the compiler, it cannot
      consider it as "noreturn" when the condition is zero. Note that adding
      '__attribute__ ((__noreturn__))' will not work: Frama-C will assume it
      never returns, even when the condition is true.
      Initializing the 'r' variables with a default value will not change the
      actual behavior, and will avoid the warnings.
      a3eb75e3
  2. Nov 02, 2021
  3. Oct 19, 2021
  4. Oct 13, 2021
  5. Oct 11, 2021
  6. Sep 30, 2021
  7. Sep 01, 2021
  8. Aug 26, 2021
  9. Jun 25, 2021
  10. Jun 10, 2021
  11. Jun 04, 2021
  12. Jun 01, 2021
  13. May 18, 2021
  14. May 12, 2021
  15. Apr 26, 2021
  16. Apr 07, 2021
  17. Mar 25, 2021
  18. Feb 04, 2021
  19. Nov 18, 2020
    • Andre Maroneze's avatar
      [Libc] remove obsolete attribute __FRAMA_C_MODEL__ · 616a0c6a
      Andre Maroneze authored
      Fixes #877.
      
      Nowadays, Metrics has option -metrics-no-libc to exclude definitions from
      the Frama-C standard library, which was the purpose of the __FRAMA_C_MODEL__.
      Also, several libc variables were lacking the attribute, leading to
      inconsistent results.
      616a0c6a
  20. Oct 13, 2020
  21. Sep 23, 2020
  22. Sep 17, 2020
  23. Jul 15, 2020
  24. Jun 03, 2020
  25. May 27, 2020
  26. Apr 30, 2020
  27. Apr 08, 2020
  28. Apr 07, 2020
  29. Mar 31, 2020
  30. Mar 17, 2020
  31. Jan 30, 2020
  32. Jan 15, 2020
Loading