Skip to content
Snippets Groups Projects
  1. Feb 28, 2022
  2. Feb 18, 2022
  3. Feb 15, 2021
  4. Mar 30, 2020
  5. Jan 27, 2020
  6. Jan 08, 2020
  7. Oct 31, 2019
  8. Aug 22, 2019
  9. Aug 13, 2019
    • Emanuele Aina's avatar
      Fix GCC warning causing the build to fail with -Werror · 33f5b423
      Emanuele Aina authored
      
      Builds were failing:
      
          In file included from /usr/include/glib-2.0/glib/glist.h:32,
                           from /usr/include/glib-2.0/glib/ghash.h:33,
                           from /usr/include/glib-2.0/glib.h:50,
                           from /usr/include/glib-2.0/gobject/gbinding.h:28,
                           from /usr/include/glib-2.0/glib-object.h:23,
                           from /usr/include/glib-2.0/gio/gioenums.h:28,
                           from /usr/include/glib-2.0/gio/giotypes.h:28,
                           from /usr/include/glib-2.0/gio/gio.h:26,
                           from src/app-db.h:14,
                           from src/app-db.c:13:
          src/app-db.c: In function ‘frome_app_db_find_entry’:
          /usr/include/glib-2.0/glib/gmem.h:212:30: error: returning ‘GomResource *’ {aka ‘struct _GomResource *’} from a function with incompatible return type ‘FromeAppDBEntry *’ {aka ‘struct _FromeAppDBEntry *’} [-Werror=incompatible-pointer-types]
           #define g_steal_pointer(pp) ((__typeof__(*pp)) (g_steal_pointer) (pp))
                                       ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          src/app-db.c:213:10: note: in expansion of macro ‘g_steal_pointer’
             return g_steal_pointer (&entry);
                    ^~~~~~~~~~~~~~~
          cc1: all warnings being treated as errors
          make[1]: *** [Makefile:1748: src/libfrome_internal_la-app-db.lo] Error 1
      
      The code was correct since FromeAppDBEntry is a GomResource subclass, but add a
      FROME_APP_DB_ENTRY() cast to make things a bit more robust and make the
      compiler happy.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      33f5b423
  10. Mar 26, 2019
  11. Apr 14, 2017
  12. Apr 11, 2017
  13. Mar 09, 2017
  14. Mar 01, 2017
  15. Dec 20, 2016
  16. Dec 16, 2016
  17. Dec 15, 2016
  18. Dec 08, 2016
Loading