Skip to content
Snippets Groups Projects
  1. Jan 12, 2021
  2. Jan 08, 2021
  3. Jan 02, 2021
  4. Dec 22, 2020
  5. Dec 18, 2020
  6. Dec 15, 2020
  7. Dec 14, 2020
  8. Dec 13, 2020
  9. Dec 09, 2020
  10. Dec 08, 2020
    • O H's avatar
      use strict CFLAGS to catch common mistakes in ci pipeline · b7e6c14a
      O H authored and Romain Bouvier's avatar Romain Bouvier committed
      
      A number of common coding errors are missed by the compiler.
      They turn up only after release once packages are build with full CFLAGS.
      
      Adjust the gitlab CI to catch such errors:
      
      -Wall enables a number of diagnostics
      
      -Wno-deprecated-declarations will hide a bogus warning.
      As long as an API exists it can be used. Noone beside a curious developer
      will actually take the time to do research and look for the replacment.
      In the wild this warning is just noise in the build log.
      
      -Werror=implicit-function-declaration will point out missing includes.
      In case such errors are not fixed, the resulting code will assume int
      for function arguments and function return values.
      
      -Werror=return-type will point out incorrect return values. The caller
      will most likely receive just garbage.
      
      Signed-off-by: default avatarOlaf Hering <olaf@aepfle.de>
      b7e6c14a
  11. Dec 04, 2020
  12. Nov 09, 2020
  13. Nov 02, 2020
  14. Oct 22, 2020
  15. Oct 03, 2020
    • Gaël Bonithon's avatar
      xdt-autogen: Various small improvements · ec0295a9
      Gaël Bonithon authored
      - quoting
      - replace backticks with $()
      - replace 'test "x$var"' with 'test "$var"'
      - replace $(pwd) with $PWD
      - simplify the command to search for languages
      - do not use subshell when unneeded
      - do not use redirection when unneeded
      - directly test command exit codes instead of using $?
      - readability (useless ";", indenting)
      ec0295a9
    • Gaël Bonithon's avatar
      xdt-autogen: Properly handle whitespaces in filenames · 72483f0e
      Gaël Bonithon authored
      and more generally special characters different from '\1'.
      
      This is achieved by replacing the filename separator ' ' with '\1' in
      lookup_configure_ac_*(), and the default IFS=' \t\n' with IFS='\1', but
      only where necessary: the default IFS is usually required for things to
      go as expected.
      
      So we have to do an IFS round-trip substitution around each "for" loop
      on filenames, just before and just after pathname expansion by the
      shell.
      
      Additionally, when running $XDT_PROG_ACLOCAL, one has to define some
      new variables ACLOCAL_DIR and use conditional parameter expansion, to
      properly set the program flags:
      $XDT_PROG_ACLOCAL ${ACLOCAL_DIR:+-I "$ACLOCAL_DIR"}
      
      Finally, one has to take care of some non optional quoting
      (strictly speaking, some are optional in this commit, but I preferred
      not to cut as close as possible and to keep an overall coherence).
      72483f0e
    • Gaël Bonithon's avatar
      xdt-autogen: Use sed instead of tr to replace strings · 3e01e213
      Gaël Bonithon authored
      The purpose of the current code seems to be to replace the strings
      '\t', '\n' and '\\' by a single space ' ', not the characters
      "horizontal tab", "line feed" and "backslash" by a single space.
      
      So the right command to do this is sed, not tr, which doesn't do the
      job expected here.
      3e01e213
  16. Sep 18, 2020
  17. Jul 18, 2020
  18. Jul 12, 2020
  19. Jul 09, 2020
  20. Jul 08, 2020
  21. Jul 07, 2020
  22. Jun 24, 2020
Loading