No description
Find a file
Kieran Bingham caf25dc5cf libcamera: event_dispatcher_poll: Remove struct keyword from for-range
When using -std=c++11, GCC versions 6.2 and 6.3 take objection to
declaring a struct type when using a range based iterator:

    event_dispatcher_poll.cpp:231:13: error: types may not be defined
	in a for-range-declaration [-Werror]

		for (const struct pollfd &pfd : pollfds) {
		           ^~~~~~

	cc1plus: all warnings being treated as errors

Removing the keyword 'struct' ensures that the compiler does not try to
declare the type, and instead uses the type as already defined by the
relevant poll.h header.

This issue does not affect later compiler versions.

Reported-by: [autobuild.buildroot.net] Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  http://autobuild.buildroot.net/results/f6dd4c60c04892c8b1669e6000fce7edb2b6349e/

Fixes: 8356f8a6ab ("libcamera: Add a poll-based event dispatcher")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2019-06-25 21:35:23 +01:00
Documentation Documentation: Use absolute paths for Doxygen EXCLUDE files 2019-06-09 13:22:17 +03:00
include libcamera: Rename V4L2Device to V4L2VideoDevice 2019-06-19 15:46:44 +02:00
licenses licenses: Add the Developer CoO 2019-01-02 21:59:46 +02:00
package/gentoo/media-libs/libcamera package: gentoo: Add libcamera ebuild 2019-05-02 16:36:16 +03:00
src libcamera: event_dispatcher_poll: Remove struct keyword from for-range 2019-06-25 21:35:23 +01:00
test libcamera: Rename V4L2Device to V4L2VideoDevice 2019-06-19 15:46:44 +02:00
utils utils: rkisp1: Add test capture script 2019-03-29 16:39:10 +02:00
.clang-format clang-format: Remove space after template 2019-02-13 13:23:32 +02:00
.gitignore git: Add .gitignore file 2018-12-14 13:23:07 +00:00
meson.build meson: Link against libc++ with compiling with clang 2019-06-19 18:47:56 +03:00
meson_options.txt meson: options: Document the options 2019-04-03 11:44:04 +07:00
README.md README: Update build instructions 2018-11-26 15:52:21 +00:00

libcamera: A complex camera support library for Linux, Android, and ChromeOS

To build and install:

  meson build
  cd build
  ninja
  ninja install