Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conflicting types of temporary variables caused compilation errors #1

Open
wants to merge 1 commit into
base: maemo/chimaera
Choose a base branch
from

Conversation

eniac111
Copy link

The compiler was failing with this error:

ude/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/icd -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Werror -c wpaicd.c  -fPIC -DPIC -o .libs/wpaicd.o
wpaicd.c: In function ‘on_scan_done’:
wpaicd.c:623:15: error: conflicting types for ‘tmp’
  623 |     GVariant *tmp = g_variant_get_child_value(bsss, 0);
      |               ^~~
wpaicd.c:597:12: note: previous definition of ‘tmp’ was here
  597 |     gchar *tmp = g_variant_print(parameters, TRUE);
      |            ^~~
make[3]: *** [Makefile:461: wpaicd.lo] Error 1
make[3]: Leaving directory '/root/packages/libicd-network-wpasupplicant/src'
make[2]: *** [Makefile:532: all-recursive] Error 1
make[2]: Leaving directory '/root/packages/libicd-network-wpasupplicant'
make[1]: *** [Makefile:408: all] Error 2
make[1]: Leaving directory '/root/packages/libicd-network-wpasupplicant'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:6: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant