rpm-software-management / dnf5

Next-generation RPM package management system
Other
257 stars 87 forks source link

Compiler warning from Actions::process_json_command() #1875

Open mcrha opened 2 days ago

mcrha commented 2 days ago

I face of the below compiler warning and as you error on warnings... ;) I suppoose I have enabled more compiler warnings than you.

.../libdnf5-plugins/actions/actions.cpp: In member function ‘void {anonymous}::Actions::process_json_command(const {anonymous}::CommandToRun&, json_object*, int)’:
.../libdnf5-plugins/actions/actions.cpp:1306:53: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
 1306 |                             requested_attrs |= 1 << idx;
      |                                                     ^~~