package/open62541: fix build with nios2
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 27 Jul 2021 07:37:55 +0000 (09:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 28 Jul 2021 19:19:12 +0000 (21:19 +0200)
commit59edd9927cc648e5fe2c247e0ec6d5d83fe99434
treea8dbe5d4ef39c3b7d2e1d58c72ba78e27fdb4b8f
parentaedf2c83d0830af879314db8422d49be345f057d
package/open62541: fix build with nios2

Fix the following build failure with nios2 raised since bump to version
1.2.2 in commit b436b82411305839abc76bb438fe92661a067526:

/home/buildroot/autobuild/instance-1/output-1/build/open62541-v1.2.2/src/ua_types_encoding_binary.c: In function 'unpack754':
/home/buildroot/autobuild/instance-1/output-1/build/open62541-v1.2.2/src/ua_types_encoding_binary.c:322:12: error: conversion to 'long double' from 'long long int' may alter its value [-Werror=conversion]
     result /= (1LL<<significandbits);
            ^~

Fixes:
 - http://autobuild.buildroot.org/results/c0a33dbada549c480bc741c1c8177b788ff053db

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/open62541/0003-fix-core-Explicit-cast-to-avoid-compiler-warning.patch [new file with mode: 0644]