[PATCH v2 2/2] libcamera: add missing <stdint.h> include to internal/yaml_parser.h

Dan Scally dan.scally at ideasonboard.com
Mon Aug 12 12:59:16 CEST 2024


Hi Sergei

On 04/08/2024 21:55, Sergei Trofimovich wrote:
> Without the change the build fails on upcoming `gcc-15` as:
>
>      In file included from ../src/libcamera/yaml_parser.cpp:8:
>      ../include/libcamera/internal/yaml_parser.h:183:41: error: 'uint8_t' was not declared in this scope
>        183 |                          std::is_same_v<uint8_t, T> ||
>            |                                         ^~~~~~~
>
> Signed-off-by: Sergei Trofimovich <slyich at gmail.com>
> ---
Reviewed-by: Daniel Scally <dan.scally at ideasonboard.com>
>   include/libcamera/internal/yaml_parser.h | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h
> index e38a2df9..f8e4f841 100644
> --- a/include/libcamera/internal/yaml_parser.h
> +++ b/include/libcamera/internal/yaml_parser.h
> @@ -7,6 +7,8 @@
>   
>   #pragma once
>   
> +#include <stdint.h>
> +
>   #include <iterator>
>   #include <map>
>   #include <optional>


More information about the libcamera-devel mailing list