Skip to content

Fix warnings in acl_hash #125

Closed
Closed
@pcolberg

Description

@pcolberg

Warnings from Ubuntu 22.04 debug build with GCC 11.2:

  • lib/acl_hash/src/acl_hash.c

    [71/113] /usr/bin/gcc -DNOMINMAX -I/__w/fpga-runtime-for-opencl/fpga-runtime-for-opencl/lib/acl_hash/include -g -fPIC -Wall -Wconversion -Wformat -Wformat-security -fno-strict-aliasing -fstack-protector -D_FORTIFY_SOURCE=2 -Og -MD -MT lib/acl_hash/CMakeFiles/acl_hash.dir/src/acl_hash.c.o -MF lib/acl_hash/CMakeFiles/acl_hash.dir/src/acl_hash.c.o.d -o lib/acl_hash/CMakeFiles/acl_hash.dir/src/acl_hash.c.o -c /__w/fpga-runtime-for-opencl/fpga-runtime-for-opencl/lib/acl_hash/src/acl_hash.c
    /__w/fpga-runtime-for-opencl/fpga-runtime-for-opencl/lib/acl_hash/src/acl_hash.c: In function 'l_leftrotate':
    /__w/fpga-runtime-for-opencl/fpga-runtime-for-opencl/lib/acl_hash/src/acl_hash.c:218:17: warning: conversion from 'uint64_t' {aka 'long unsigned int'} to 'uint32_t' {aka 'unsigned int'} may change value [-Wconversion]
      218 |   uint32_t hi = both >> 32;
          |                 ^~~~
    

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions