libcamera: base: Wrap <regex.h>
Provide a wrapper for regex.h to work around the false-positive compilation errors that crop up in some versions of gcc. Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
committed by
Jacopo Mondi
parent
3a835ff48c
commit
1039a0f2ee
@@ -13,17 +13,11 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#if defined __SANITIZE_ADDRESS__ && defined __OPTIMIZE__
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#endif
|
||||
#include <regex>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#include <linux/media-bus-format.h>
|
||||
#include <linux/v4l2-subdev.h>
|
||||
|
||||
#include <libcamera/base/log.h>
|
||||
#include <libcamera/base/regex.h>
|
||||
#include <libcamera/base/utils.h>
|
||||
|
||||
#include <libcamera/geometry.h>
|
||||
|
||||
Reference in New Issue
Block a user